Function at 0x516390
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x54], ebx
mov dword [ebp - 0x50], ebx
mov dword [ebp - 8], ebx
mov edi, ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406234
mov eax, dword [ebp + 0x10]
call fcn.00406234
mov eax, dword [ebp + 0xc]
call fcn.00406234
xor eax, eax
push ebp
push 0x516639
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x50]
mov eax, dword [ebp - 4]
call fcn.0040c6e8
mov edx, dword [ebp - 0x50]
mov eax, 0x516658
call fcn.00406d10
dec eax
jne 0x51642c
xor ecx, ecx
mov dl, 1
mov eax, dword [0x511c5c]
call fcn.00512120
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x4e78a4]
call fcn.004f99dc
mov edx, eax
mov ebx, dword [ebp - 0xc]
mov eax, ebx
call fcn.005161cc
mov eax, ebx
call fcn.005161c0
call fcn.004fddcc
jmp 0x51643d
xor ecx, ecx
mov dl, 1
mov eax, dword [0x510d6c]
call fcn.00512120
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x5165fd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp + 0xc], 0
je 0x51649c
mov eax, dword [ebp - 0xc]
add eax, 0x90
mov edx, dword [ebp + 0xc]
call fcn.0040624c
lea edx, [ebp - 0x54]
mov eax, dword [ebp + 8]
call fcn.0040d29c
mov edx, dword [ebp - 0x54]
mov eax, dword [ebp - 0xc]
add eax, 0x94
call fcn.0040624c
mov eax, dword [ebp - 0xc]
add eax, 0xa8
xor edx, edx
call fcn.0040624c
mov eax, dword [ebp - 0xc]
add eax, 0xac
xor edx, edx
call fcn.0040624c
jmp 0x5164fb
cmp dword [0x552bec], 0
je 0x5164fb
mov eax, dword [ebp - 0xc]
add eax, 0x90
mov edx, dword [0x552bec]
call fcn.0040624c
lea edx, [ebp - 0x58]
mov eax, dword [0x552bf0]
call fcn.0040d29c
mov edx, dword [ebp - 0x58]
mov eax, dword [ebp - 0xc]
add eax, 0x94
call fcn.0040624c
mov eax, dword [ebp - 0xc]
add eax, 0xa8
mov edx, dword [0x552bf4]
call fcn.0040624c
mov eax, dword [ebp - 0xc]
add eax, 0xac
mov edx, dword [0x552bf8]
call fcn.0040624c
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x40
call fcn.0040367c
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x59
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 8]
lea edx, [ebp - 0x4c]
mov ecx, 0x20
call fcn.0040644c
lea eax, [ebp - 0x4c]
xor ecx, ecx
mov edx, 0x40
call fcn.0040367c
push 0x20
lea eax, [ebp - 0x4c]
push eax
push 0x5a
push 0x400
call sub.kernel32.dll_GetLocaleInfoW_1
push dword [ebp - 8]
push 0x516678
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x4c]
mov ecx, 0x20
call fcn.0040644c
push dword [ebp - 0x5c]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00406804
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x37c], edi
mov eax, dword [ebp - 0xc]
add eax, 0x118
mov edx, dword [ebp - 8]
call fcn.0040624c
cmp dword [ebp + 0x10], 0
je 0x5165a4
mov eax, dword [ebp - 0xc]
add eax, 0x114
mov edx, dword [ebp + 0x10]
call fcn.0040624c
mov eax, dword [ebp - 0xc]
add eax, 0xec
mov edx, dword [ebp - 4]
call fcn.0040624c
mov eax, dword [ebp - 0xc]
mov dword [eax + 0x188], esi
xor eax, eax
push ebp
push 0x5165dd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0xc]
call fcn.00515ed4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5165e7
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x516604
mov eax, dword [ebp - 0xc]
call fcn.00403dbc
ret