grammatical functions of a sentence

Hi everyone,
I’m working on this sentence but I’m having trouble with it.
This is what I have so far:

To a county so fond of self-deprecation, and for so long in the grumbling, intimidated shadow of its bigger and brasher transatlantic neighbour, it was as though the hometown boy had pulled the prom queen.

to = ?
a country so fond of self-deprecation = subject

and for so long in the grumbling, intimidated shadow of its bigger and brasher transatlantic neighbour = predicate
(I have to do the functions of this predicate as well because I have to show “the second levels” too)

it was as though = ?

the hometown boy = Direct Object

had pulled = Verbal predicate

the prom queen = Indirect Object

Can anyone help me with this or could somebody point me to a good website regarding this subject?

Thanks in advance,
Jeroen

.
To a country so fond of self-deprecation, and for so long in the grumbling, intimidated shadow of its bigger and brasher trans-Atlantic neighbour, it was as though the hometown boy had pulled the prom queen.

to = preposition
a country so fond of self-deprecation = object of preposition

and for so long in the grumbling, intimidated shadow of its bigger and brasher transatlantic neighbour = nonfinite adjectival clause/phrase

it was – main Subject and Verb

as though = conjunction

the hometown boy = Subject of dependent clause

had pulled = Verb

the prom queen = Direct Object
.