Function at 0x51c9d0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5a3591
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x6121d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, edx
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x13c], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x130], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x134], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x138], eax
mov dword [ebp - 0xf8], 0xf
mov dword [ebp - 0xfc], 0
mov byte [ebp - 0x10c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
push 0x64
lea eax, [ebp - 0xdc]
mov byte [ebp - 4], 1
push eax
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x51ccca
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x124]
call fcn.004ab630
lea edx, [ebp - 0x10c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.0051cfd0
test eax, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x110]
sete byte [ebp - 0x125]
cmp eax, 8
jb 0x51cad3
inc eax
lea ecx, [ebp - 0x124]
push eax
push dword [ebp - 0x124]
call fcn.004abec0
cmp byte [ebp - 0x125], 0
je 0x51ccca
mov eax, dword [ebp - 0xfc]
inc eax
push eax
call fcn.00541106
add esp, 4
lea ecx, [ebp - 0x10c]
cmp dword [ebp - 0xf8], 0x10
mov esi, eax
mov edx, esi
cmovae ecx, dword [ebp - 0x10c]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx], al
lea edx, [edx + 1]
test al, al
jne 0x51cb08
push esi
call fcn.00580f8b
add esp, 4
cmp ebx, 0x44
jge 0x51cb29
add ebx, 0xffffffc9
jmp 0x51cb2c
add ebx, 0xffffffbd
push 0xa
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.0057fee4
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x51cbfb
cmp dword [edi + 0x14], 0x10
jb 0x51cb52
mov eax, dword [edi]
jmp 0x51cb54
mov eax, edi
mov ecx, dword [ebp - 0xe0]
mov bl, byte [eax]
cmp ecx, 1
jae 0x51cb7a
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xf4]
push 1
call fcn.004b4c40
mov ecx, dword [ebp - 0xe0]
cmp ecx, 0x10
lea eax, [ebp - 0xf4]
cmovae eax, dword [ebp - 0xf4]
mov byte [eax], bl
lea eax, [ebp - 0xf4]
cmp dword [ebp - 0xe0], 0x10
mov dword [ebp - 0xe4], 1
cmovae eax, dword [ebp - 0xf4]
mov byte [eax + 1], 0
cmp byte [ebp - 0x12c], 0
jne 0x51cbbb
xor ecx, ecx
jmp 0x51cbcd
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51cbc4
sub ecx, edx
push ecx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004bc720
cmp dword [edi + 0x14], 0x10
jb 0x51cbe8
mov edi, dword [edi]
movzx eax, byte [edi]
lea ecx, [ebp - 0xf4]
push eax
push 1
call fcn.004bcab0
jmp 0x51cc2d
cmp byte [ebp - 0x12c], 0
jne 0x51cc08
xor ecx, ecx
jmp 0x51cc1a
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51cc11
sub ecx, edx
push ecx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004b28d0
mov al, byte [esi]
or edi, 0xffffffff
test al, al
je 0x51ccb9
movzx eax, al
push eax
call fcn.005731f0
add esp, 4
test eax, eax
jne 0x51cc5e
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51cc50
sub ecx, edx
cmp ecx, 2
jbe 0x51ccb9
mov ebx, dword [ebp - 0x130]
cmp byte [esi], 0
jne 0x51cc6d
xor ecx, ecx
jmp 0x51cc7b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x51cc72
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x134]
lea eax, [edi + 1]
push eax
push esi
call fcn.004e6bd0
mov edi, eax
cmp edi, 0xffffffff
je 0x51ccb9
push esi
call fcn.005810b1
add esp, 4
lea ecx, [ebp - 0xf4]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, dword [ebp - 0x138]
push eax
push edi
call fcn.004e71e0
mov byte [ebx], 1
jmp 0x51cc64
push esi
call fcn.00541101
mov eax, dword [ebp - 0x13c]
add esp, 4
inc dword [eax]
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x51cce8
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.004b3ec0
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
cmp eax, 0x10
jb 0x51cd21
inc eax
lea ecx, [ebp - 0x10c]
push eax
push dword [ebp - 0x10c]
call fcn.004b3ec0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00540c56
mov esp, ebp
pop ebp
ret