Function at 0x489c90
Capabilities:
Get geographical location

Disassembly:
push ebp
lea ebp, [esp - 0x204]
sub esp, 0x204
push 0xffffffffffffffff
push 0x55356e
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6fb4c0]
xor eax, ebp
mov dword [ebp + 0x200], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 0x20c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 1
mov dword [esi], 0x6e80cc
mov dword [ebp - 0x20], 1
mov dword [ebp - 0x14], 0x6e80cc
push 0xff
lea eax, [ebp]
mov dword [ebp - 4], 1
push eax
push 1
push dword [ebp + 0x210]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
or edi, 0xffffffff
test eax, eax
je 0x489d5b
push edi
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00420d90
mov ecx, dword [ebp - 0x14]
mov edx, eax
add esp, 0xc
mov eax, dword [edx]
mov dword [ebp - 0x14], eax
mov dword [edx], ecx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x489d4c
cmp eax, edi
je 0x489d5b
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x489d5b
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x14]
cmp dword [eax + 4], 0
je 0x489df3
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.0040c970
mov dword [ebp - 0x20], 3
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 2
mov ecx, dword [eax + 0xc]
add ecx, eax
lea eax, [ebp - 0x15]
push eax
push 0x10
lea eax, [ebp - 0x24]
push eax
push ecx
call fcn.004395d0
add esp, 0x18
mov ecx, eax
cmp byte [ebp - 0x15], 0
je 0x489dc1
mov eax, dword [ebp - 0x24]
cmp byte [eax], 0
jne 0x489dc1
cmp ecx, 0x814
jne 0x489dc1
push 0x61f2f8
push 2
mov ecx, esi
call fcn.004058c0
mov eax, dword [ebp - 0x10]
mov byte [ebp - 4], 1
mov eax, dword [eax]
test eax, eax
je 0x489de4
cmp eax, 0xffffffff
je 0x489df3
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x489df3
push 4
push 1
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x489e29
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x489ea9
cmp eax, 0xffffffff
je 0x489eb8
mov ecx, dword [ebp - 0x14]
lock xadd dword [ecx], edi
dec edi
setne cl
test cl, cl
je 0x489ea9
jmp 0x489eb8
push 0xff
lea eax, [ebp]
push eax
push 0x59
push dword [ebp + 0x210]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x489e8c
push 0xffffffffffffffff
lea eax, [ebp]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00420d90
mov edx, dword [esi]
add esp, 0xc
mov ecx, dword [eax]
mov dword [esi], ecx
mov dword [eax], edx
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x489e7d
cmp eax, 0xffffffff
je 0x489e8c
mov eax, dword [ebp - 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x489e8c
push 4
push 2
push dword [ebp - 0x10]
call fcn.00403690
add esp, 0xc
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
test eax, eax
je 0x489ea9
cmp eax, 0xffffffff
je 0x489eb8
mov eax, dword [ebp - 0x14]
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x489eb8
push 4
push 2
push dword [ebp - 0x14]
call fcn.00403690
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x200]
xor ecx, ebp
call fcn.00524900
lea esp, [ebp + 0x204]
pop ebp
ret