Function at 0x40f940
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40fcbb
sub esp, 0x30
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40fc91
mov ecx, dword [eax]
test ecx, ecx
je 0x40fc91
movzx ecx, byte [eax + 4]
test cl, 4
jne 0x40fca4
movzx ecx, byte [eax + 5]
test cl, cl
jne 0x40fb23
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov ebx, dword [esp + 0x40]
cmp ebx, 0x20
jge 0x40fa3a
nop
lea eax, [ecx + 8]
xor edx, edx
jmp 0x40f9a8
inc edx
add eax, 8
cmp edx, 8
jae 0x40f9c0
mov ebx, dword [esp + 0x40]
cmp dword [eax + 4], ebx
je 0x40f9d3
test byte [ecx], al
movzx ebx, byte [edx + ecx]
test bl, bl
jne 0x40f9a4
lea eax, [0xb540e0]
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 0
add esp, 0x30
ret
test byte [ecx], al
movzx ebp, byte [edx + ecx]
xchg ebp, eax
cmp al, 1
xchg ebp, eax
jbe 0x40f9b6
mov ebp, dword [eax]
mov esi, dword [esp + 0x3c]
cmp ebp, esi
jne 0x40fa0f
mov ebx, 1
test bl, bl
je 0x40f9a4
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x31]
imul edx, eax
lea eax, [ecx + edx + 0x48]
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 1
add esp, 0x30
ret
mov dword [esp + 0x1c], edx
mov dword [esp + 0x20], 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 + 0x20]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x1c]
jmp 0x40f9ef
nop
lea ebp, [ecx + 8]
xor edx, edx
mov esi, 8
jmp 0x40fa4b
inc edx
add ebp, 8
cmp edx, 8
jae 0x40fa61
cmp dword [ebp + 4], ebx
je 0x40fac5
test byte [ecx], al
movzx edi, byte [edx + ecx]
xchg edi, eax
test al, al
xchg edi, eax
jne 0x40fa47
cmp esi, 8
jne 0x40fa79
lea eax, [0xb540e0]
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 0
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 0x40fa66
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x31]
mov ecx, dword [esp + 0x14]
imul ecx, eax
mov eax, dword [esp + 0x28]
lea eax, [eax + ecx + 0x48]
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 1
add esp, 0x30
ret
test byte [ecx], al
movzx edi, byte [edx + ecx]
xchg edi, eax
cmp al, 1
xchg edi, eax
jbe 0x40fa55
mov edi, dword [ebp]
mov eax, dword [esp + 0x3c]
cmp edi, eax
je 0x40fc75
mov ecx, dword [edi]
cmp dword [eax], ecx
je 0x40faf4
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
jmp 0x40fa47
lea eax, [eax + ebx - 4]
lea ecx, [edi + ebx - 4]
mov ecx, dword [ecx]
cmp dword [eax], ecx
je 0x40fb0f
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
jmp 0x40fa47
cmp esi, 8
jne 0x40fb23
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x28]
mov esi, edx
jmp 0x40fa47
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 0x40fb9e
movzx edx, byte [edx + 4]
test dl, 8
je 0x40fc6e
and ebx, eax
imul ebx, esi
lea edx, [ebx + edi]
movzx ebx, byte [ebx + edi]
cmp bl, 1
jbe 0x40fc67
cmp bl, 5
jae 0x40fc67
shr eax, 0x18
cmp al, 5
jae 0x40fba9
add eax, 5
mov byte [esp + 0x13], al
jmp 0x40fc41
inc ebx
add edx, 8
cmp ebx, 8
jae 0x40fc37
mov esi, dword [esp + 0x40]
cmp dword [edx + 4], esi
jne 0x40fbb2
movzx edi, byte [ebx + ecx]
xchg edi, ebx
cmp al, bl
xchg edi, ebx
jne 0x40fbb2
mov edi, dword [edx]
mov ebp, dword [esp + 0x3c]
cmp edi, ebp
jne 0x40fc07
mov ebp, 1
xchg ebp, eax
test al, al
xchg ebp, eax
jne 0x40fbeb
mov ebp, dword [esp + 0x34]
jmp 0x40fbb2
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x31]
imul ebx, eax
lea eax, [ecx + ebx + 0x48]
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 1
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 0x40fbdf
movzx edx, word [ebp + 0x32]
lea edx, [ecx + edx - 4]
mov ecx, dword [edx]
test ecx, ecx
je 0x40fc54
mov dword [esp + 0x2c], ecx
nop
lea edx, [ecx + 8]
xor ebx, ebx
jmp 0x40fbb6
lea eax, [0xb540e0]
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 0
add esp, 0x30
ret
mov ecx, edx
jmp 0x40fb9e
shr ebx, 1
jmp 0x40fb80
mov eax, dword [esp + 0x34]
movzx eax, byte [eax + 0x31]
imul eax, edx
lea eax, [ecx + eax + 0x48]
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 1
add esp, 0x30
ret
lea eax, [0xb540e0]
mov dword [esp + 0x44], eax
mov byte [esp + 0x48], 0
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.0040f940