Function at 0x4a9720
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x580660
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x732480]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x10], 0x72fd18
mov eax, dword [ebp + 0x10]
mov edx, 0x40
test eax, eax
mov dword [ebp - 4], 0
cmovne edx, eax
mov dword [ebp - 0xa0], edx
cmp edx, 0x40
jle 0x4a97a2
lea eax, [edx + edx]
push eax
call fcn.005591ab
add esp, 4
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x4a9794
call fcn.00469f00
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
jmp 0x4a97b8
lea eax, [ebp - 0x94]
mov dword [ebp - 0xa4], 0x40
mov dword [ebp - 0x9c], eax
mov esi, dword [ebp + 0xc]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
push edx
push eax
push esi
push dword [ebx]
mov byte [ebp - 4], 1
call edi
test eax, eax
jne 0x4a98d9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x50
jne 0x4a9830
test eax, eax
jne 0x4a9830
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.004a3fb0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x4a980a
push eax
call fcn.00558b70
add esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4a9972
cmp eax, 0xffffffff
je 0x4a9981
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
dec ecx
jmp 0x4a996b
cmp eax, 0x7a
je 0x4a9855
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
and eax, 0xc0000000
mov dword [esi], 0
and eax, 0xbfffffff
or eax, 0x80000000
mov dword [esi + 8], eax
jmp 0x4a97f1
push 0
push 0
push esi
push dword [ebx]
call edi
mov edx, eax
test edx, edx
je 0x4a9895
cmp edx, dword [ebp - 0xa4]
mov ecx, edx
cmovl ecx, dword [ebp - 0xa4]
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.00490710
push dword [ebp - 0xa0]
push dword [ebp - 0x9c]
push esi
push dword [ebx]
call edi
test eax, eax
jne 0x4a98d9
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x94]
mov eax, dword [esi + 8]
and eax, 0xc0000000
and eax, 0xbfffffff
or eax, 0x80000000
mov dword [esi + 8], eax
mov eax, dword [ebp - 0x9c]
mov dword [esi], 0
cmp eax, ecx
je 0x4a98cc
push eax
call fcn.00558b70
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.00406190
jmp 0x4a9981
mov eax, dword [ebp - 0x9c]
cmp esi, 0x50
jne 0x4a98ee
cmp word [eax], 0
je 0x4a97e3
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00435080
add esp, 0xc
mov esi, dword [ebp + 8]
mov ecx, esi
push eax
mov byte [ebp - 4], 2
call fcn.004a3fb0
mov eax, dword [ebp + 0x10]
or edi, 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x4a992d
cmp eax, edi
je 0x4a993c
mov eax, dword [ebp + 0x10]
mov ecx, edi
lock xadd dword [eax], ecx
dec ecx
setne al
test al, al
jne 0x4a993c
push 4
push 2
push dword [ebp + 0x10]
call fcn.00425140
add esp, 0xc
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x4a9955
push eax
call fcn.00558b70
add esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x4a9972
cmp eax, 0xffffffff
je 0x4a9981
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], edi
dec edi
setne al
test al, al
jne 0x4a9981
push 4
push 2
push dword [ebp - 0x10]
call fcn.00425140
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc