Function at 0x4fa4f0
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5774d7
mov eax, dword fs:[0]
push eax
sub esp, 0x98
mov eax, dword [0x5bd250]
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.004fe220
mov dword [ebp - 4], 1
push 0x18
push 0
lea ecx, [ebp - 0xa4]
push ecx
call fcn.0053e230
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.0053d76e
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.0053d76e
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.0053d76e
add esp, 4
mov dword [ebp - 0x90], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x4fa65b
lea ecx, [ebp - 0x38]
push ecx
lea ecx, [ebp - 0x60]
call fcn.004fe220
mov byte [ebp - 4], 2
push 0
lea edx, [ebp - 0x38]
push edx
lea ecx, [ebp - 0x50]
call fcn.00500200
mov dword [ebp - 0x58], eax
cmp dword [ebp - 0x58], 0xffffffff
jne 0x4fa62f
mov dword [ebp - 0x68], 0
jmp 0x4fa649
lea ecx, [ebp - 0x50]
call fcn.005006c0
mov esi, eax
sub esi, dword [ebp - 0x58]
lea ecx, [ebp - 0x60]
call fcn.005006c0
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.004feb20
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0xa4], ecx
mov edx, dword [ebp + 0xc]
push edx
call fcn.0053ea71
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.00521d36
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 0x4fa6d1
mov edx, dword [ebp - 0x5c]
push edx
lea ecx, [ebp - 0x50]
call fcn.004fefd0
cmp dword [ebp - 0x5c], 0
je 0x4fa6e9
mov eax, dword [ebp - 0x5c]
mov dword [ebp - 0x70], eax
mov ecx, dword [ebp - 0x70]
push ecx
call fcn.0053d801
add esp, 4
push 0x5963fc
push 1
lea edx, [ebp - 0x84]
push edx
lea ecx, [ebp - 0x50]
call fcn.005008e0
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.004ff300
add esp, 8
mov byte [ebp - 0x51], al
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x84]
call fcn.004feb20
movzx edx, byte [ebp - 0x51]
test edx, edx
je 0x4fa778
lea eax, [ebp - 0x50]
push eax
push 0x59a78c
lea ecx, [ebp - 0x74]
push ecx
call fcn.004ff640
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.004fef30
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x74]
call fcn.004feb20
lea ecx, [ebp - 0x50]
push ecx
mov ecx, dword [ebp + 8]
call fcn.004fe0e0
mov edx, dword [ebp - 0x6c]
or edx, 1
mov dword [ebp - 0x6c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x50]
call fcn.004feb20
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.0053f9bc
mov esp, ebp
pop ebp
ret