Function at 0x40f5e0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40f933
sub esp, 0x30
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40f90e
mov ecx, dword [eax]
test ecx, ecx
je 0x40f90e
movzx ecx, byte [eax + 4]
test cl, 4
jne 0x40f91c
movzx ecx, byte [eax + 5]
test cl, cl
jne 0x40f7af
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov ebx, dword [esp + 0x40]
cmp ebx, 0x20
jge 0x40f6d0
nop
lea eax, [ecx + 8]
xor edx, edx
jmp 0x40f648
inc edx
add eax, 8
cmp edx, 8
jae 0x40f660
mov ebx, dword [esp + 0x40]
cmp dword [eax + 4], ebx
je 0x40f66e
test byte [ecx], al
movzx ebx, byte [edx + ecx]
test bl, bl
jne 0x40f644
lea eax, [0xb540e0]
mov dword [esp + 0x44], eax
add esp, 0x30
ret
test byte [ecx], al
movzx ebp, byte [edx + ecx]
xchg ebp, eax
cmp al, 1
xchg ebp, eax
jbe 0x40f656
mov ebp, dword [eax]
mov esi, dword [esp + 0x3c]
cmp ebp, esi
jne 0x40f6a5
mov ebx, 1
test bl, bl
je 0x40f644
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x31]
imul edx, eax
lea eax, [ecx + edx + 0x48]
mov dword [esp + 0x44], eax
add esp, 0x30
ret
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
mov dword [esp], ebp
mov dword [esp + 4], esi
mov dword [esp + 8], ebx
call fcn.004023f0
movzx ebx, byte [esp + 0xc]
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
jmp 0x40f68a
nop
lea ebp, [ecx + 8]
xor edx, edx
mov esi, 8
jmp 0x40f6e1
inc edx
add ebp, 8
cmp edx, 8
jae 0x40f6f7
cmp dword [ebp + 4], ebx
je 0x40f751
test byte [ecx], al
movzx edi, byte [edx + ecx]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x40f6dd
cmp esi, 8
jne 0x40f70a
lea eax, [0xb540e0]
mov dword [esp + 0x44], eax
add esp, 0x30
ret
mov dword [esp + 0x14], esi
lea ecx, [ecx + esi*8 + 8]
nop
mov ecx, dword [ecx]
mov edx, dword [esp + 0x3c]
mov dword [esp], ecx
mov dword [esp + 4], edx
mov dword [esp + 8], ebx
call fcn.004023f0
movzx eax, byte [esp + 0xc]
test al, al
je 0x40f6fc
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x31]
mov ecx, dword [esp + 0x14]
imul ecx, eax
mov eax, dword [esp + 0x20]
lea eax, [eax + ecx + 0x48]
mov dword [esp + 0x44], eax
add esp, 0x30
ret
test byte [ecx], al
movzx edi, byte [edx + ecx]
xchg edi, eax
cmp al, 1
xchg edi, eax
jbe 0x40f6eb
mov edi, dword [ebp]
mov eax, dword [esp + 0x3c]
cmp edi, eax
je 0x40f8f7
mov ecx, dword [edi]
cmp dword [eax], ecx
je 0x40f780
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
jmp 0x40f6dd
lea eax, [eax + ebx - 4]
lea ecx, [edi + ebx - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x40f79b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
jmp 0x40f6dd
cmp esi, 8
jne 0x40f7af
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x20]
mov esi, edx
jmp 0x40f6dd
mov eax, dword [esp + 0x34]
mov edx, dword [eax + 0x2c]
mov ecx, dword [esp + 0x38]
mov ebx, dword [ecx + 8]
lea ebp, [esp + 0x3c]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x38]
movzx ebx, byte [ecx + 5]
mov edx, ecx
mov ecx, ebx
mov ebp, 1
shl ebp, cl
lea ecx, [ebp - 1]
mov ebx, ecx
and ecx, eax
mov ebp, dword [esp + 0x34]
movzx esi, word [ebp + 0x32]
imul ecx, esi
mov edi, dword [edx + 0x10]
add ecx, dword [edx + 0xc]
test edi, edi
je 0x40f82a
movzx edx, byte [edx + 4]
test dl, 8
je 0x40f8f0
and ebx, eax
imul ebx, esi
lea edx, [ebx + edi]
movzx ebx, byte [ebx + edi]
cmp bl, 1
jbe 0x40f8e9
cmp bl, 5
jae 0x40f8e9
shr eax, 0x18
cmp al, 5
jae 0x40f835
add eax, 5
mov byte [esp + 0x13], al
jmp 0x40f8c8
inc ebx
add edx, 8
cmp ebx, 8
jae 0x40f8be
mov esi, dword [esp + 0x40]
cmp dword [edx + 4], esi
jne 0x40f83e
movzx edi, byte [ebx + ecx]
xchg edi, ebx
cmp al, bl
xchg edi, ebx
jne 0x40f83e
mov edi, dword [edx]
mov ebp, dword [esp + 0x3c]
cmp edi, ebp
jne 0x40f88e
mov ebp, 1
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x40f877
mov ebp, dword [esp + 0x34]
jmp 0x40f83e
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x31]
imul ebx, eax
lea eax, [ecx + ebx + 0x48]
mov dword [esp + 0x44], eax
add esp, 0x30
ret
mov dword [esp + 0x18], ebx
mov dword [esp + 0x24], edx
mov dword [esp], edi
mov dword [esp + 4], ebp
mov dword [esp + 8], esi
call fcn.004023f0
movzx ebp, byte [esp + 0xc]
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x18]
jmp 0x40f86b
movzx edx, word [ebp + 0x32]
lea edx, [ecx + edx - 4]
mov ecx, dword [edx]
test ecx, ecx
je 0x40f8db
mov dword [esp + 0x2c], ecx
nop
lea edx, [ecx + 8]
xor ebx, ebx
jmp 0x40f842
lea eax, [0xb540e0]
mov dword [esp + 0x44], eax
add esp, 0x30
ret
mov ecx, edx
jmp 0x40f82a
shr ebx, 1
jmp 0x40f80c
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x31]
imul eax, edx
lea eax, [ecx + eax + 0x48]
mov dword [esp + 0x44], eax
add esp, 0x30
ret
lea eax, [0xb540e0]
mov dword [esp + 0x44], eax
add esp, 0x30
ret
lea eax, [0x7f6107]
mov dword [esp], eax
mov dword [esp + 4], 0x21
call fcn.00430c90
nop
call fcn.00457de0
jmp fcn.0040f5e0