Function at 0x494c80
Capabilities:
Get geographical location

Disassembly:
push 0xffffffffffffffff
push 0x4e8091
mov eax, dword fs:[0]
push eax
sub esp, 0x224
mov eax, dword [0x64a000]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
push esi
push edi
mov eax, dword [0x64a000]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x244]
mov esi, 0x4ed20c
mov dword [esp + 0x24], 0
mov dword [esp + 0x1c], esi
mov dword [esp + 0x23c], 0
mov dword [esp + 0x10], esi
push 0xff
lea eax, [esp + 0x34]
mov byte [esp + 0x240], 1
push eax
push 1
push dword [esp + 0x254]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or edi, 0xffffffff
test eax, eax
je 0x494d56
push edi
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00407d20
mov ecx, dword [esp + 0x1c]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [esp + 0x10], eax
mov dword [edx], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x494d49
cmp ecx, edi
je 0x494d56
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x494d56
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [eax + 4], 0
je 0x494e0b
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.0041e8b0
mov eax, dword [esp + 0x14]
mov byte [esp + 0x23c], 2
mov ecx, dword [eax + 0xc]
add ecx, eax
lea eax, [esp + 0x1b]
push eax
push 0x10
lea eax, [esp + 0x28]
push eax
push ecx
call fcn.00459870
add esp, 0x10
mov ecx, eax
cmp byte [esp + 0x1b], 0
je 0x494dd2
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x494dd2
cmp ecx, 0x814
jne 0x494dd2
push 0x5c61e4
lea ecx, [esp + 0x2c]
call fcn.004011c0
lea ecx, [esp + 0x1c]
push dword [eax + 4]
push dword [eax]
call fcn.00421450
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov byte [esp + 0x23c], 1
mov ecx, dword [eax]
test ecx, ecx
je 0x494dfa
cmp ecx, 0xffffffff
je 0x494e07
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x494e07
mov eax, dword [esp + 0x14]
push 4
push 1
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x10]
cmp dword [esi + 4], 0
jne 0x494e79
push 0xff
lea eax, [esp + 0x34]
push eax
push 0x59
push dword [esp + 0x254]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x494e75
push 0xffffffffffffffff
lea eax, [esp + 0x34]
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00407d20
mov ecx, esi
add esp, 0xc
mov esi, dword [eax]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov ecx, dword [eax]
test ecx, ecx
je 0x494e68
cmp ecx, 0xffffffff
je 0x494e75
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x494e75
mov eax, dword [esp + 0x14]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [esp + 0x10]
mov dword [ebx], esi
mov ecx, dword [eax]
test ecx, ecx
je 0x494e97
cmp ecx, 0xffffffff
je 0x494ea4
mov ecx, edi
lock xadd dword [eax], ecx
setne al
test al, al
jne 0x494ea4
mov eax, dword [esp + 0x10]
push 4
push 2
push eax
call fcn.00413640
add esp, 0xc
mov eax, dword [0x4ed20c]
test eax, eax
je 0x494ec3
cmp eax, 0xffffffff
je 0x494ed4
mov eax, 0x4ed20c
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x494ed4
push 4
push 2
push 0x4ed20c
call fcn.00413640
add esp, 0xc
mov eax, ebx
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.004c17c4
add esp, 0x230
ret