Function at 0x477ff0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x525ce8
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 0x478255
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.004331a0
mov ecx, eax
call fcn.00437960
cmp dword [ebp - 0x24], edi
je 0x4780c3
cmp dword [ebp - 0x24], edi
jbe 0x4780f6
mov edx, dword [ebp - 0x28]
mov eax, dword [edx]
push 0x53c9ec
push eax
call fcn.004ebb0d
add esp, 8
cmp eax, edi
mov eax, dword [ebp - 0x24]
je 0x478100
cmp eax, 1
jb 0x4780f6
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 0x4780a9
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp esi, edi
jbe 0x4780be
mov eax, dword [ebp - 0x28]
push esi
lea ecx, [eax + 4]
push ecx
push eax
call fcn.00437210
add esp, 0xc
dec dword [ebp - 0x24]
jne 0x478052
push 1
push 0x53c9e8
mov ecx, ebx
call fcn.00406690
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x28]
cmp eax, edi
je 0x478255
mov edx, dword [ebp - 0x24]
push edx
push eax
call fcn.00437380
mov eax, dword [ebp - 0x28]
push eax
jmp 0x47824d
push 0x80070057
call fcn.00406170
xor esi, esi
cmp eax, edi
jbe 0x47812a
cmp esi, eax
jae 0x4780f6
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + esi*4]
push str.country
push eax
call fcn.004ebb0d
add esp, 8
cmp eax, edi
mov eax, dword [ebp - 0x24]
je 0x47812a
inc esi
cmp esi, eax
jb 0x47810a
lea ecx, [esi + 1]
cmp ecx, eax
ja 0x47813e
sub eax, esi
dec eax
push eax
push ecx
lea ecx, [ebp - 0x28]
call fcn.0046bd00
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 0x4781cf
cmp esi, eax
jae 0x4780f6
mov ecx, dword [ebp - 0x28]
lea eax, [ecx + esi*4]
push eax
lea edx, [ebp - 0x14]
push edx
call fcn.004331a0
mov ecx, eax
call fcn.004378d0
mov byte [ebp - 4], 4
cmp esi, dword [ebp - 0x24]
jae 0x4780f6
mov eax, dword [eax]
mov ecx, dword [ebp - 0x28]
mov edx, dword [ecx + esi*4]
push eax
push edx
lea eax, [ebp - 0x10]
push 0x53c9c0
push eax
call fcn.00411990
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 0x4781c7
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 0x478166
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 0x14]
push edx
call fcn.00445950
add esp, 8
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x18]
push eax
call fcn.00412140
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 0x47820e
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 0x478231
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 0x478255
mov ecx, dword [ebp - 0x24]
push ecx
push eax
call fcn.00437380
mov edx, dword [ebp - 0x28]
push edx
call fcn.004eaf4a
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