Function at 0x40ae60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [0x430c1c]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x40b2f3
mov ebp, dword [0x430ce8]
test ebp, ebp
je 0x40b2f3
mov eax, dword [0x42573a]
test eax, eax
je 0x40ae93
call fcn.0040aaf0
mov ebp, dword [0x430ce8]
mov eax, dword [0x680980]
test eax, eax
mov eax, dword [0x4225f8]
je 0x40b10e
test eax, eax
je 0x40af3b
mov eax, dword [0x6809f0]
mov ecx, dword [esp + 0x14]
mov edx, dword [0x6809f4]
add eax, ecx
mov dword [0x6809a0], eax
mov eax, dword [esp + 0x18]
add edx, eax
push 0
mov dword [0x6809a4], edx
mov edx, dword [0x6809f8]
add edx, ecx
mov ecx, dword [0x6809fc]
mov dword [0x6809a8], edx
mov edx, dword [0x6809b8]
add ecx, eax
mov eax, dword [0x6809bc]
mov dword [0x6809ac], ecx
mov ecx, dword [0x6809c0]
mov dword [0x6809d0], edx
mov edx, dword [0x6809c4]
mov dword [0x6809d4], eax
mov eax, dword [0x430ce4]
push 0x1000000
push 0x6809d0
mov dword [0x6809d8], ecx
mov dword [0x6809dc], edx
mov ecx, dword [eax]
push ebp
push 0x6809a0
push eax
call dword [ecx + 0x14]
jmp 0x40b2b2
mov eax, dword [0x420cb8]
mov esi, dword [0x44a770]
cmp eax, esi
jg 0x40b2f3
mov ecx, dword [0x420cbc]
mov edi, dword [0x44a774]
cmp ecx, edi
jg 0x40b2f3
mov edx, dword [0x6809b8]
add eax, edx
mov edx, dword [0x430d34]
mov dword [0x6809b0], eax
lea ebx, [edx + eax]
mov edx, dword [0x6809bc]
add ecx, edx
mov edx, dword [0x430d10]
add edx, ecx
cmp eax, esi
mov dword [0x6809b4], ebx
mov dword [0x6809cc], ecx
mov dword [0x6809c8], edx
jl 0x40afa0
mov eax, esi
cmp ecx, edi
mov dword [0x6809e0], eax
jge 0x40afab
mov edi, ecx
cmp ebx, esi
mov dword [0x6809e4], edi
jge 0x40afb7
mov esi, ebx
mov ecx, dword [0x44a774]
mov dword [0x6809e8], esi
cmp edx, ecx
jl 0x40afc9
mov edx, ecx
mov ecx, dword [0x6809f0]
mov dword [0x6809ec], edx
add eax, ecx
push 0
mov dword [0x6809a0], eax
mov eax, dword [0x6809f4]
add edi, eax
add edx, eax
mov eax, dword [0x430ce4]
add esi, ecx
push 0x1000000
push 0x6809e0
mov dword [0x6809a4], edi
mov dword [0x6809a8], esi
mov dword [0x6809ac], edx
mov ecx, dword [eax]
push ebp
push 0x6809a0
push eax
call dword [ecx + 0x14]
cmp eax, 0x88760096
je 0x40b2f3
mov eax, dword [0x420cb0]
mov esi, dword [0x44a770]
cmp eax, esi
jg 0x40b2f3
mov ecx, dword [0x420cb4]
mov ebp, dword [0x44a774]
cmp ecx, ebp
jg 0x40b2f3
mov edx, dword [0x6809b8]
add eax, edx
mov edx, dword [0x430d34]
mov dword [0x6809b0], eax
lea ebx, [edx + eax]
mov edx, dword [0x6809bc]
add ecx, edx
mov edx, dword [0x430d10]
add edx, ecx
cmp eax, esi
mov dword [0x6809b4], ebx
mov dword [0x6809cc], ecx
mov dword [0x6809c8], edx
jl 0x40b086
mov eax, esi
cmp ecx, ebp
mov dword [0x6809e0], eax
mov edi, ecx
jl 0x40b093
mov edi, ebp
cmp ebx, esi
mov dword [0x6809e4], edi
jge 0x40b09f
mov esi, ebx
cmp edx, ebp
mov dword [0x6809e8], esi
jl 0x40b0ab
mov edx, ebp
mov ecx, dword [0x6809f0]
mov dword [0x6809ec], edx
add eax, ecx
push 0
mov dword [0x6809a0], eax
mov eax, dword [0x6809f4]
add edx, eax
add edi, eax
mov eax, dword [0x430ce4]
mov dword [0x6809ac], edx
mov edx, dword [0x430ce8]
add esi, ecx
push 0x1000000
push 0x6809e0
mov dword [0x6809a4], edi
mov dword [0x6809a8], esi
mov ecx, dword [eax]
push edx
push 0x6809a0
push eax
call dword [ecx + 0x14]
cmp eax, 0x88760096
je 0x40b2f3
jmp 0x40b2b2
test eax, eax
je 0x40b134
mov edx, dword [esp + 0x18]
mov eax, dword [0x430ce4]
push 0
push 0x6809b8
mov ecx, dword [eax]
push ebp
push edx
mov edx, dword [esp + 0x24]
push edx
push eax
call dword [ecx + 0x1c]
jmp 0x40b2b2
mov eax, dword [0x420cb8]
mov edx, dword [0x44a770]
cmp eax, edx
jg 0x40b2f3
mov ecx, dword [0x420cbc]
mov ebx, dword [0x44a774]
cmp ecx, ebx
jg 0x40b2f3
mov esi, dword [0x6809b8]
mov edi, dword [0x6809bc]
add eax, esi
mov esi, dword [0x430d34]
add ecx, edi
mov edi, dword [0x430d10]
add esi, eax
add edi, ecx
cmp eax, edx
mov dword [0x6809b0], eax
mov dword [0x6809b4], esi
mov dword [0x6809cc], ecx
mov dword [0x6809c8], edi
mov dword [0x6809e0], eax
jl 0x40b1a1
mov dword [0x6809e0], edx
cmp ecx, ebx
mov dword [0x6809e4], ecx
jl 0x40b1b1
mov dword [0x6809e4], ebx
cmp esi, edx
mov dword [0x6809e8], esi
jl 0x40b1c1
mov dword [0x6809e8], edx
cmp edi, ebx
mov dword [0x6809ec], edi
jl 0x40b1d1
mov dword [0x6809ec], ebx
mov edx, dword [0x430ce4]
push 0
push 0x6809e0
push ebp
mov esi, dword [edx]
push ecx
push eax
push edx
call dword [esi + 0x1c]
cmp eax, 0x88760096
je 0x40b2f3
mov eax, dword [0x420cb0]
mov edx, dword [0x44a770]
cmp eax, edx
jg 0x40b2f3
mov ecx, dword [0x420cb4]
mov ebx, dword [0x44a774]
cmp ecx, ebx
jg 0x40b2f3
mov esi, dword [0x6809b8]
mov edi, dword [0x6809bc]
add eax, esi
mov esi, dword [0x430d34]
add ecx, edi
mov edi, dword [0x430d10]
add esi, eax
add edi, ecx
cmp eax, edx
mov dword [0x6809b0], eax
mov dword [0x6809b4], esi
mov dword [0x6809cc], ecx
mov dword [0x6809c8], edi
mov dword [0x6809e0], eax
jl 0x40b25f
mov dword [0x6809e0], edx
cmp ecx, ebx
mov dword [0x6809e4], ecx
jl 0x40b26f
mov dword [0x6809e4], ebx
cmp esi, edx
mov dword [0x6809e8], esi
jl 0x40b27f
mov dword [0x6809e8], edx
cmp edi, ebx
mov dword [0x6809ec], edi
jl 0x40b28f
mov dword [0x6809ec], ebx
mov edi, dword [0x430ce8]
mov edx, dword [0x430ce4]
push 0
push 0x6809e0
mov esi, dword [edx]
push edi
push ecx
push eax
push edx
call dword [esi + 0x1c]
cmp eax, 0x88760096
je 0x40b2f3
test eax, eax
je 0x40b2f3
cmp eax, 0x887601c2
jne 0x40b2c6
call fcn.004021a0
test eax, eax
jne 0x40b2f3
cmp eax, 0x8876021c
je 0x40ae8d
call fcn.004021a0
test eax, eax
je 0x40ae8d
push eax
push str.DirectDraw_ErrorCode_X
call fcn.00401430
add esp, 8
push 1
call fcn.00415b2c
pop edi
pop esi
pop ebp
pop ebx
ret