Function at 0x51e250
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x90
push 0xffffffffffffffff
push 0x5c7e5d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x72cec4]
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], 0x6588bc
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 0x51e40c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp edi, 0x50
jne 0x51e329
test eax, eax
jne 0x51e329
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004cba30
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51e30f
push eax
call fcn.0059bad3
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51e4b8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x51e4a7
cmp eax, 0x7a
je 0x51e370
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 0x51e356
push eax
call fcn.0059bad3
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51e4b8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x51e4a7
push 0
push 0
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x51e3bf
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 0x51e3a5
push eax
call fcn.0059bad3
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51e4b8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x51e4a7
push eax
lea ecx, [ebp]
call fcn.0051f2e0
push dword [ebp + 4]
push dword [ebp + 8]
push edi
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x51e40c
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 0x51e3ff
push eax
call fcn.0059bad3
add esp, 4
lea ecx, [ebp - 0x18]
call fcn.004019e0
jmp 0x51e4b8
mov eax, dword [ebp + 8]
cmp edi, 0x50
jne 0x51e44b
cmp word [eax], 0
jne 0x51e44b
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.004cba30
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51e438
push eax
call fcn.0059bad3
add esp, 4
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x51e4b8
or eax, 0xffffffff
lock xadd dword [ecx], eax
cmp eax, 1
jmp 0x51e4a7
push 0xffffffffffffffff
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.004b6680
add esp, 0xc
mov ecx, esi
push eax
call fcn.004cba30
mov ecx, dword [ebp - 0x28]
or edi, 0xffffffff
test ecx, ecx
je 0x51e486
mov eax, edi
lock xadd dword [ecx], eax
cmp eax, 1
jne 0x51e486
push 4
push 2
push dword [ebp - 0x28]
call fcn.00461780
add esp, 0xc
mov eax, dword [ebp + 8]
lea ecx, [ebp + 0xc]
cmp eax, ecx
je 0x51e499
push eax
call fcn.0059bad3
add esp, 4
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x51e4b8
lock xadd dword [eax], edi
cmp edi, 1
jne 0x51e4b8
push 4
push 2
push dword [ebp - 0x18]
call fcn.00461780
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.00596709
lea esp, [ebp + 0x90]
pop ebp
ret 8