Function at 0x517280
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59dc31
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 0x51757a
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.00517880
test eax, eax
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x110]
sete byte [ebp - 0x125]
cmp eax, 8
jb 0x517383
inc eax
lea ecx, [ebp - 0x124]
push eax
push dword [ebp - 0x124]
call fcn.004a9d40
cmp byte [ebp - 0x125], 0
je 0x51757a
mov eax, dword [ebp - 0xfc]
inc eax
push eax
call fcn.0053ba01
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 0x5173b8
push esi
call fcn.0057b86b
add esp, 4
cmp ebx, 0x44
jge 0x5173d9
add ebx, 0xffffffc9
jmp 0x5173dc
add ebx, 0xffffffbd
push 0xa
lea eax, [ebp - 0x12c]
push eax
push ebx
call fcn.0057a7c4
add esp, 0xc
cmp dword [edi + 0x10], 0
je 0x5174ab
cmp dword [edi + 0x14], 0x10
jb 0x517402
mov eax, dword [edi]
jmp 0x517404
mov eax, edi
mov ecx, dword [ebp - 0xe0]
mov bl, byte [eax]
cmp ecx, 1
jae 0x51742a
push dword [ebp - 0xe4]
lea ecx, [ebp - 0xf4]
push 1
call fcn.004b80d0
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 0x51746b
xor ecx, ecx
jmp 0x51747d
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517474
sub ecx, edx
push ecx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004b7920
cmp dword [edi + 0x14], 0x10
jb 0x517498
mov edi, dword [edi]
movzx eax, byte [edi]
lea ecx, [ebp - 0xf4]
push eax
push 1
call fcn.004b7db0
jmp 0x5174dd
cmp byte [ebp - 0x12c], 0
jne 0x5174b8
xor ecx, ecx
jmp 0x5174ca
lea ecx, [ebp - 0x12c]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5174c1
sub ecx, edx
push ecx
lea eax, [ebp - 0x12c]
push eax
lea ecx, [ebp - 0xf4]
call fcn.004b7700
mov al, byte [esi]
or edi, 0xffffffff
test al, al
je 0x517569
movzx eax, al
push eax
call fcn.0056dad0
add esp, 4
test eax, eax
jne 0x51750e
mov ecx, esi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517500
sub ecx, edx
cmp ecx, 2
jbe 0x517569
mov ebx, dword [ebp - 0x130]
cmp byte [esi], 0
jne 0x51751d
xor ecx, ecx
jmp 0x51752b
mov ecx, esi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x517522
sub ecx, edx
push ecx
mov ecx, dword [ebp - 0x134]
lea eax, [edi + 1]
push eax
push esi
call fcn.004dcd90
mov edi, eax
cmp edi, 0xffffffff
je 0x517569
push esi
call fcn.0057b991
add esp, 4
lea ecx, [ebp - 0xf4]
push 0xffffffffffffffff
push 0
push ecx
mov ecx, dword [ebp - 0x138]
push eax
push edi
call fcn.004dd3a0
mov byte [ebx], 1
jmp 0x517514
push esi
call fcn.0053b9ee
mov eax, dword [ebp - 0x13c]
add esp, 4
inc dword [eax]
mov eax, dword [ebp - 0xe0]
cmp eax, 0x10
jb 0x517598
inc eax
lea ecx, [ebp - 0xf4]
push eax
push dword [ebp - 0xf4]
call fcn.004b7c60
mov eax, dword [ebp - 0xf8]
mov dword [ebp - 0xe0], 0xf
mov dword [ebp - 0xe4], 0
mov byte [ebp - 0xf4], 0
cmp eax, 0x10
jb 0x5175d1
inc eax
lea ecx, [ebp - 0x10c]
push eax
push dword [ebp - 0x10c]
call fcn.004b7c60
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.0053b526
mov esp, ebp
pop ebp
ret