Function at 0x40bed0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x40c3b3
sub esp, 0x48
mov eax, dword [esp + 0x50]
test eax, eax
je 0x40c39a
movzx ecx, byte [eax + 4]
test cl, 4
jne 0x40c384
mov ecx, dword [esp + 0x4c]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [eax + 8]
mov ebp, dword [esp + 0x54]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x18], eax
mov ecx, dword [esp + 0x50]
movzx ebx, byte [ecx + 4]
xor ebx, 4
mov byte [ecx + 4], bl
mov ebx, dword [ecx + 0xc]
test ebx, ebx
je 0x40c320
mov ebx, dword [esp + 0x4c]
jmp 0x40c002
inc esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x34], edi
mov esi, dword [esp + 0x18]
mov edi, ebp
mov ebp, dword [esp + 0x44]
mov esi, dword [esp + 0x14]
cmp esi, 8
jae 0x40c2c1
mov dword [esp + 0x2c], edi
test byte [ebp], al
movzx edi, byte [ebp + esi]
add ebp, esi
xchg edi, ebx
cmp al, bl
xchg edi, ebx
je 0x40c209
xchg edi, eax
cmp al, 1
xchg edi, eax
ja 0x40bf8e
test ecx, ecx
je 0x40c1d1
mov ebp, dword [esp + 0x2c]
xchg edi, eax
test al, al
xchg edi, eax
je 0x40bf9e
mov edi, dword [esp + 0x34]
jmp 0x40bf45
mov esi, dword [esp + 0x34]
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], ebp
mov dword [esp + 0x30], ecx
mov edi, dword [edx + 0x10]
test edi, edi
jne 0x40c070
mov edi, dword [edx]
inc edi
movzx eax, byte [edx + 5]
cmp edi, 8
jle 0x40c1ca
mov ecx, eax
mov ebp, 1
shl ebp, cl
shr ebp, 1
lea esi, [ebp + ebp*2]
lea ebp, [ebp + esi*4]
cmp edi, ebp
jbe 0x40c04d
mov dword [esp], ebx
mov dword [esp + 4], edx
call fcn.0040ce50
mov eax, dword [esp + 0x50]
mov ecx, dword [esp + 0x4c]
mov edx, dword [esp + 0x18]
mov eax, edx
mov ecx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
movzx ebp, byte [ecx + 5]
mov edx, ecx
mov ecx, ebp
mov esi, 1
shl esi, cl
lea ebp, [esi - 1]
and ebp, eax
mov esi, dword [edx + 0x10]
test esi, esi
jne 0x40c2f7
movzx esi, word [ebx + 0x32]
imul ebp, esi
add ebp, dword [edx + 0xc]
mov esi, eax
shr eax, 0x18
cmp al, 5
jae 0x40c038
add eax, 5
mov byte [esp + 0x13], al
xor ecx, ecx
xor edi, edi
xor ecx, ecx
mov dword [esp + 0x34], ecx
xor ecx, ecx
jmp 0x40c2d4
movzx ebp, word [edx + 6]
cmp al, 0xf
jbe 0x40c05b
mov eax, 0xf
and eax, 0xf
mov ecx, eax
mov esi, 1
shl esi, cl
cmp bp, si
jae 0x40bfe0
mov eax, dword [esp + 0x30]
test eax, eax
je 0x40c195
mov ecx, dword [esp + 0x40]
mov ebp, dword [esp + 0x34]
mov dword [esp + 0x34], ebp
mov dword [esp + 0x30], eax
mov esi, dword [ebx + 0x34]
test esi, 1
jne 0x40c147
mov esi, dword [ebx + 0x34]
test esi, 2
jne 0x40c101
mov eax, dword [ebx + 0x20]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov eax, dword [esp + 0x54]
mov dword [esp + 8], eax
call fcn.00410780
movzx eax, byte [esp + 0x13]
mov ecx, dword [esp + 0x30]
mov byte [ecx], al
mov eax, dword [esp + 0x50]
inc dword [eax]
mov ecx, dword [esp + 0x34]
movzx edx, byte [eax + 4]
test dl, 4
je 0x40c36e
and edx, 0xfffffffb
mov byte [eax + 4], dl
mov eax, dword [esp + 0x4c]
mov eax, dword [eax + 0x34]
test eax, 2
je 0x40c0fd
mov eax, dword [ecx]
mov dword [esp + 0x58], eax
add esp, 0x48
ret
mov eax, ecx
jmp 0x40c0f5
mov dword [esp + 0x2c], ecx
mov eax, dword [ebx + 0x24]
mov ecx, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.0040a100
mov edi, dword [esp + 0x34]
test byte [edi], al
mov eax, dword [0xb53500]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x40c13e
mov dword [edi], ecx
mov ecx, dword [esp + 0x2c]
mov ebx, dword [esp + 0x4c]
jmp 0x40c0a6
mov eax, ecx
call fcn.00459620
jmp 0x40c131
mov dword [esp + 0x3c], ecx
mov eax, dword [ebx + 0x20]
mov ecx, dword [eax]
mov dword [esp], ecx
mov dword [esp + 4], eax
mov byte [esp + 8], 1
call fcn.0040a100
mov edi, dword [esp + 0x3c]
test byte [edi], al
mov eax, dword [0xb53500]
mov ecx, dword [esp + 0xc]
test eax, eax
jne 0x40c18c
mov dword [edi], ecx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x34]
jmp 0x40c09b
mov eax, ecx
call fcn.00459620
jmp 0x40c177
mov dword [esp], edx
mov dword [esp + 4], ebx
mov eax, dword [esp + 0x44]
mov dword [esp + 8], eax
call fcn.0040b270
mov eax, dword [esp + 0xc]
test byte [eax], al
nop
mov ebx, dword [esp + 0x4c]
movzx ecx, byte [ebx + 0x30]
lea edx, [eax + 8]
lea ebp, [eax + ecx*8 + 8]
mov ecx, edx
mov edx, dword [esp + 0x50]
jmp 0x40c084
mov ecx, eax
jmp 0x40c04d
movzx ecx, byte [ebx + 0x30]
imul esi, ecx
movzx edx, byte [ebx + 0x31]
mov ebx, dword [esp + 0x14]
imul edx, ebx
lea ecx, [edx + ecx*8]
mov edx, dword [esp + 0x44]
lea esi, [esi + edx + 8]
lea ecx, [ecx + edx + 8]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x34], ecx
mov ecx, ebp
mov ebp, esi
mov esi, ebx
mov ebx, dword [esp + 0x4c]
jmp 0x40bf92
mov dword [esp + 0x38], ecx
movzx ebp, byte [ebx + 0x30]
imul ebp, esi
mov edi, dword [esp + 0x44]
lea ebp, [ebp + edi + 8]
mov edi, dword [ebx + 0x34]
test edi, 1
je 0x40c22a
mov ebp, dword [ebp]
mov dword [esp + 0x28], ebp
mov eax, dword [ebx + 0x20]
mov edx, dword [eax + 0x10]
mov eax, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ebp
mov ecx, dword [edx]
call ecx
movzx eax, byte [esp + 8]
test al, al
jne 0x40c26e
movzx eax, byte [esp + 0x13]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
mov edi, dword [esp + 0x34]
jmp 0x40bf45
mov eax, dword [esp + 0x4c]
mov ecx, dword [eax + 0x34]
test ecx, 8
jne 0x40c2a0
movzx edx, byte [eax + 0x30]
movzx ebx, byte [eax + 0x31]
mov ebp, dword [esp + 0x14]
imul ebx, ebp
lea edx, [ebx + edx*8]
mov ebx, dword [esp + 0x44]
lea ecx, [ebx + edx + 8]
mov eax, dword [esp + 0x50]
jmp 0x40c0d2
mov ecx, dword [eax + 0x20]
mov dword [esp], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 4], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 8], ecx
call fcn.00410780
mov eax, dword [esp + 0x4c]
jmp 0x40c27d
movzx esi, word [ebx + 0x32]
lea ebp, [ebp + esi - 4]
mov ebp, dword [ebp]
test ebp, ebp
je 0x40c2ec
mov esi, dword [esp + 0x18]
mov dword [esp + 0x44], ebp
mov byte [esp + 0x20], al
xor eax, eax
mov dword [esp + 0x14], eax
movzx eax, byte [esp + 0x20]
jmp 0x40bf58
mov ebp, edi
mov esi, dword [esp + 0x34]
jmp 0x40bfa2
mov dword [esp + 0x1c], ebp
mov dword [esp], ebx
mov dword [esp + 4], edx
mov dword [esp + 8], ebp
call fcn.0040d030
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x50]
mov ebx, dword [esp + 0x4c]
mov ebp, dword [esp + 0x1c]
jmp 0x40c021
mov eax, dword [esp + 0x4c]
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 0x40c35c
mov eax, dword [esp + 0x50]
mov dword [eax + 0xc], ecx
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x50]
jmp 0x40bf3c
mov ebx, dword [esp + 0x50]
lea edi, [ebx + 0xc]
mov eax, ecx
call fcn.00459620
mov eax, ebx
jmp 0x40c34f
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, [0x873ca0]
mov dword [esp + 4], eax
call fcn.00430590
nop
call fcn.00457de0
jmp fcn.0040bed0