Function at 0x516270
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x90
push 0xffffffffffffffff
push 0x5bfe3d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x71c56c]
xor eax, ebp
mov dword [ebp + 0x8c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 0x98]
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0x6426ec
mov dword [ebp - 0x10], 1
lea eax, [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp], 0x40
mov dword [ebp + 8], eax
mov dword [ebp + 4], 0x40
mov edi, dword [ebp + 0x9c]
push 0x40
push eax
push edi
push dword [ebx]
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x51642c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x50
jne 0x516349
test eax, eax
jne 0x516349
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004c3a60
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51632f
push eax
call fcn.00593ad3
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x5164d8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x5164c7
cmp eax, 0x7a
je 0x516390
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
xorps xmm0, xmm0
movq qword [esi], xmm0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 2
cmp eax, ecx
je 0x516376
push eax
call fcn.00593ad3
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x5164d8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x5164c7
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x5163df
xorps xmm0, xmm0
lea ecx, [ebp + 0xc]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], 2
cmp eax, ecx
je 0x5163c5
push eax
call fcn.00593ad3
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x5164d8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x5164c7
push eax
lea ecx, [ebp]
call fcn.00517300
push dword [ebp + 4]
push dword [ebp + 8]
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x51642c
xorps xmm0, xmm0
lea ecx, [ebp + 0xc]
movq qword [esi], xmm0
mov dword [esi + 8], eax
mov eax, dword [ebp + 8]
mov dword [esi + 0x10], 2
cmp eax, ecx
je 0x51641f
push eax
call fcn.00593ad3
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.004019e0
jmp 0x5164d8
mov eax, dword [ebp + 8]
cmp edi, 0x50
jne 0x51646b
cmp word [eax], 0
jne 0x51646b
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004c3a60
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x516458
push eax
call fcn.00593ad3
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x5164d8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x5164c7
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004ae6d0
add esp, 0xc
mov ecx, esi
push eax
call fcn.004c3a60
mov ecx, dword [ebp - 0x28]
or edi, 0xffffffff
test ecx, ecx
je 0x5164a6
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x5164a6
push 4
push 2
push dword [ebp - 0x28]
call fcn.004597e0
add esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x5164b9
push eax
call fcn.00593ad3
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x5164d8
lock xadd dword [eax], edi
cmp edi, 1
jne 0x5164d8
push 4
push 2
push dword [ebp - 0x18]
call fcn.004597e0
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.0058e709
lea esp, [ebp + 0x90]
pop ebp
ret 8