Function at 0x40f310
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword [0xf335f8]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40fc55
sub esp, 0x50
cmp dword [0xf33470], 2
je 0x40fc3e
mov eax, dword [esp + 0x54]
test eax, eax
je 0x40fbaa
movzx ecx, byte [0xf33eac]
test cl, cl
je 0x40f40b
mov ecx, dword [0xf33eb8]
test ecx, ecx
je 0x40f3b9
mov ecx, dword [esp + 0x58]
test ecx, ecx
je 0x40f392
test eax, 7
jne 0x40f36f
mov ecx, 8
jmp 0x40f397
test eax, 3
jne 0x40f37d
mov ecx, 4
jmp 0x40f397
test eax, 1
jne 0x40f38b
mov ecx, 2
jmp 0x40f397
mov ecx, 1
jmp 0x40f397
mov ecx, 0x10
mov dword [esp], eax
mov dword [esp + 4], ecx
lea eax, [0xf3b338]
mov dword [esp + 8], eax
call fcn.004100c0
mov eax, dword [esp + 0xc]
mov dword [esp + 0x60], eax
add esp, 0x50
ret
movzx ecx, byte [0xf33be0]
test cl, cl
je 0x40f40b
mov ecx, dword [0xf335f8]
mov ecx, dword fs:[ecx]
mov ecx, dword [ecx]
mov edx, dword [ecx + 0x50]
mov ecx, dword [ecx + 0x54]
cmp dword [0xf33be4], edx
sete dl
cmp dword [0xf33be8], ecx
sete cl
and edx, ecx
test dl, dl
je 0x40f40b
mov ecx, dword [0xf33bec]
mov edx, dword [0xf33bf0]
add ecx, 1
mov dword [0xf33bec], ecx
adc edx, 0
mov dword [0xf33bf0], edx
mov dword [esp], eax
call fcn.0040fc60
mov eax, dword [0xf335f8]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x18]
mov edx, dword [esp + 4]
nop
inc dword [ecx + 0x7c]
mov eax, dword [eax + 0x18]
mov ecx, dword [eax + 0x6c]
test ecx, ecx
jne 0x40fc28
mov ebx, dword [0xf335f8]
mov ebx, dword fs:[ebx]
mov ebx, dword [ebx]
cmp dword [eax + 0x30], ebx
je 0x40fc12
mov dword [eax + 0x6c], 1
mov ebx, dword [eax + 0x58]
test ebx, ebx
je 0x40f45e
mov ebx, dword [ebx + 0x30]
jmp 0x40f464
mov ebx, dword [0xf334d8]
test ebx, ebx
je 0x40fbfc
mov ebp, dword [esp + 0x58]
test ebp, ebp
je 0x40f482
mov esi, dword [ebp + 4]
test esi, esi
xchg esi, ebx
sete bl
xchg esi, ebx
jmp 0x40f487
mov esi, 1
mov dword [esp + 0x4c], edx
mov dword [esp + 0x44], eax
mov dword [esp + 0x2c], ebx
xchg esi, eax
mov byte [esp + 0x16], al
xchg esi, eax
mov edi, dword [esp + 0x54]
cmp edi, 0x8000
ja 0x40f8bb
xchg esi, eax
test al, al
xchg esi, eax
je 0x40f6b8
cmp edi, 0x10
jae 0x40f6b8
mov ecx, dword [ebx + 0xc]
test edi, 7
jne 0x40f4cf
add ecx, 7
and ecx, 0xfffffff8
jmp 0x40f4f9
cmp edi, 0xc
jne 0x40f4dc
add ecx, 7
and ecx, 0xfffffff8
jmp 0x40f4f9
test edi, 3
jne 0x40f4ec
add ecx, 3
and ecx, 0xfffffffc
jmp 0x40f4f9
test edi, 1
jne 0x40f4f9
inc ecx
nop
and ecx, 0xfffffffe
lea edx, [ecx + edi]
cmp edx, 0x10
ja 0x40f54e
mov ebp, dword [ebx + 8]
test ebp, ebp
je 0x40f54a
add ecx, ebp
mov dword [ebx + 0xc], edx
inc dword [ebx + 0x10]
mov dword [eax + 0x6c], 0
mov edx, dword [eax + 0x7c]
lea ebx, [edx - 1]
nop
mov ebp, dword [0xf335f8]
mov ebp, dword fs:[ebp]
mov ebp, dword [ebp]
mov dword [eax + 0x7c], ebx
cmp edx, 1
jne 0x40f542
movzx eax, byte [ebp + 0x65]
test al, al
je 0x40f542
mov dword [ebp + 8], 0xfffffade
mov dword [esp + 0x60], ecx
add esp, 0x50
ret
mov ebp, dword [esp + 0x58]
mov edx, dword [ebx + 0x28]
mov ecx, dword [edx + 0x24]
bsf eax, ecx
jne 0x40f55e
mov eax, 0x20
mov ebp, dword [edx + 0x20]
bsf esi, ebp
jne 0x40f56b
mov esi, 0x20
cmp ebp, 1
sbb ebx, ebx
xor ebx, 0xffffffff
not ebx
and eax, ebx
lea ebx, [esi + eax]
cmp ebx, 0x40
jge 0x40f64b
mov dword [esp + 0x34], ebp
mov dword [esp + 0x18], edx
mov edi, dword [edx + 0x18]
lea ebp, [edi + ebx]
mov edx, dword [edx + 0x1c]
cmp edx, ebp
jbe 0x40f643
lea ebx, [edi + ebx + 1]
test ebx, 0x3f
jne 0x40f5bb
cmp edx, ebx
je 0x40f5bb
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x54]
xor eax, eax
jmp 0x40f64d
mov dword [esp + 0x30], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x28], ebx
lea edx, [eax + esi - 0x1f]
mov edi, ecx
mov ecx, edx
shr edi, cl
neg ecx
mov ebp, dword [esp + 0x30]
shl ebp, cl
mov dword [esp + 0x40], ebp
lea eax, [esi + eax + 1]
mov esi, ecx
mov ecx, eax
mov ebx, dword [esp + 0x34]
shr ebx, cl
mov ebp, dword [esp + 0x30]
shr ebp, cl
cmp eax, 0x20
sbb eax, eax
and ebp, eax
and ebx, eax
cmp edx, 0x20
sbb eax, eax
and edi, eax
cmp esi, 0x20
sbb eax, eax
mov edx, dword [esp + 0x40]
and edx, eax
or ebx, edx
or edi, ebx
mov eax, dword [esp + 0x18]
mov dword [eax + 0x20], edi
mov dword [eax + 0x24], ebp
mov edx, dword [esp + 0x28]
mov dword [eax + 0x18], edx
movzx edx, word [eax + 0x3c]
inc edx
mov word [eax + 0x3c], dx
mov edx, dword [eax + 0x44]
mov ebx, dword [esp + 0x20]
imul edx, ebx
add edx, dword [eax + 0xc]
mov edi, dword [esp + 0x54]
mov eax, edx
mov edx, dword [esp + 0x18]
jmp 0x40f64d
mov edx, dword [esp + 0x18]
mov edi, dword [esp + 0x54]
xor eax, eax
test eax, eax
je 0x40f655
xor ecx, ecx
jmp 0x40f677
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
mov byte [esp + 4], 5
call fcn.0040f0f0
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov edi, dword [esp + 0x54]
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
mov ebx, dword [esp + 0x2c]
cmp dword [ebx + 0xc], edi
ja 0x40f6a2
mov ebp, dword [ebx + 8]
test ebp, ebp
jne 0x40f6ac
mov ebp, eax
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], edi
jmp 0x40f6ae
mov ebp, eax
mov eax, 0x10
jmp 0x40f8b4
cmp edi, 0x3f8
ja 0x40f6de
lea ecx, [edi + 7]
shr ecx, 3
cmp ecx, 0x81
jae 0x40fbf0
lea edx, [0xeb7780]
movzx edx, byte [edx + ecx]
jmp 0x40f704
lea ecx, [edi - 0x381]
shr ecx, 7
cmp ecx, 0xf9
jae 0x40fbe4
lea ebp, [0xeb8940]
movzx ebp, byte [ebp + ecx]
mov edx, ebp
mov ebp, dword [esp + 0x58]
movzx ecx, dl
cmp ecx, 0x44
jae 0x40fbd8
shl edx, 1
xchg esi, ebx
movzx eax, bl
xchg esi, ebx
or edx, eax
movzx eax, dl
lea ebp, [0xeb7960]
movzx ebp, word [ebp + ecx*2]
nop
cmp eax, 0x88
jae 0x40fbce
mov byte [esp + 0x14], dl
mov dword [esp + 0x3c], ebp
mov eax, dword [ebx + eax*4 + 0x14]
mov ecx, dword [eax + 0x24]
bsf edi, ecx
jne 0x40f74e
mov edi, 0x20
mov edx, dword [eax + 0x20]
bsf ebx, edx
jne 0x40f75b
mov ebx, 0x20
cmp edx, 1
sbb esi, esi
xor esi, 0xffffffff
xchg esi, ebx
not ebx
xchg esi, ebx
and edi, esi
lea esi, [ebx + edi]
cmp esi, 0x40
jge 0x40f83a
mov dword [esp + 0x18], eax
mov dword [esp + 0x34], edx
mov ebp, dword [eax + 0x18]
lea edx, [ebp + esi]
mov eax, dword [eax + 0x1c]
cmp eax, edx
jbe 0x40f832
lea ebp, [ebp + esi + 1]
test ebp, 0x3f
jne 0x40f7b0
cmp eax, ebp
je 0x40f7b0
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
xor edx, edx
jmp 0x40f83c
mov dword [esp + 0x1c], edx
mov dword [esp + 0x24], ebp
mov dword [esp + 0x30], ecx
lea eax, [ebx + edi - 0x1f]
mov dword [esp + 0x40], eax
mov esi, ecx
mov ecx, eax
shr esi, cl
neg eax
mov ecx, eax
mov edx, dword [esp + 0x30]
shl edx, cl
lea ebx, [ebx + edi + 1]
mov ecx, ebx
mov edi, dword [esp + 0x30]
shr edi, cl
mov ebp, dword [esp + 0x34]
shr ebp, cl
cmp ecx, 0x20
sbb ebx, ebx
and ebp, ebx
and edi, ebx
cmp eax, 0x20
sbb eax, eax
and edx, eax
or ebp, edx
mov eax, dword [esp + 0x40]
cmp eax, 0x20
sbb eax, eax
and esi, eax
or ebp, esi
mov eax, dword [esp + 0x18]
mov dword [eax + 0x20], ebp
mov dword [eax + 0x24], edi
mov edx, dword [esp + 0x24]
mov dword [eax + 0x18], edx
movzx edx, word [eax + 0x3c]
inc edx
mov word [eax + 0x3c], dx
mov edx, dword [eax + 0x44]
mov ebx, dword [esp + 0x1c]
imul edx, ebx
add edx, dword [eax + 0xc]
mov ebp, dword [esp + 0x3c]
jmp 0x40f83c
mov eax, dword [esp + 0x18]
mov ebp, dword [esp + 0x3c]
xor edx, edx
test edx, edx
je 0x40f844
xor ecx, ecx
jmp 0x40f86a
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
movzx ecx, byte [esp + 0x14]
mov byte [esp + 4], cl
call fcn.0040f0f0
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
movzx ecx, byte [esp + 0x10]
mov ebp, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x5c]
test bl, bl
je 0x40f8a4
movzx ebx, byte [eax + 0x40]
test bl, bl
je 0x40f8a4
mov dword [esp + 0x48], edx
mov byte [esp + 0x15], cl
mov dword [esp + 0x38], eax
mov dword [esp], edx
mov dword [esp + 4], ebp
call fcn.0046deb0
mov eax, dword [esp + 0x38]
movzx ecx, byte [esp + 0x15]
mov edx, dword [esp + 0x48]
mov ebp, dword [esp + 0x3c]
mov ebx, dword [esp + 0x2c]
mov edi, dword [esp + 0x54]
mov ebp, edx
mov edx, eax
mov eax, dword [esp + 0x3c]
xor esi, esi
jmp 0x40f956
mov dword [esp], ebx
mov dword [esp + 4], edi
xchg esi, eax
mov byte [esp + 8], al
xchg esi, eax
call fcn.00417e50
mov eax, dword [esp + 0xc]
mov dword [eax + 0x18], 1
mov word [eax + 0x3c], 1
mov ecx, dword [eax + 0xc]
mov edx, dword [eax + 0x44]
movzx ebx, byte [esp + 0x5c]
test bl, bl
je 0x40f934
movzx ebx, byte [eax + 0x40]
test bl, bl
je 0x40f92b
movzx ebx, byte [esp + 0x16]
test bl, bl
jne 0x40f927
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x48], ecx
mov dword [esp], ecx
mov dword [esp + 4], edx
call fcn.0046deb0
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x48]
mov edx, dword [esp + 0x3c]
movzx ebx, byte [esp + 0x16]
mov ebp, ebx
jmp 0x40f93b
movzx ebp, byte [esp + 0x16]
xor ebx, ebx
jmp 0x40f93b
movzx ebp, byte [esp + 0x16]
xor ebx, ebx
mov edi, dword [esp + 0x54]
mov esi, ebx
mov ebp, ecx
mov ebx, dword [esp + 0x2c]
mov ecx, 1
mov ebx, edx
mov edx, eax
mov eax, ebx
mov ebx, dword [esp + 0x2c]
mov dword [esp + 0x48], ebp
mov dword [esp + 0x3c], eax
mov byte [esp + 0x15], cl
xchg esi, eax
mov byte [esp + 0x17], al
xchg esi, eax
mov dword [esp + 0x18], edx
movzx ecx, byte [esp + 0x16]
test cl, cl
jne 0x40f9bd
mov dword [esp], ebp
mov dword [esp + 4], eax
mov dword [esp + 8], edi
mov edx, dword [esp + 0x58]
mov dword [esp + 0xc], edx
call fcn.00417000
mov eax, dword [esp + 0x58]
mov ecx, dword [eax]
mov edx, dword [esp + 0x54]
cmp edx, ecx
jbe 0x40f9b1
mov ebx, dword [eax + 4]
test ebx, ebx
je 0x40f9ab
mov ebp, edx
sub edx, ecx
lea ecx, [edx + ebx]
jmp 0x40f9b6
mov ebp, edx
xor ecx, ecx
jmp 0x40f9b6
mov ecx, dword [eax + 4]
mov ebp, edx
mov edx, dword [esp + 0x2c]
add dword [edx + 4], ecx
call fcn.0046d370
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 0x18]
mov dword [eax + 0x5c], ecx
mov ecx, dword [0xf33470]
test ecx, ecx
je 0x40f9ee
mov ecx, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], eax
call fcn.00423e40
mov eax, dword [0xeb2ebc]
test eax, eax
jle 0x40fa33
cmp eax, 1
je 0x40fa11
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov edx, dword [esp + 0x3c]
cmp edx, ecx
jae 0x40fa15
sub ecx, edx
mov dword [eax], ecx
jmp 0x40fa37
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov dword [esp], eax
mov ecx, dword [esp + 0x48]
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.0040fe50
mov edx, dword [esp + 0x3c]
jmp 0x40fa37
mov edx, dword [esp + 0x3c]
mov eax, dword [esp + 0x44]
mov dword [eax + 0x6c], 0
mov ecx, dword [eax + 0x7c]
lea ebx, [ecx - 1]
nop
mov ebp, dword [0xf335f8]
mov ebp, dword fs:[ebp]
mov ebp, dword [ebp]
mov dword [eax + 0x7c], ebx
cmp ecx, 1
jne 0x40fa6d
movzx eax, byte [ebp + 0x65]
test al, al
je 0x40fa6d
mov dword [ebp + 8], 0xfffffade
movzx eax, byte [esp + 0x17]
test al, al
je 0x40fa97
movzx eax, byte [esp + 0x16]
test al, al
je 0x40fbb8
mov dword [esp], edx
mov eax, dword [esp + 0x48]
mov dword [esp + 4], eax
call fcn.0040fce0
mov edx, dword [esp + 0x3c]
movzx eax, byte [0xf33eac]
test al, al
je 0x40fb19
mov eax, dword [0xf33eb0]
test eax, eax
je 0x40fac8
mov eax, dword [esp + 0x48]
mov dword [esp], eax
mov dword [esp + 4], edx
mov ecx, dword [esp + 0x58]
mov dword [esp + 8], ecx
call fcn.004351d0
mov edx, dword [esp + 0x3c]
movzx eax, byte [0xf33be0]
test al, al
je 0x40fb19
mov eax, dword [0xf335f8]
mov eax, dword fs:[eax]
mov eax, dword [eax]
mov ecx, dword [eax + 0x50]
mov eax, dword [eax + 0x54]
cmp dword [0xf33be4], ecx
sete cl
cmp dword [0xf33be8], eax
sete al
and ecx, eax
test cl, cl
je 0x40fb19
mov eax, dword [0xf33bf4]
mov ecx, dword [0xf33bf8]
add eax, edx
mov dword [0xf33bf4], eax
adc ecx, 0
mov dword [0xf33bf8], ecx
mov eax, dword [esp + 0x4c]
test eax, eax
je 0x40fb44
mov ecx, dword [eax + 0xf4]
mov ebx, dword [eax + 0xf8]
mov ebp, dword [esp + 0x54]
sub edx, ebp
sub ecx, edx
mov dword [eax + 0xf4], ecx
sbb ebx, 0
mov dword [eax + 0xf8], ebx
movzx eax, byte [esp + 0x15]
test al, al
je 0x40fb9e
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
call fcn.0041c2e0
movzx eax, byte [esp + 0x10]
test al, al
je 0x40fb9e
mov dword [esp], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp + 0xc], 0
call fcn.0041c450
mov eax, dword [esp + 0x48]
mov dword [esp + 0x60], eax
add esp, 0x50
ret
lea eax, [0xf33400]
mov dword [esp + 0x60], eax
add esp, 0x50
ret
lea eax, [0xa5325c]
mov dword [esp], eax
mov dword [esp + 4], 0x31
call fcn.0043d060
mov ecx, 0x88
call fcn.0046d760
mov eax, ecx
mov ecx, 0x44
call fcn.0046d760
mov eax, ecx
mov ecx, 0xf9
call fcn.0046d770
mov eax, ecx
mov ecx, 0x81
call fcn.0046d770
lea eax, [0xa58c2a]
mov dword [esp], eax
mov dword [esp + 4], 0x34
call fcn.0043d060
lea eax, [0xa26cdb]
mov dword [esp], eax
mov dword [esp + 4], 0x14
call fcn.0043d060
lea eax, [0xa22961]
mov dword [esp], eax
mov dword [esp + 4], 0xf
call fcn.0043d060
lea eax, [0xa54cd2]
mov dword [esp], eax
mov dword [esp + 4], 0x32
call fcn.0043d060
nop
call fcn.0046c2f0
jmp fcn.0040f310