Function at 0x40d600
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4ceca6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x68
push ebx
push ebp
push esi
xor ebx, ebx
push edi
mov dword [esp + 0x20], ecx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x28], 1
jmp 0x40d634
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x28]
push 0xa
lea eax, [esp + 0x6c]
push eax
push ecx
call fcn.00498cf4
add esp, 0xc
push str.WayPoints
lea ecx, [esp + 0x44]
call fcn.00431b00
lea edx, [esp + 0x68]
push edx
lea ecx, [esp + 0x44]
mov dword [esp + 0x84], 0
call fcn.00431c50
mov ebp, dword [esp + 0x20]
mov eax, dword [ebp + 0x240]
lea ecx, [eax + 0x10]
cmp dword [ecx], 0
je 0x40d69a
lea eax, [esp + 0x40]
push eax
call fcn.0043f920
test eax, eax
je 0x40d69a
mov eax, dword [eax]
test eax, eax
je 0x40d69a
add eax, 0xfffffffc
jmp 0x40d69f
mov eax, 0x504be4
push eax
lea ecx, [esp + 0x3c]
call fcn.00431990
mov ecx, dword [esp + 0x3c]
cmp word [ecx - 4], 0
mov byte [esp + 0x80], 1
jne 0x40d6c0
xor esi, esi
jmp 0x40d719
push 0x4d6ee6
lea ecx, [esp + 0x54]
call fcn.00431b00
or ebx, 1
push 0x4d6ee6
lea ecx, [esp + 0x4c]
mov byte [esp + 0x84], 2
mov dword [esp + 0x14], ebx
call fcn.00431b00
mov ecx, dword [ebp + 0x2d0]
lea edx, [esp + 0x50]
push edx
lea eax, [esp + 0x4c]
push eax
lea edx, [esp + 0x40]
or ebx, 2
push edx
mov dword [esp + 0x8c], 3
mov dword [esp + 0x1c], ebx
call fcn.00444880
mov esi, eax
test bl, 2
mov dword [esp + 0x24], esi
mov dword [esp + 0x80], 2
je 0x40d73d
and ebx, 0xfffffffd
lea ecx, [esp + 0x48]
mov dword [esp + 0x10], ebx
call fcn.00431a00
test bl, 1
mov dword [esp + 0x80], 1
je 0x40d75d
and ebx, 0xfffffffe
lea ecx, [esp + 0x50]
mov dword [esp + 0x10], ebx
call fcn.00431a00
push str.ShadowWayPoints
lea ecx, [esp + 0x44]
call fcn.00431bf0
lea eax, [esp + 0x68]
push eax
lea ecx, [esp + 0x44]
call fcn.00431c50
mov eax, dword [ebp + 0x240]
lea ecx, [eax + 0x10]
cmp dword [ecx], 0
je 0x40d7a0
lea edx, [esp + 0x40]
push edx
call fcn.0043f920
test eax, eax
je 0x40d7a0
mov eax, dword [eax]
test eax, eax
je 0x40d7a0
add eax, 0xfffffffc
jmp 0x40d7a5
mov eax, 0x504be4
push eax
lea ecx, [esp + 0x3c]
call fcn.00431a50
mov eax, dword [esp + 0x3c]
cmp word [eax - 4], 0
jne 0x40d7be
xor edi, edi
jmp 0x40d817
push 0x4d6ee6
lea ecx, [esp + 0x64]
call fcn.00431b00
or ebx, 4
push 0x4d6ee6
lea ecx, [esp + 0x5c]
mov byte [esp + 0x84], 4
mov dword [esp + 0x14], ebx
call fcn.00431b00
mov ecx, dword [ebp + 0x2d0]
lea edx, [esp + 0x60]
push edx
lea eax, [esp + 0x5c]
push eax
lea edx, [esp + 0x40]
or ebx, 8
push edx
mov dword [esp + 0x8c], 5
mov dword [esp + 0x1c], ebx
call fcn.00444880
mov edi, eax
test bl, 8
mov dword [esp + 0x2c], edi
mov dword [esp + 0x80], 4
je 0x40d83b
and ebx, 0xfffffff7
lea ecx, [esp + 0x58]
mov dword [esp + 0x10], ebx
call fcn.00431a00
test bl, 4
mov dword [esp + 0x80], 1
je 0x40d85b
and ebx, 0xfffffffb
lea ecx, [esp + 0x60]
mov dword [esp + 0x10], ebx
call fcn.00431a00
test esi, esi
je 0x40dd7a
test edi, edi
je 0x40dd7a
mov ebx, dword [ebp + 0x41c]
add ebp, 0x414
inc ebx
mov dword [esp + 0x1c], ebp
jne 0x40d886
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x40d8db
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jge 0x40d8c4
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
cmp ebx, edx
jne 0x40d8b3
test ecx, ecx
jne 0x40d8a4
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x14], eax
jmp 0x40d8db
cmp eax, ecx
jne 0x40d8d7
mov eax, dword [ebp + 0x14]
add eax, ecx
mov dword [esp + 0x14], eax
jmp 0x40d8db
mov eax, dword [ebp + 0x14]
add eax, ecx
cmp ebx, eax
jle 0x40d8d1
mov eax, ebx
mov dword [esp + 0x14], eax
jmp 0x40d8db
mov edx, dword [ebp + 8]
cmp ebx, edx
mov eax, ebx
jge 0x40da31
mov dword [esp + 0x14], eax
jmp 0x40d8db
mov eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
jle 0x40d927
lea ecx, [eax + eax*8]
shl ecx, 2
push ecx
call fcn.004354d0
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], eax
jle 0x40d927
mov eax, dword [ebp + 8]
test eax, eax
jle 0x40d927
cmp ebx, eax
jge 0x40d90c
mov eax, ebx
mov esi, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
lea ecx, [eax + eax*8]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
cmp ebx, edx
jle 0x40d9cf
mov esi, dword [esp + 0x1c]
mov eax, ebx
sub eax, edx
lea ecx, [eax + eax*8]
shl ecx, 2
lea edx, [edx + edx*8]
lea edi, [esi + edx*4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [esp + 0x30], edi
jge 0x40d9cf
mov ecx, dword [esp + 0x1c]
lea eax, [edi + edi*8]
lea esi, [ecx + eax*4]
mov dword [esp + 0x34], esi
test esi, esi
mov byte [esp + 0x80], 7
je 0x40d9be
xor eax, eax
push 0xc000
mov dword [esi], 0x4d6348
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.0048887d
push 0x4000
mov dword [esi + 0xc], eax
call fcn.0048887d
push 0x4000
mov dword [esi + 0x10], eax
call fcn.0048887d
add esp, 0xc
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
inc edi
cmp edi, ebx
mov byte [esp + 0x80], 1
mov dword [esp + 0x30], edi
jl 0x40d961
cmp ebx, dword [ebp + 8]
jge 0x40d9f8
lea esi, [ebx + ebx*8]
mov edi, ebx
shl esi, 2
lea esp, [esp]
mov edx, dword [ebp + 4]
mov eax, dword [edx + esi]
lea ecx, [edx + esi]
push 0
call dword [eax]
mov eax, dword [ebp + 8]
inc edi
add esi, 0x24
cmp edi, eax
jl 0x40d9e0
mov eax, dword [ebp + 4]
test eax, eax
je 0x40da21
mov esi, dword [esp + 0x14]
cmp esi, dword [ebp + 0xc]
jle 0x40da8f
push eax
call fcn.004352c0
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 0xc], esi
jmp 0x40da8f
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [ebp + 4], edx
mov dword [ebp + 0xc], eax
jmp 0x40da8f
mov esi, dword [ebp + 4]
sub eax, edx
lea ecx, [eax + eax*8]
shl ecx, 2
lea edx, [edx + edx*8]
lea edi, [esi + edx*4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [esp + 0x30], edi
jge 0x40da8f
lea ecx, [ecx]
mov ecx, dword [ebp + 4]
lea eax, [edi + edi*8]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x34], ecx
test ecx, ecx
mov byte [esp + 0x80], 6
je 0x40da7e
call fcn.004029a0
inc edi
cmp edi, ebx
mov byte [esp + 0x80], 1
mov dword [esp + 0x30], edi
jl 0x40da60
mov edx, dword [esp + 0x88]
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [ebp + 4]
lea ecx, [ebx + ebx*8]
push eax
lea ecx, [edx + ecx*4 - 0x24]
mov dword [ebp + 8], ebx
call fcn.00406bf0
mov ebp, dword [esp + 0x20]
mov ebx, dword [ebp + 0x434]
add ebp, 0x42c
inc ebx
mov dword [esp + 0x34], ebp
jne 0x40dacd
xor eax, eax
mov dword [esp + 0x18], eax
jmp 0x40db22
mov ecx, dword [ebp + 0xc]
cmp ecx, ebx
jge 0x40db0b
mov eax, dword [ebp + 8]
lea edx, [eax + 1]
cmp ebx, edx
jne 0x40dafa
test ecx, ecx
jne 0x40daeb
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x18], eax
jmp 0x40db22
cmp eax, ecx
jne 0x40db1e
mov eax, dword [ebp + 0x14]
add eax, ecx
mov dword [esp + 0x18], eax
jmp 0x40db22
mov eax, dword [ebp + 0x14]
add eax, ecx
cmp ebx, eax
jle 0x40db18
mov eax, ebx
mov dword [esp + 0x18], eax
jmp 0x40db22
mov edx, dword [ebp + 8]
cmp ebx, edx
mov eax, ebx
jge 0x40dc81
mov dword [esp + 0x18], eax
jmp 0x40db22
mov eax, dword [esp + 0x18]
cmp eax, dword [ebp + 0xc]
mov dword [esp + 0x1c], 0
jle 0x40db6e
lea ecx, [eax + eax*8]
shl ecx, 2
push ecx
call fcn.004354d0
add esp, 4
test ebx, ebx
mov dword [esp + 0x1c], eax
jle 0x40db6e
mov eax, dword [ebp + 8]
test eax, eax
jle 0x40db6e
cmp ebx, eax
jge 0x40db53
mov eax, ebx
mov esi, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
lea ecx, [eax + eax*8]
shl ecx, 2
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edx, dword [ebp + 8]
cmp ebx, edx
jle 0x40dc1e
mov esi, dword [esp + 0x1c]
mov eax, ebx
sub eax, edx
lea ecx, [eax + eax*8]
shl ecx, 2
lea edx, [edx + edx*8]
lea edi, [esi + edx*4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [ebp + 8]
cmp edi, ebx
mov dword [esp + 0x30], edi
jge 0x40dc1e
jmp 0x40dbb0
mov ecx, dword [esp + 0x1c]
lea eax, [edi + edi*8]
lea esi, [ecx + eax*4]
mov dword [esp + 0x34], esi
test esi, esi
mov byte [esp + 0x80], 9
je 0x40dc0d
xor eax, eax
push 0xc000
mov dword [esi], 0x4d6348
mov dword [esi + 4], eax
mov dword [esi + 8], eax
call fcn.0048887d
push 0x4000
mov dword [esi + 0xc], eax
call fcn.0048887d
push 0x4000
mov dword [esi + 0x10], eax
call fcn.0048887d
add esp, 0xc
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
inc edi
cmp edi, ebx
mov byte [esp + 0x80], 1
mov dword [esp + 0x30], edi
jl 0x40dbb0
cmp ebx, dword [ebp + 8]
jge 0x40dc48
lea esi, [ebx + ebx*8]
mov edi, ebx
shl esi, 2
jmp 0x40dc30
mov edx, dword [ebp + 4]
mov eax, dword [edx + esi]
lea ecx, [edx + esi]
push 0
call dword [eax]
mov eax, dword [ebp + 8]
inc edi
add esi, 0x24
cmp edi, eax
jl 0x40dc30
mov eax, dword [ebp + 4]
test eax, eax
je 0x40dc71
mov esi, dword [esp + 0x18]
cmp esi, dword [ebp + 0xc]
jle 0x40dcdf
push eax
call fcn.004352c0
mov ecx, dword [esp + 0x20]
add esp, 4
mov dword [ebp + 4], ecx
mov dword [ebp + 0xc], esi
jmp 0x40dcdf
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov dword [ebp + 4], edx
mov dword [ebp + 0xc], eax
jmp 0x40dcdf
mov esi, dword [ebp + 4]
sub eax, edx
lea ecx, [eax + eax*8]
shl ecx, 2
lea edx, [edx + edx*8]
lea edi, [esi + edx*4]
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov esi, dword [ebp + 8]
cmp esi, ebx
mov dword [esp + 0x30], esi
jge 0x40dcdf
lea ecx, [ecx]
mov ecx, dword [ebp + 4]
lea eax, [esi + esi*8]
lea ecx, [ecx + eax*4]
mov dword [esp + 0x1c], ecx
test ecx, ecx
mov byte [esp + 0x80], 8
je 0x40dcce
call fcn.004029a0
inc esi
cmp esi, ebx
mov byte [esp + 0x80], 1
mov dword [esp + 0x30], esi
jl 0x40dcb0
mov edx, dword [esp + 0x88]
mov ecx, dword [ebp + 4]
mov esi, dword [esp + 0x2c]
push edx
lea eax, [ebx + ebx*8]
push esi
lea ecx, [ecx + eax*4 - 0x24]
mov dword [ebp + 8], ebx
call fcn.00406bf0
mov edx, dword [esp + 0x24]
mov edi, dword [esp + 0x20]
mov ecx, dword [edi + 0x9c]
push edx
call fcn.00456f70
mov ecx, eax
call fcn.00443490
mov ecx, dword [edi + 0x9c]
push esi
call fcn.00456f70
mov ecx, eax
call fcn.00443490
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 0
call fcn.00431a00
lea ecx, [esp + 0x40]
mov dword [esp + 0x80], 0xffffffff
call fcn.00431a00
mov eax, dword [esp + 0x28]
inc eax
cmp eax, 4
mov dword [esp + 0x28], eax
jl 0x40d630
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
add esp, 0x74
ret 4
lea ecx, [esp + 0x38]
mov byte [esp + 0x80], 0
call fcn.00431a00
lea ecx, [esp + 0x40]
mov dword [esp + 0x80], 0xffffffff
call fcn.00431a00
mov ecx, dword [esp + 0x78]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x74
ret 4