Function at 0x491b10
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e7b0c
mov eax, dword fs:[0]
push eax
sub esp, 0xc4
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0xc0], eax
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0xd0]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [esp + 0xe4]
mov esi, dword [esp + 0xe0]
mov dword [esp + 0x1c], 0
sub eax, 0
je 0x491d3e
dec eax
je 0x491cbd
dec eax
jne 0x491bcf
lea eax, [esp + 0x30]
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x28], eax
mov dword [esp + 0x20], 0x40
push 0x40
push eax
push 0x1008
push dword [edi]
mov dword [esp + 0xe8], 2
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x491c4e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x491c06
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x491bcf
push eax
call fcn.004c27d0
add esp, 4
mov dword [esi + 8], 0x80000000
mov dword [esi], 0
mov eax, esi
mov ecx, dword [esp + 0xd0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0xc0]
xor ecx, esp
call fcn.004c17c4
add esp, 0xd0
ret 8
cmp dword [esp + 0x20], 0xff
lea ecx, [esp + 0x18]
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0xff
cmovle eax, ecx
lea ecx, [esp + 0x20]
push dword [eax]
push 0xff
call fcn.00481080
push dword [esp + 0x24]
push dword [esp + 0x2c]
push 0x1008
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x491bba
push 0xffffffffffffffff
push dword [esp + 0x2c]
lea eax, [esp + 0x18]
push eax
call fcn.00407d20
add esp, 0xc
push eax
mov ecx, esi
mov byte [esp + 0xdc], 3
call fcn.00453270
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
test ecx, ecx
je 0x491c92
cmp ecx, 0xffffffff
je 0x491c9f
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x491c9f
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x28]
lea ecx, [esp + 0x30]
cmp eax, ecx
je 0x491bdc
push eax
call fcn.004c27d0
add esp, 4
jmp 0x491bdc
push 0xd
lea eax, [esp + 0xb4]
push eax
push 0x14
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x491bcf
push 0xffffffffffffffff
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x14]
push eax
call fcn.00407d20
add esp, 0xc
push eax
mov ecx, esi
mov dword [esp + 0xdc], 0
call fcn.00453270
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
test ecx, ecx
je 0x491d2c
cmp ecx, 0xffffffff
je 0x491bdc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x491bdc
mov eax, dword [esp + 0xc]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
jmp 0x491bdc
push 9
lea eax, [esp + 0xb4]
push eax
push 0x15
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x491bcf
push 0xffffffffffffffff
lea eax, [esp + 0xb4]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00407d20
add esp, 0xc
push eax
mov ecx, esi
mov dword [esp + 0xdc], 1
call fcn.00453270
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x491dad
cmp ecx, 0xffffffff
je 0x491bdc
or ecx, 0xffffffff
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x491bdc
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
jmp 0x491bdc