Function at 0x51c900
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x90
push 0xffffffffffffffff
push 0x5c64bd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x72b01c]
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], 0x65462c
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 0x51cabc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x50
jne 0x51c9d9
test eax, eax
jne 0x51c9d9
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004ca110
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51c9bf
push eax
call fcn.0059a133
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51cb68
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x51cb57
cmp eax, 0x7a
je 0x51ca20
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 0x51ca06
push eax
call fcn.0059a133
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51cb68
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x51cb57
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x51ca6f
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 0x51ca55
push eax
call fcn.0059a133
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51cb68
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x51cb57
push eax
lea ecx, [ebp]
call fcn.0051d990
push dword [ebp + 4]
push dword [ebp + 8]
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x51cabc
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 0x51caaf
push eax
call fcn.0059a133
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.004019e0
jmp 0x51cb68
mov eax, dword [ebp + 8]
cmp edi, 0x50
jne 0x51cafb
cmp word [eax], 0
jne 0x51cafb
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004ca110
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51cae8
push eax
call fcn.0059a133
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51cb68
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x51cb57
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b4d80
add esp, 0xc
mov ecx, esi
push eax
call fcn.004ca110
mov ecx, dword [ebp - 0x28]
or edi, 0xffffffff
test ecx, ecx
je 0x51cb36
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51cb36
push 4
push 2
push dword [ebp - 0x28]
call fcn.0045fe90
add esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51cb49
push eax
call fcn.0059a133
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x51cb68
lock xadd dword [eax], edi
cmp edi, 1
jne 0x51cb68
push 4
push 2
push dword [ebp - 0x18]
call fcn.0045fe90
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.00594d69
lea esp, [ebp + 0x90]
pop ebp
ret 8