Function at 0x40e080
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40e3a1
sub esp, 0x30
mov eax, dword [esp + 0x38]
test eax, eax
je 0x40e388
movzx ecx, byte [eax + 4]
test cl, 4
jne 0x40e372
mov ecx, dword [esp + 0x34]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [eax + 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 dword [esp + 0x14], eax
mov ecx, dword [esp + 0x38]
movzx ebx, byte [ecx + 4]
xor ebx, 4
mov byte [ecx + 4], bl
mov ebx, dword [ecx + 0xc]
test ebx, ebx
je 0x40e312
mov edx, dword [esp + 0x34]
jmp 0x40e18f
inc ebp
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x38]
mov ebp, dword [esp + 0x10]
cmp ebp, 8
jae 0x40e2bf
test byte [ebx], al
movzx esi, byte [ebx + ebp]
xchg esi, eax
cmp al, 1
xchg esi, eax
ja 0x40e293
test ecx, ecx
je 0x40e28a
xchg esi, eax
test al, al
xchg esi, eax
jne 0x40e0f5
mov dword [esp + 0x28], ecx
mov dword [esp + 0x2c], ebx
mov ebp, dword [esp + 0x38]
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x40e283
mov esi, dword [ebp]
inc esi
movzx ebx, byte [ebp + 5]
cmp esi, 8
jle 0x40e27c
mov ecx, ebx
mov ebp, 1
shl ebp, cl
shr ebp, 1
lea ebx, [ebp + ebp*2]
lea ebx, [ebp + ebx*4]
cmp esi, ebx
jbe 0x40e1c5
mov dword [esp], edx
mov eax, dword [esp + 0x38]
mov dword [esp + 4], eax
call fcn.0040ce50
mov eax, dword [esp + 0x34]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x14]
mov eax, edx
mov edx, dword [esp + 0x34]
movzx ebx, byte [ecx + 5]
mov ebp, ecx
mov ecx, ebx
mov esi, 1
shl esi, cl
lea ebx, [esi - 1]
and ebx, eax
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x40e2e9
movzx esi, word [edx + 0x32]
mov dword [esp + 0x1c], esi
imul ebx, esi
add ebx, dword [ebp + 0xc]
xor ecx, ecx
xor edi, edi
jmp 0x40e2cf
mov ebx, dword [esp + 0x38]
movzx ebp, word [ebx + 6]
cmp cl, 0xf
jbe 0x40e1d7
mov ecx, 0xf
and ecx, 0xf
mov esi, 1
shl esi, cl
cmp bp, si
jae 0x40e16d
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x40e251
shr eax, 0x18
cmp al, 5
jae 0x40e24d
lea ebp, [eax + 5]
test byte [ecx], al
mov esi, edi
and edi, 7
xchg ebp, eax
mov byte [ecx + edi], al
xchg ebp, eax
mov ebp, ecx
lea edi, [ecx + esi*4 + 8]
test byte [edi], al
nop
mov ecx, dword [0xb53500]
mov eax, dword [esp + 0x3c]
test ecx, ecx
jne 0x40e246
mov dword [edi], eax
inc dword [ebx]
movzx eax, byte [edx + 0x31]
imul eax, esi
movzx ecx, byte [ebx + 4]
lea eax, [eax + ebp + 0x28]
test cl, 4
je 0x40e35c
and ecx, 0xfffffffb
mov byte [ebx + 4], cl
mov dword [esp + 0x40], eax
add esp, 0x30
ret
call fcn.00459620
jmp 0x40e21e
mov ebp, eax
jmp 0x40e1f9
mov dword [esp], ebx
mov dword [esp + 4], edx
mov eax, dword [esp + 0x2c]
mov dword [esp + 8], eax
call fcn.0040b270
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
xor edi, edi
jmp 0x40e1ee
mov ecx, ebx
jmp 0x40e1c5
mov ebx, ebp
jmp 0x40e1e6
mov ecx, ebx
mov edi, ebp
jmp 0x40e128
mov esi, ebx
lea ebx, [ebx + ebp*4 + 8]
mov edx, dword [esp + 0x3c]
cmp dword [ebx], edx
je 0x40e2ac
mov edx, dword [esp + 0x34]
mov ebx, esi
jmp 0x40e0f5
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x38]
mov ebp, esi
mov esi, dword [esp + 0x10]
jmp 0x40e220
mov ebp, ebx
lea ebx, [ebx + esi - 4]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40e2e2
mov ebp, dword [esp + 0x38]
mov dword [esp + 0x20], eax
xor eax, eax
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x20]
jmp 0x40e102
mov ebx, ebp
jmp 0x40e12e
mov dword [esp + 0x18], ebx
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.0040e640
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0x34]
mov ebx, dword [esp + 0x18]
mov ebp, dword [esp + 0x38]
jmp 0x40e1ae
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x28]
mov edx, dword [ecx]
mov dword [esp], edx
mov dword [esp + 4], ecx
mov byte [esp + 8], 1
call fcn.0040a100
mov eax, dword [0xb53500]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x40e34c
mov edx, dword [esp + 0x38]
mov dword [edx + 0xc], ecx
mov eax, dword [esp + 0x14]
mov ecx, edx
jmp 0x40e0ec
mov edx, dword [esp + 0x38]
lea edi, [edx + 0xc]
mov eax, ecx
call fcn.00459620
jmp 0x40e341
lea eax, [0x7ee3a5]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.00430c90
lea eax, [0x7ee3a5]
mov dword [esp], eax
mov dword [esp + 4], 0x15
call fcn.00430c90
lea eax, [0x7885e0]
mov dword [esp], eax
lea eax, [0x873bf0]
mov dword [esp + 4], eax
call fcn.00430590
nop
call fcn.00457de0
jmp fcn.0040e080