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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xd4
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x34], ebx
mov ecx, dword [ebx + 0x1c]
mov edi, dword [ebx]
call fcn.00407e90
test eax, eax
jne 0x407a4b
xor esi, esi
inc eax
mov dword [esp + 0xbc], eax
cmp dword [edi + 0x24], esi
jne 0x407a49
mov ebx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
mov ecx, edx
push ebx
push edx
push esi
add ecx, eax
mov dword [esp + 0x9c], edx
push esi
mov eax, ebx
mov dword [edi + 0x30], ecx
push esi
adc eax, esi
mov dword [esp + 0xa0], ebx
push esi
lea edx, [esp + 0x38]
mov dword [edi + 0x34], eax
mov ecx, edi
call fcn.00406d2c
mov ecx, eax
mov dword [esp + 0x44], esi
mov eax, dword [edi + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0xc], ecx
mov ebx, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x70], esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x94], esi
mov dword [esp + 0x38], esi
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
test ecx, ecx
jne 0x407351
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x40733f
mov ebx, dword [esp + 0x34]
xor eax, eax
mov esi, dword [edi + 0x64]
sub esi, dword [edi + 0x60]
xor edx, edx
movlpd qword [esp + 0x68], xmm0
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x7c], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x40], eax
mov dword [esp + 0x24], edx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x3c], esi
test eax, eax
jne 0x406fa6
mov eax, dword [edi]
mov ecx, dword [edi + 0x14]
add eax, 0x10
push eax
push ecx
call dword [ecx]
mov dword [esp + 0x40], eax
test eax, eax
je 0x40719b
and dword [eax], 0
mov edx, dword [esp + 0x14]
test edx, edx
je 0x406fa1
mov dword [edx], eax
jmp 0x406fa4
mov dword [ebx + 8], eax
xor edx, edx
lea ecx, [eax + 0x10]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x28], ecx
test esi, esi
je 0x406fd9
mov eax, dword [edi + 0x60]
mov ebx, esi
add eax, 0x10
mov dword [esp + 0x10], esi
add eax, dword [edi + 0x5c]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1c], edx
mov dword [esp + 0x28], eax
jmp 0x4070bb
mov eax, dword [edi]
mov edx, ecx
mov ecx, dword [edi + 0xc]
mov dword [esp + 0x80], eax
lea eax, [esp + 0x80]
push eax
call fcn.00402ae6
mov ebx, dword [esp + 0x80]
add dword [esp + 0x10], ebx
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x38]
push 0
pop esi
adc edx, esi
mov dword [esp + 0xc], eax
cmp dword [esp + 0x14], esi
mov dword [esp + 0x1c], edx
cmove ecx, ebx
add dword [edi + 0x68], ebx
mov dword [esp + 0x38], ecx
adc dword [edi + 0x6c], esi
xor ecx, ecx
cmp ebx, dword [edi]
setne cl
mov dword [esp + 0x18], ecx
je 0x40703a
xor ecx, ecx
inc ecx
mov dword [edi + 0x70], ecx
jmp 0x40703d
xor ecx, ecx
inc ecx
test eax, eax
je 0x407055
mov dword [edi + 0x48], eax
mov esi, ecx
xor eax, eax
mov dword [edi + 0x70], ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0xc], eax
jmp 0x407059
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov eax, edx
sub ecx, dword [esp + 0x7c]
sbb eax, dword [esp + 0x78]
mov dword [esp + 0x6c], eax
jne 0x407074
xor eax, eax
inc eax
cmp ecx, eax
jb 0x4070bb
push dword [esp + 0x8c]
xor eax, eax
lea edx, [esp + 0x24]
push dword [esp + 0x94]
mov ecx, edi
push eax
push eax
push eax
push eax
call fcn.00406d2c
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x407306
cmp dword [esp + 0x20], eax
jne 0x407302
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
mov dword [esp + 0x7c], eax
mov dword [esp + 0x78], edx
xor eax, eax
mov dword [esp + 0xcc], esi
cmp dword [esp + 0x14], eax
lea ecx, [esp + 0xc0]
push ecx
mov ecx, dword [esp + 0x38]
sete al
mov dword [esp + 0xc4], eax
xor esi, esi
mov eax, dword [esp + 0x2c]
inc esi
mov dword [esp + 0xc8], eax
push dword [ecx + 4]
mov eax, dword [edi + 0x18]
push dword [edi + 0x1c]
mov dword [esp + 0xd4], ebx
mov dword [esp + 0xe0], esi
call dword [eax]
mov edx, dword [esp + 0xd0]
mov eax, dword [esp + 0xd4]
mov dword [esp + 0x70], esi
mov dword [esp + 0x24], eax
cmp edx, esi
je 0x4072ce
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x407155
push dword [esp + 0xc8]
push dword [esp + 0x2c]
push dword [esp + 0x7c]
call fcn.0042401c
mov ecx, dword [esp + 0xd4]
add esp, 0xc
add dword [edi + 0x60], ecx
mov edx, dword [esp + 0xd0]
jmp 0x40715c
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
test edx, edx
jne 0x4071f1
test eax, eax
jne 0x407200
cmp ecx, ebx
jne 0x4071bd
mov eax, dword [esp + 0x40]
mov ebx, dword [esp + 0x34]
mov dword [esp + 0x14], eax
mov eax, dword [eax]
mov dword [esp + 0x40], eax
test esi, esi
je 0x406f76
mov esi, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x406f72
xor esi, esi
inc esi
mov eax, esi
mov dword [esp + 0x64], esi
mov dword [esp + 0x18], eax
xor edx, edx
mov dword [esp + 0x30], edx
mov ebx, edx
mov dword [esp + 0x2c], edx
mov ecx, dword [esp + 0xc]
jmp 0x407316
xor edx, edx
push 0xb
pop ecx
mov dword [esp + 0xc], ecx
mov ebx, edx
mov dword [esp + 0x30], edx
mov dword [esp + 0x2c], edx
mov dword [esp + 0x14], edx
xor eax, eax
mov dword [esp + 0x80], eax
mov dword [esp + 0x7c], eax
lea esi, [eax + 1]
mov eax, dword [esp + 0x44]
mov dword [esp + 0x18], esi
jmp 0x40744b
cmp edx, 3
cmove eax, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 1
cmp ecx, ebx
jne 0x407220
xor esi, esi
mov dword [edi + 0x60], esi
mov dword [edi + 0x64], esi
mov dword [esp + 0x30], esi
mov ebx, esi
mov dword [esp + 0x2c], esi
jmp 0x4071b4
cmp edx, 3
jne 0x40725a
mov edx, dword [esp + 0x28]
sub ebx, ecx
add edx, ecx
mov dword [esp + 0x30], edx
xor edx, edx
test esi, esi
setne dl
sub dword [esp + 0x10], ebx
mov dword [esp + 0x2c], edx
sbb dword [esp + 0x1c], 0
mov edx, dword [esp + 0x38]
cmp dword [esp + 0x14], 0
cmove edx, ecx
mov dword [esp + 0x38], edx
jmp 0x4071b4
test esi, esi
je 0x40726a
xor esi, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], esi
jmp 0x4072b3
mov ecx, edi
call fcn.00406e43
mov ecx, eax
test ecx, ecx
jne 0x407283
inc ecx
mov eax, ecx
mov dword [esp + 0x64], ecx
jmp 0x4071a4
mov eax, dword [esp + 0xc8]
sub ebx, eax
sub dword [esp + 0x10], ebx
push 0
pop esi
sbb dword [esp + 0x1c], esi
add eax, dword [esp + 0x28]
push ebx
push eax
push ecx
mov dword [edi + 0x64], ebx
mov dword [edi + 0x60], esi
call fcn.0042401c
mov ecx, dword [esp + 0xd4]
add esp, 0xc
mov eax, dword [esp + 0x38]
cmp dword [esp + 0x14], 0
cmove eax, ecx
mov dword [esp + 0x38], eax
mov eax, esi
mov dword [esp + 0x18], eax
jmp 0x407214
cmp dword [esp + 0x3c], 0
mov eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x94], esi
je 0x4072f5
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x7c]
call fcn.0042401c
add esp, 0xc
mov eax, esi
xor edx, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x4071aa
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x30], eax
mov ebx, eax
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x18]
test ecx, ecx
jne 0x407361
push dword [esp + 0x8c]
lea edx, [esp + 0x24]
mov ecx, edi
push dword [esp + 0x94]
call fcn.00406cd8
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
jmp 0x407361
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
jmp 0x407365
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
mov esi, dword [esp + 0x20]
xor edx, edx
mov dword [esp + 0x14], edx
test ecx, ecx
jne 0x4071d4
cmp dword [esp + 0x44], edx
je 0x4073ac
test esi, esi
jne 0x4071d4
mov esi, dword [esp + 0x34]
mov eax, dword [edi + 0x18]
push dword [esi + 4]
push dword [edi + 0x1c]
call dword [eax + 4]
mov edx, eax
mov dword [esp + 0x14], edx
test edx, edx
je 0x4073bd
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x44], eax
inc eax
mov dword [esp + 0x18], eax
jmp 0x4073b0
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x20], 0
jne 0x4071d4
jmp 0x4073c1
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
test eax, eax
jne 0x407443
mov ecx, dword [edi + 0x58]
mov eax, ecx
cmp ecx, dword [edi + 0x54]
jae 0x40741a
cmp dword [esp + 0x24], edx
je 0x40741a
lea eax, [ecx + 5]
imul ecx, eax, 0x28
add ecx, edi
call fcn.00406c22
mov ecx, eax
mov eax, dword [edi + 0x58]
test ecx, ecx
jne 0x4073fe
inc eax
mov dword [edi + 0x58], eax
jmp 0x40741a
xor edx, edx
inc edx
cmp eax, edx
jne 0x407417
mov esi, edx
mov dword [esp + 0x7c], ecx
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x44], eax
jmp 0x407447
mov dword [edi + 0x54], eax
mov ecx, dword [esi + 4]
inc ecx
cmp ecx, eax
sbb eax, eax
and eax, ecx
add eax, 5
imul esi, eax, 0x28
add esi, edi
mov dword [esp + 0x80], esi
lea ecx, [esi + 0x1c]
call fcn.00407f1a
test eax, eax
jne 0x407a4b
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0xc]
mov esi, dword [esp + 0x14]
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x98], xmm0
test ecx, ecx
jne 0x4077ce
test eax, eax
je 0x4077ce
test esi, esi
jne 0x4077ce
mov edx, dword [esp + 0x34]
mov esi, dword [esp + 0x2c]
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x48], xmm0
mov eax, dword [edx + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
add dword [esp + 0x58], edx
adc dword [esp + 0x5c], 0
xor edx, edx
inc edx
mov dword [esp + 0x88], edx
mov edx, dword [esp + 0x34]
cmp dword [esp + 0x58], ecx
jne 0x407508
cmp dword [esp + 0x5c], eax
jne 0x407508
mov dword [esp + 0x84], 1
jmp 0x407510
and dword [esp + 0x84], 0
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x38]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x94]
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0xb0], eax
mov eax, dword [esp + 0x70]
mov dword [esp + 0xac], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0xb4], eax
lea eax, [esp + 0x88]
push eax
lea eax, [esp + 0x9c]
mov dword [esp + 0x78], ecx
mov ecx, dword [edi + 0x18]
push eax
lea eax, [esp + 0x60]
mov dword [esp + 0xb0], esi
push eax
push dword [esp + 0x90]
mov eax, dword [esp + 0x34]
push dword [esp + 0x24]
add eax, 0x10
mov dword [esp + 0xcc], ebx
push eax
push dword [edx + 4]
push dword [edi + 0x1c]
call dword [ecx + 8]
mov esi, eax
mov dword [esp + 0x14], esi
test esi, esi
jne 0x4077b7
cmp dword [esp + 0x88], eax
jne 0x4077ee
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x10]
jne 0x4075c1
cmp eax, dword [esp + 0x1c]
je 0x4077ee
sub ecx, dword [esp + 0x3c]
mov edx, dword [esp + 0x9c]
sbb eax, dword [esp + 0x40]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x98]
sub eax, dword [esp + 0x54]
sbb edx, dword [esp + 0x28]
cmp dword [esp + 0x84], 0
ja 0x407600
jb 0x4075f7
cmp ecx, 1
jae 0x407600
test edx, edx
jne 0x407600
cmp eax, 1
jb 0x407659
push dword [esp + 0x8c]
push dword [esp + 0x94]
push edx
push eax
push dword [esp + 0x94]
lea edx, [esp + 0x34]
push ecx
mov ecx, edi
call fcn.00406d2c
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x4077ee
cmp dword [esp + 0x20], eax
jne 0x4077ee
mov esi, dword [esp + 0x98]
mov eax, dword [esp + 0x58]
mov ebx, eax
mov edx, dword [esp + 0x5c]
mov dword [esp + 0x54], esi
mov esi, dword [esp + 0x9c]
jmp 0x40766d
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x58]
mov edx, dword [esp + 0x40]
mov ebx, dword [esp + 0x3c]
mov esi, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x40], edx
mov edx, dword [edi]
mov dword [esp + 0x28], esi
mov ecx, dword [ecx]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x74]
sub ecx, eax
mov dword [esp + 0x14], edx
mov eax, dword [esp + 0x78]
sbb eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x78]
mov dword [esp + 0x88], ecx
mov ecx, dword [esp + 0xb4]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x64], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x94], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x38], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x10], ecx
xor ecx, ecx
cmp ecx, eax
mov dword [esp + 0x3c], ebx
mov ebx, dword [esp + 0xb8]
mov eax, edx
mov ecx, dword [esp + 0xc]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x1c], edx
jb 0x4074d0
ja 0x407725
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x14], eax
mov eax, edx
jbe 0x4074d0
mov eax, dword [esp + 0x88]
mov esi, dword [esp + 0xa8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x3c]
mov ebx, dword [esp + 0xb8]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x40]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x54]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x28]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xb4]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0xac]
mov dword [esp + 0x70], eax
mov eax, dword [esp + 0xb0]
mov dword [esp + 0x64], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x94], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x2c], esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], eax
jmp 0x4074d4
push dword [esp + 0x8c]
mov ecx, edi
push dword [esp + 0x94]
call fcn.00406df3
jmp 0x4077ee
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x20]
call fcn.00407e90
test eax, eax
jne 0x407a4b
mov eax, dword [esp + 0x70]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x24], eax
inc ecx
mov dword [esp + 0x48], edx
mov dword [esp + 0x68], ecx
cmp dword [edi + 0x24], edx
jne 0x407a49
cmp dword [edi + 0x50], edx
je 0x40782d
mov eax, ecx
mov dword [esp + 0x20], eax
jmp 0x40788c
test esi, esi
je 0x407846
mov dword [edi + 0x50], ecx
cmp esi, 2
mov ecx, dword [esp + 0x64]
push 1
mov dword [edi + 0x4c], esi
pop esi
cmove ecx, esi
jmp 0x40784d
mov ecx, dword [esp + 0x64]
xor esi, esi
inc esi
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x40785f
mov dword [edi + 0x50], esi
mov dword [edi + 0x40], eax
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x407872
xor ecx, ecx
mov dword [esp + 0x24], edx
inc ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x38], ecx
jmp 0x407875
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x94], edx
je 0x40788c
mov dword [edi + 0x50], ecx
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x24], edx
cmp dword [esp + 0x44], edx
je 0x4078e5
test eax, eax
je 0x4078a8
xorps xmm0, xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x98], xmm0
mov esi, dword [esp + 0x58]
sub esi, dword [esp + 0x3c]
mov edx, dword [esp + 0x5c]
sbb edx, dword [esp + 0x40]
mov ecx, dword [esp + 0x98]
sub ecx, dword [esp + 0x54]
mov eax, dword [esp + 0x9c]
sbb eax, dword [esp + 0x28]
push eax
push ecx
push edx
push esi
lea ecx, [edi + 0x98]
call fcn.00406b73
mov dword [esp + 0xc], eax
xor edx, edx
jmp 0x4078e9
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x18]
xor ecx, ecx
test esi, esi
sete cl
cmp dword [esp + 0x70], 0
mov dword [esp + 0xa4], ecx
je 0x407981
test eax, eax
jne 0x407917
cmp dword [esp + 0x24], eax
je 0x407917
cmp dword [esp + 0x20], eax
jne 0x407917
lea ecx, [eax + 1]
jmp 0x407919
mov ecx, edx
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x68]
push edx
lea edx, [esp + 0xa8]
push edx
push dword [esp + 0x34]
push ebx
push dword [esp + 0x40]
mov ebx, dword [esp + 0x48]
push ecx
push dword [ebx + 4]
push dword [edi + 0x1c]
call dword [eax + 0xc]
mov dword [esp + 0xc], eax
test eax, eax
je 0x407954
xor eax, eax
inc eax
mov dword [esp + 0x48], eax
mov dword [edi + 0x50], eax
jmp 0x407963
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jne 0x407989
test esi, esi
jne 0x407989
push dword [esp + 0x8c]
mov ecx, edi
push dword [esp + 0x94]
call fcn.00406df3
mov ecx, dword [esp + 0xa4]
jmp 0x407985
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x68], 0
je 0x4079f6
cmp dword [esp + 0x44], 0
je 0x4079bc
test eax, eax
jne 0x4079bc
cmp dword [edi + 0x50], eax
jne 0x4079be
cmp dword [esp + 0x14], eax
jne 0x4079be
cmp dword [esp + 0x20], eax
jne 0x4079be
cmp dword [edi + 0x84], eax
jne 0x4079cf
cmp dword [esp + 0x48], eax
je 0x4079f6
jmp 0x4079be
xor eax, eax
cmp dword [edi + 0x84], eax
jne 0x4079cf
mov eax, dword [ebx + 4]
mov dword [edi + 0x80], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
or eax, edx
jne 0x4079df
test esi, esi
jne 0x407a06
mov eax, dword [esp + 0x38]
mov dword [ebx + 0xc], eax
mov eax, dword [esp + 0x10]
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
inc dword [edi + 0x84]
test esi, esi
jne 0x407a06
mov ecx, dword [esp + 0x80]
add ecx, 0x20
jmp 0x407a2c
test ecx, ecx
je 0x407a1b
lea ecx, [edi + 0xe8]
call fcn.00407f1a
test eax, eax
jne 0x407a4b
jmp 0x407a26
xor eax, eax
cmp dword [ebx + 4], eax
je 0x407a49
inc eax
mov dword [edi + 0x24], eax
lea ecx, [edi + 0xe4]
call fcn.00407f1a
test eax, eax
jne 0x407a4b
mov ecx, dword [ebx + 0x1c]
call fcn.00407e90
test eax, eax
jne 0x407a4b
xor esi, esi
inc eax
jmp 0x406e98
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret