Function at 0x508d20
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57735c
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5bb250]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x6c], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x50]
call fcn.004fd630
mov dword [ebp - 4], 1
push 0x18
push 0
lea ecx, [ebp - 0xa4]
push ecx
call fcn.0053ca90
add esp, 0xc
push 0x13
lea edx, [ebp - 0x38]
push edx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x98], eax
push 0x13
lea ecx, [ebp - 0x4c]
push ecx
push 0xf
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [ebp - 0x4c]
mov dword [ebp - 0x94], edx
push 0x13
lea eax, [ebp - 0x24]
push eax
push 0x12
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea ecx, [ebp - 0x24]
push ecx
call fcn.0053bfd8
add esp, 4
mov dword [ebp - 0xa0], eax
push 0x13
lea edx, [ebp - 0x24]
push edx
push 0x10
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea eax, [ebp - 0x24]
push eax
call fcn.0053bfd8
add esp, 4
mov dword [ebp - 0x9c], eax
push 0x13
lea ecx, [ebp - 0x24]
push ecx
push 0x1010
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
lea edx, [ebp - 0x24]
push edx
call fcn.0053bfd8
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x508e8b
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004fd630
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x50]
call fcn.004ff590
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x508e5f
mov dword [ebp - 0x68], 0
jmp 0x508e79
lea ecx, [ebp - 0x50]
call fcn.004ffa50
mov esi, eax
sub esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
call fcn.004ffa50
sub esi, eax
mov dword [ebp - 0x68], esi
mov eax, dword [ebp - 0x68]
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x60]
call fcn.004fdf30
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0053d2d1
add esp, 4
imul eax, eax, 3
add eax, 0x64
mov dword [ebp - 0x64], eax
xor ecx, ecx
mov eax, dword [ebp - 0x64]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00520986
add esp, 4
mov dword [ebp - 0x78], eax
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x64]
sub ecx, 1
push ecx
mov edx, dword [ebp - 0x5c]
push edx
lea eax, [ebp - 0xa4]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_GetNumberFormatW]
test eax, eax
je 0x508f01
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x50]
call fcn.004fe3e0
cmp dword [ebp - 0x5c], 0
je 0x508f19
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0053c06b
add esp, 4
push 0x5943cc
push 1
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x50]
call fcn.004ffc70
mov dword [ebp - 0x80], eax
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x88], eax
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x88]
push ecx
call fcn.004fe710
add esp, 8
mov byte [ebp - 0x51], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.004fdf30
movzx edx, byte [ebp - 0x51]
test edx, edx
je 0x508fa8
lea eax, [ebp - 0x50]
push eax
push 0x59875c
lea ecx, [ebp - 0x74]
push ecx
call fcn.004fea20
add esp, 0xc
mov dword [ebp - 0x7c], eax
mov edx, dword [ebp - 0x7c]
mov dword [ebp - 0x8c], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x8c]
push eax
lea ecx, [ebp - 0x50]
call fcn.004fe340
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004fdf30
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004fd4f0
mov edx, dword [ebp - 0x6c]
or edx, 1
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004fdf30
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0053e21c
mov esp, ebp
pop ebp
ret