Function at 0x516fd0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59d881
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x6071d4]
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 0x5172ca
lea eax, [ebp - 0xdc]
push eax
lea ecx, [ebp - 0x124]
call fcn.004a94b0
lea edx, [ebp - 0x10c]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x124]
call fcn.005175d0
test eax, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x110]
sete byte [ebp - 0x125]
cmp eax, 8
jb 0x5170d3
inc eax
lea ecx, [ebp - 0x124]
push eax
push dword [ebp - 0x124]
call fcn.004a9d40
cmp byte [ebp - 0x125], 0
je 0x5172ca
mov eax, dword [ebp - 0xfc]
inc eax
push eax
call fcn.0053b6d3
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 0x517108
push esi
call fcn.0057b61f
add esp, 4
cmp ebx, 0x44
jge 0x517129
add ebx, 0xffffffc9
jmp 0x51712c
add ebx, 0xffffffbd
push 0xa
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.0057a515
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x5171fb
cmp dword [edi + 0x14], 0x10
jb 0x517152
mov eax, dword [edi]
jmp 0x517154
mov eax, edi
mov ecx, dword [ebp - 0xe0]
mov bl, byte [eax]
cmp ecx, 1
jae 0x51717a
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xf4]
push 1
call fcn.004b8040
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 0x5171bb
xor ecx, ecx
jmp 0x5171cd
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5171c4
sub ecx, edx
push ecx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004b7890
cmp dword [edi + 0x14], 0x10
jb 0x5171e8
mov edi, dword [edi]
movzx eax, byte [edi]
lea ecx, [ebp - 0xf4]
push eax
push 1
call fcn.004b7d20
jmp 0x51722d
cmp byte [ebp - 0x12c], 0
jne 0x517208
xor ecx, ecx
jmp 0x51721a
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517211
sub ecx, edx
push ecx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004b7670
mov al, byte [esi]
or edi, 0xffffffff
test al, al
je 0x5172b9
movzx eax, al
push eax
call fcn.0056d7a0
add esp, 4
test eax, eax
jne 0x51725e
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517250
sub ecx, edx
cmp ecx, 2
jbe 0x5172b9
mov ebx, dword [ebp - 0x130]
cmp byte [esi], 0
jne 0x51726d
xor ecx, ecx
jmp 0x51727b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517272
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x134]
lea eax, [edi + 1]
push eax
push esi
call fcn.004dccd0
mov edi, eax
cmp edi, 0xffffffff
je 0x5172b9
push esi
call fcn.0057b745
add esp, 4
lea ecx, [ebp - 0xf4]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, dword [ebp - 0x138]
push eax
push edi
call fcn.004dd2e0
mov byte [ebx], 1
jmp 0x517264
push esi
call fcn.0053b6ce
mov eax, dword [ebp - 0x13c]
add esp, 4
inc dword [eax]
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x5172e8
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.004b7bd0
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
cmp eax, 0x10
jb 0x517321
inc eax
lea ecx, [ebp - 0x10c]
push eax
push dword [ebp - 0x10c]
call fcn.004b7bd0
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.0053b206
mov esp, ebp
pop ebp
ret