Function at 0x40fcd0
Capabilities:
Get geographical location

Disassembly:
mov ecx, dword fs:[0x14]
mov ecx, dword [ecx]
cmp esp, dword [ecx + 8]
jbe 0x410057
sub esp, 0x38
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41003e
movzx ecx, byte [eax + 4]
test cl, 4
jne 0x410028
mov ecx, dword [esp + 0x3c]
mov edx, dword [ecx + 0x2c]
mov ebx, dword [eax + 8]
lea ebp, [esp + 0x44]
mov dword [esp], ebp
mov dword [esp + 4], ebx
mov ebx, dword [edx]
call ebx
mov eax, dword [esp + 8]
mov dword [esp + 0x1c], eax
mov ecx, dword [esp + 0x40]
movzx ebx, byte [ecx + 4]
xor ebx, 4
mov byte [ecx + 4], bl
mov ebx, dword [ecx + 0xc]
test ebx, ebx
je 0x40ffc8
mov edx, dword [esp + 0x3c]
jmp 0x40fdd8
lea edx, [ebp + 1]
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x3c]
mov ebp, dword [esp + 0x18]
cmp ebp, 8
jae 0x40ff64
test byte [ebx], al
movzx edx, byte [ebx + ebp]
xchg esi, eax
cmp al, dl
xchg esi, eax
je 0x40fedf
cmp dl, 1
ja 0x40fd7e
test eax, eax
je 0x40fed6
test dl, dl
jne 0x40fd45
mov edx, dword [esp + 0x40]
mov ebp, dword [edx + 0x10]
test ebp, ebp
jne 0x40fe44
mov ebp, dword [edx]
inc ebp
movzx ebx, byte [edx + 5]
cmp ebp, 8
jle 0x40fecf
mov ecx, ebx
mov esi, 1
shl esi, cl
shr esi, 1
lea ebx, [esi + esi*2]
lea ebx, [esi + ebx*4]
cmp ebp, ebx
jbe 0x40fe23
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.0040ce50
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x40]
mov edx, dword [esp + 0x1c]
mov eax, edx
mov edx, dword [esp + 0x3c]
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 0x40ff9f
movzx esi, word [edx + 0x32]
imul ebx, esi
add ebx, dword [ebp + 0xc]
mov esi, eax
shr eax, 0x18
cmp al, 5
jae 0x40ff96
mov ecx, esi
lea esi, [eax + 5]
xchg esi, eax
mov byte [esp + 0x13], al
xchg esi, eax
xor eax, eax
xor edi, edi
jmp 0x40ff76
movzx ebx, word [edx + 6]
cmp cl, 0xf
jbe 0x40fe31
mov ecx, 0xf
and ecx, 0xf
mov ebp, 1
shl ebp, cl
cmp bx, bp
jae 0x40fdb6
test eax, eax
je 0x40fea8
test byte [eax], al
mov ecx, edi
and edi, 7
movzx ebx, byte [esp + 0x13]
mov byte [eax + edi], bl
mov ebx, eax
lea edi, [eax + ecx*8 + 8]
nop
mov ebp, dword [esp + 0x48]
mov eax, dword [esp + 0x44]
mov dword [edi + 4], ebp
mov ebp, dword [0xb53500]
test ebp, ebp
jne 0x40fea1
mov dword [edi], eax
inc dword [edx]
mov eax, dword [esp + 0x3c]
movzx eax, byte [eax + 0x31]
imul ecx, eax
movzx eax, byte [edx + 4]
lea ecx, [ecx + ebx + 0x48]
test al, 4
je 0x410012
and eax, 0xfffffffb
mov byte [edx + 4], al
mov dword [esp + 0x4c], ecx
add esp, 0x38
ret
call fcn.00459620
jmp 0x40fe75
mov dword [esp], edx
mov eax, dword [esp + 0x3c]
mov dword [esp + 4], eax
mov ecx, dword [esp + 0x34]
mov dword [esp + 8], ecx
call fcn.0040b270
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x40]
xor edi, edi
jmp 0x40fe48
mov ecx, ebx
jmp 0x40fe23
mov eax, ebx
mov edi, ebp
jmp 0x40fd7e
mov edx, ebx
lea ebx, [ebx + ebp*8 + 8]
nop
mov esi, dword [esp + 0x48]
cmp dword [ebx + 4], esi
je 0x40fefb
mov ebx, edx
movzx esi, byte [esp + 0x13]
jmp 0x40fd45
mov dword [esp + 0x24], esi
mov ebx, dword [ebx]
mov esi, dword [esp + 0x44]
cmp ebx, esi
jne 0x40ff2a
xor ebx, ebx
test bl, bl
je 0x40ff1b
mov ebx, edx
movzx esi, byte [esp + 0x13]
jmp 0x40fd45
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov ecx, ebp
jmp 0x40fe77
mov dword [esp + 0x14], edi
mov dword [esp + 0x30], eax
mov dword [esp], ebx
mov dword [esp + 4], esi
mov eax, dword [esp + 0x24]
mov dword [esp + 8], eax
call fcn.004023f0
movzx ebx, byte [esp + 0xc]
xor ebx, 1
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x34]
mov ebp, dword [esp + 0x18]
mov edi, dword [esp + 0x14]
jmp 0x40ff0b
movzx ebp, word [edx + 0x32]
lea ebx, [ebx + ebp - 4]
mov ebx, dword [ebx]
test ebx, ebx
je 0x40ff8d
mov ebp, dword [esp + 0x40]
mov dword [esp + 0x34], ebx
mov dword [esp + 0x28], eax
xor eax, eax
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
jmp 0x40fd54
mov ebx, dword [esp + 0x34]
jmp 0x40fd82
mov ecx, esi
mov esi, eax
jmp 0x40fe14
mov dword [esp + 0x20], ebx
mov dword [esp], edx
mov dword [esp + 4], ebp
mov dword [esp + 8], ebx
call fcn.00410380
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x3c]
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x40]
jmp 0x40fdf7
mov eax, dword [esp + 0x3c]
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 0x410002
mov edx, dword [esp + 0x40]
mov dword [edx + 0xc], ecx
mov eax, dword [esp + 0x1c]
mov ecx, edx
jmp 0x40fd3c
mov edx, dword [esp + 0x40]
lea edi, [edx + 0xc]
mov eax, ecx
call fcn.00459620
jmp 0x40fff7
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, [0x873c00]
mov dword [esp + 4], eax
call fcn.00430590
nop
call fcn.00457de0
jmp fcn.0040fcd0