Function at 0x478320
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525ed8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x587978]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ecx + 0x40]
mov eax, dword [eax - 0xc]
lea ebx, [ecx + 0x40]
xor edi, edi
mov dword [ebp - 0x18], ebx
cmp eax, edi
jne 0x478585
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
lea ecx, [ebp - 0x28]
push ecx
call fcn.00433210
mov ecx, eax
call fcn.004379e0
cmp dword [ebp - 0x24], edi
je 0x4783f3
cmp dword [ebp - 0x24], edi
jbe 0x478426
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
push 0x53c9bc
push eax
call fcn.004ebce1
add esp, 8
cmp eax, edi
mov eax, dword [ebp - 0x24]
je 0x478430
cmp eax, 1
jb 0x478426
lea esi, [eax - 1]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 0
mov eax, dword [eax]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4783d9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jbe 0x4783ee
mov eax, dword [ebp - 0x28]
push esi
lea ecx, [eax + 4]
push ecx
push eax
call fcn.00437290
add esp, 0xc
dec dword [ebp - 0x24]
jne 0x478382
push 1
push 0x53c9b8
mov ecx, ebx
call fcn.00406650
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x478585
mov edx, dword [ebp - 0x24]
push edx
push eax
call fcn.00437400
mov eax, dword [ebp - 0x28]
push eax
jmp 0x47857d
push 0x80070057
call fcn.00406170
xor esi, esi
cmp eax, edi
jbe 0x47845a
cmp esi, eax
jae 0x478426
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + esi*4]
push str.country
push eax
call fcn.004ebce1
add esp, 8
cmp eax, edi
mov eax, dword [ebp - 0x24]
je 0x47845a
inc esi
cmp esi, eax
jb 0x47843a
lea ecx, [esi + 1]
cmp ecx, eax
ja 0x47846e
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0046bb20
mov edx, dword [0x587944]
mov eax, dword [edx + 0xc]
mov ecx, 0x587944
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov bl, 3
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x24]
xor esi, esi
cmp eax, edi
jbe 0x4784ff
cmp esi, eax
jae 0x478426
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + esi*4]
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.00433210
mov ecx, eax
call fcn.00437950
mov byte [ebp - 4], 4
cmp esi, dword [ebp - 0x24]
jae 0x478426
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + esi*4]
push eax
push edx
lea eax, [ebp - 0x10]
push 0x53c990
push eax
call fcn.00411c70
add esp, 0x10
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4784f7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x24]
inc esi
cmp esi, eax
jb 0x478496
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00445850
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00412420
mov byte [ebp - 4], bl
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47853e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov byte [ebp - 4], 0
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x478561
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x478585
mov ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.00437400
mov edx, dword [ebp - 0x28]
push edx
call fcn.004eb17a
add esp, 0xc
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret