Function at 0x4047f0
Capabilities:
Access peb ldr_data
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4545ac
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
mov eax, dword [0x46ec3c]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov eax, dword [esp + 0x30]
cmp eax, 3
ja case.default.0x40482a
jmp dword [eax*4 + 0x404b18]
mov eax, 1
test byte [0x470494], al
jne 0x40486c
or dword [0x470494], eax
push str.Country
mov ecx, 0x470490
mov dword [esp + 0x28], ebx
call fcn.00403e30
push 0x457da0
call fcn.00438e78
add esp, 4
mov dword [esp + 0x24], 0xffffffff
cmp byte [esp + 0x34], bl
mov eax, 0x470490
jne 0x40487a
lea eax, [esi + 4]
mov eax, dword [eax]
sub eax, 0x10
jmp 0x404aee
test byte [0x470494], 2
jne 0x4048c0
or dword [0x470494], 2
push str.Capital
mov ecx, 0x47048c
mov dword [esp + 0x28], 1
call fcn.00403e30
push 0x457d70
call fcn.00438e78
add esp, 4
mov dword [esp + 0x24], 0xffffffff
cmp byte [esp + 0x34], bl
je 0x4048cb
mov esi, 0x47048c
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.00402220
mov edx, eax
mov eax, dword [esp + 0x30]
add esp, 4
add edx, 0x10
mov dword [eax], edx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 0xc
test byte [0x470494], 4
jne 0x404934
or dword [0x470494], 4
push str.European_Championship
mov ecx, 0x470488
mov dword [esp + 0x28], 2
call fcn.00403e30
push 0x457d40
call fcn.00438e78
add esp, 4
mov dword [esp + 0x24], 0xffffffff
cmp byte [esp + 0x34], bl
je 0x404941
mov eax, 0x470488
jmp 0x40497e
cmp dword [esi + 0x10], ebx
jne 0x404968
push 0x400
push ebx
lea eax, [esp + 0x18]
push eax
lea ecx, [esi + 8]
call fcn.00404330
mov dword [esp + 0x24], 3
mov ebx, 2
jmp 0x40497a
lea ecx, [esp + 0x30]
call fcn.004022b0
mov ebx, 4
mov dword [esp + 0x24], ebx
mov dword [esp + 0xc], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402220
mov esi, dword [esp + 0x30]
add eax, 0x10
or ebx, 1
add esp, 4
test bl, 4
mov dword [esi], eax
je 0x4049a9
lea ecx, [esp + 0x30]
and ebx, 0xfffffffb
call fcn.00401060
test bl, 2
je 0x4049b7
lea ecx, [esp + 0x10]
call fcn.00401060
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 0xc
test byte [0x470494], 8
jne 0x404a09
or dword [0x470494], 8
push str.Wiki
mov ecx, 0x470484
mov dword [esp + 0x28], 5
call fcn.00403e30
push 0x457d10
call fcn.00438e78
add esp, 4
mov dword [esp + 0x24], 0xffffffff
cmp byte [esp + 0x34], bl
je 0x404a16
mov eax, 0x470484
jmp 0x404a56
cmp dword [esi + 0x10], ebx
jne 0x404a3c
push 0x458b54
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esi + 8]
call fcn.004045a0
mov dword [esp + 0x24], 6
mov ebx, 8
jmp 0x404a52
lea ecx, [esp + 0x14]
call fcn.004022b0
mov dword [esp + 0x24], 7
mov ebx, 0x10
mov dword [esp + 0xc], ebx
mov eax, dword [eax]
sub eax, 0x10
push eax
call fcn.00402220
mov esi, dword [esp + 0x30]
add eax, 0x10
or ebx, 1
add esp, 4
test bl, 0x10
mov dword [esi], eax
je 0x404a81
lea ecx, [esp + 0x14]
and ebx, 0xffffffef
call fcn.00401060
test bl, 8
je 0x404a8f
lea ecx, [esp + 0x18]
call fcn.00401060
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 0xc
test byte [0x470494], 0x10
jne 0x404ae6
or dword [0x470494], 0x10
call fcn.00425e9e
cmp eax, ebx
jne 0x404ac8
push 0x80004005
call fcn.00401790
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
push 0x457ce0
mov dword [0x470480], eax
call fcn.00438e78
add esp, 4
mov eax, dword [0x470480]
add eax, 0xfffffff0
push eax
call fcn.00402220
mov ecx, eax
mov eax, dword [esp + 0x30]
add esp, 4
add ecx, 0x10
mov dword [eax], ecx
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x1c
ret 0xc