Function at 0x480540
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x54c20b
mov eax, dword fs:[0]
push eax
sub esp, 0x98
push ebx
push esi
push edi
mov eax, dword [0x8870bc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x11]
call fcn.00480850
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 0x4805c7
lea eax, [edx + edx]
push eax
call fcn.00526109
add esp, 4
mov dword [ebp - 0x9c], eax
test eax, eax
jne 0x4805b9
call fcn.00418900
mov eax, dword [ebp - 0x9c]
mov edx, dword [ebp - 0xa0]
mov dword [ebp - 0xa4], edx
jmp 0x4805dd
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 0x480700
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x50
jne 0x480676
test eax, eax
jne 0x480676
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
mov ecx, esi
call fcn.0047a8a0
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x48062f
push eax
call fcn.005260ee
add esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x480651
cmp eax, 0xffffffff
je 0x480660
mov eax, dword [ebp - 0x10]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x480660
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
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
cmp eax, 0x7a
je 0x48068d
mov esi, dword [ebp + 8]
mov dword [esi + 8], 0x80000000
mov dword [esi], 0
jmp 0x480616
push 0
push 0
push esi
push dword [ebx]
call edi
mov edx, eax
test edx, edx
jne 0x4806cf
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x94]
mov eax, dword [ebp - 0x9c]
mov dword [esi], 0
mov dword [esi + 8], 0x80000000
cmp eax, ecx
je 0x4806c5
push eax
call fcn.005260ee
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.004011e0
jmp 0x480660
cmp edx, dword [ebp - 0xa4]
mov ecx, edx
cmovl ecx, dword [ebp - 0xa4]
push ecx
push edx
lea ecx, [ebp - 0xa4]
call fcn.00459560
push dword [ebp - 0xa0]
push dword [ebp - 0x9c]
push esi
push dword [ebx]
call edi
test eax, eax
je 0x48069c
mov eax, dword [ebp - 0x9c]
cmp esi, 0x50
jne 0x480715
cmp word [eax], 0
je 0x480608
push 0xffffffffffffffff
push eax
lea eax, [ebp + 0x10]
push eax
call fcn.00457730
add esp, 0xc
mov edi, dword [ebp + 8]
mov ecx, edi
push eax
mov byte [ebp - 4], 2
call fcn.0047a8a0
mov eax, dword [ebp + 0x10]
or esi, 0xffffffff
mov eax, dword [eax]
test eax, eax
je 0x480756
cmp eax, esi
je 0x480765
mov eax, dword [ebp + 0x10]
mov ecx, esi
lock xadd dword [eax], ecx
cmp ecx, 1
setne al
test al, al
jne 0x480765
push 4
push 2
push dword [ebp + 0x10]
call fcn.004016c0
add esp, 0xc
mov eax, dword [ebp - 0x9c]
lea ecx, [ebp - 0x94]
cmp eax, ecx
je 0x48077e
push eax
call fcn.005260ee
add esp, 4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
test eax, eax
je 0x48079d
cmp eax, 0xffffffff
je 0x4807ac
mov eax, dword [ebp - 0x10]
lock xadd dword [eax], esi
cmp esi, 1
setne al
test al, al
jne 0x4807ac
push 4
push 2
push dword [ebp - 0x10]
call fcn.004016c0
add esp, 0xc
mov eax, edi
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