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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
push ebx
mov ebx, ecx
push esi
push edi
mov dword [esp + 0x44], ebx
mov ecx, dword [ebx + 0x1c]
mov esi, dword [ebx]
call fcn.00408800
test eax, eax
jne 0x407cfa
nop word [eax + eax]
cmp dword [esi + 0x24], 0
jne 0x407cf8
mov edi, dword [esi + 0x34]
mov eax, edi
mov edx, dword [esi + 0x30]
mov ecx, edx
push edi
push edx
push 0
add ecx, 1
mov dword [esp + 0x98], edx
push 0
push 0
adc eax, 0
mov dword [esi + 0x30], ecx
push 0
lea edx, [esp + 0x4c]
mov dword [esp + 0xac], edi
mov ecx, esi
mov dword [esi + 0x34], eax
call fcn.00406ed0
mov edx, dword [esi + 0x70]
xor edi, edi
mov dword [esp + 0x18], edx
xorps xmm0, xmm0
mov edx, dword [esp + 0x34]
mov dword [esp + 0x10], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x70], 0
mov dword [esp + 0x68], 0
mov dword [esp + 0x74], 0
mov dword [esp + 0x40], 0
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
test eax, eax
jne 0x40782b
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x24], edi
test edx, edx
jne 0x40782b
movlpd qword [esp + 0x78], xmm0
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x38], edi
mov edi, dword [ebx + 8]
mov ebx, dword [esi + 0x64]
sub ebx, dword [esi + 0x60]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x24], edx
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x407185
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
add eax, 0x10
push eax
mov eax, dword [ecx]
push ecx
call eax
mov edi, eax
test edi, edi
je 0x4076b5
mov eax, dword [esp + 0x38]
mov dword [edi], 0
test eax, eax
je 0x40717e
mov dword [eax], edi
jmp 0x407185
mov eax, dword [esp + 0x44]
mov dword [eax + 8], edi
lea ecx, [edi + 0x10]
mov dword [esp + 0x90], ecx
mov dword [esp + 0x28], ecx
test ebx, ebx
je 0x4071bd
mov eax, dword [esi + 0x60]
add eax, 0x10
mov dword [esp + 0x1c], ebx
add eax, dword [esi + 0x5c]
mov dword [esp + 0x14], 0
mov dword [esp + 0x40], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x28], eax
jmp 0x407296
mov eax, dword [esi]
mov edx, ecx
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x50], eax
lea eax, [esp + 0x50]
push eax
call fcn.00401cc0
mov ecx, dword [esp + 0x50]
add dword [esp + 0x1c], ecx
mov dword [esp + 0x10], eax
adc dword [esp + 0x14], 0
cmp dword [esp + 0x38], 0
mov eax, dword [esp + 0x40]
cmove eax, ecx
mov dword [esp + 0x20], ecx
add dword [esi + 0x68], ecx
mov dword [esp + 0x40], eax
adc dword [esi + 0x6c], 0
xor edx, edx
cmp ecx, dword [esi]
setne dl
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x10]
je 0x407216
mov dword [esi + 0x70], 1
test edx, edx
je 0x407234
mov dword [esi + 0x48], edx
mov dword [esi + 0x70], 1
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], 0
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x3c]
mov eax, dword [esp + 0x14]
sbb eax, dword [esp + 0x4c]
mov dword [esp + 0x64], eax
jne 0x40724f
cmp ecx, 1
jb 0x407296
push dword [esp + 0x94]
lea edx, [esp + 0x38]
mov ecx, esi
push dword [esp + 0x90]
push 0
push 0
push 0
push 0
call fcn.00406ed0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x407754
cmp dword [esp + 0x34], eax
jne 0x407750
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x4c], eax
xor eax, eax
mov dword [esp + 0xcc], 1
cmp dword [esp + 0x38], eax
lea ecx, [esp + 0xb8]
push ecx
mov ecx, dword [esp + 0x48]
sete al
mov dword [esp + 0xbc], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0xc0], eax
mov eax, dword [esp + 0x24]
push dword [ecx + 4]
mov dword [esp + 0xc8], eax
mov eax, dword [esp + 0x20]
push dword [esi + 0x1c]
mov dword [esp + 0xd0], eax
mov eax, dword [esi + 0x18]
mov eax, dword [eax]
call eax
mov ecx, dword [esp + 0xc8]
mov edx, dword [esp + 0xcc]
mov dword [esp + 0x70], 1
mov dword [esp + 0x24], edx
cmp ecx, 1
je 0x407716
test ebx, ebx
je 0x40733c
push dword [esp + 0xc0]
lea eax, [edi + 0x10]
push dword [esp + 0x2c]
push eax
call fcn.00443f10
mov eax, dword [esp + 0xcc]
add esp, 0xc
add dword [esi + 0x60], eax
mov ecx, dword [esp + 0xc8]
jmp 0x407343
mov eax, dword [esp + 0xc0]
test ecx, ecx
jne 0x407631
cmp dword [esp + 0x18], ecx
jne 0x407644
cmp eax, dword [esp + 0x20]
jne 0x407376
mov dword [esp + 0x38], edi
mov edi, dword [edi]
test ebx, ebx
je 0x407150
xor ebx, ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
jmp 0x407150
xor edi, edi
mov dword [esp + 0x10], 0xb
mov dword [esp + 0x30], 0
mov dword [esp + 0x20], edi
mov dword [esp + 0x2c], edi
xor ebx, ebx
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], 0
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], 1
cmp dword [esp + 0x10], 0
xorps xmm0, xmm0
mov ecx, dword [esp + 0x40]
mov eax, ebx
mov edx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x3c], ecx
mov ecx, dword [esp + 0x74]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x90], ecx
mov ecx, dword [esp + 0x70]
mov dword [esp + 0xb0], ecx
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xac], ecx
mov ecx, dword [esp + 0x2c]
mov dword [esp + 0xa8], ecx
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x24], edi
mov edi, dword [esp + 0x6c]
mov dword [esp + 0xa4], ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0x54], edi
mov edi, dword [esp + 0x18]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x5c], edi
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x98], xmm0
jne 0x407a66
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x60], xmm0
test ecx, ecx
je 0x407a66
mov edi, dword [esp + 0x5c]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x58]
mov dword [esp + 0x28], edi
mov edi, dword [esp + 0x54]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0xa4]
mov dword [esp + 0x30], edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x20], edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edi
mov edi, dword [esp + 0xb0]
mov dword [esp + 0x70], edi
mov edi, dword [esp + 0x90]
mov dword [esp + 0x68], edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0x74], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x48], ecx
mov dword [esp + 0x40], edi
mov dword [esp + 0x1c], edx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x38], eax
movlpd qword [esp + 0x78], xmm0
movlpd qword [esp + 0x60], xmm0
test eax, eax
jne 0x407a66
mov edi, dword [esp + 0x44]
mov eax, 1
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0xa4]
mov edi, dword [edi + 8]
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x2c], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0xb0]
mov dword [esp + 0x70], ecx
mov ecx, dword [esp + 0x90]
mov dword [esp + 0x68], ecx
mov ecx, dword [esp + 0x4c]
mov dword [esp + 0x74], ecx
mov dword [esp + 0x50], edi
mov edi, dword [esp + 0x5c]
movlpd qword [esp + 0x78], xmm0
mov ecx, dword [esp + 0x7c]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x18], edi
mov edi, dword [esp + 0x54]
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x54], ecx
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x6c], edi
mov edi, dword [esp + 0x3c]
mov dword [esp + 0x24], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x40], edi
mov edi, edx
mov edx, dword [esp + 0x80]
mov dword [esp + 0x5c], ecx
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x1c], edi
mov dword [esp + 0x14], ebx
nop dword [eax]
test eax, eax
je 0x4078da
mov edi, dword [esp + 0x40]
jmp 0x407900
mov edx, dword [esp + 0x18]
cmp ecx, 3
mov edi, 1
cmove edx, edi
mov dword [esp + 0x18], edx
mov edi, dword [esp + 0x20]
mov dword [esp + 0x48], 1
cmp eax, edi
je 0x407742
cmp ecx, 3
jne 0x407696
mov ecx, dword [esp + 0x28]
xor edx, edx
add ecx, eax
sub edi, eax
test ebx, ebx
mov dword [esp + 0x30], ecx
mov ecx, dword [esp + 0x40]
setne dl
sub dword [esp + 0x1c], edi
mov dword [esp + 0x2c], edx
sbb dword [esp + 0x14], 0
cmp dword [esp + 0x38], 0
cmove ecx, eax
mov eax, dword [esp + 0x10]
mov dword [esp + 0x40], ecx
jmp 0x40775e
test ebx, ebx
je 0x4076a8
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], 0
jmp 0x4076fc
mov ecx, esi
call fcn.00407000
mov edx, eax
test edx, edx
jne 0x4076ca
mov dword [esp + 0x18], 1
mov dword [esp + 0x68], 1
jmp 0x407750
mov eax, dword [esp + 0xc0]
sub edi, eax
sub dword [esp + 0x1c], edi
push edi
sbb dword [esp + 0x18], 0
add eax, dword [esp + 0x2c]
push eax
push edx
mov dword [esi + 0x64], edi
mov dword [esi + 0x60], 0
call fcn.00443f10
mov eax, dword [esp + 0xcc]
add esp, 0xc
mov ecx, dword [esp + 0x40]
cmp dword [esp + 0x38], 0
mov dword [esp + 0x18], 0
cmove ecx, eax
mov dword [esp + 0x40], ecx
jmp 0x407750
mov dword [esp + 0x18], 1
mov dword [esp + 0x74], 1
test ebx, ebx
je 0x407742
push dword [esp + 0x20]
mov eax, dword [esp + 0x94]
push dword [esp + 0x2c]
push eax
call fcn.00443f10
add esp, 0xc
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov eax, dword [esp + 0x10]
xor edi, edi
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
mov dword [esp + 0x20], edi
test eax, eax
jne 0x407783
push dword [esp + 0x94]
lea edx, [esp + 0x38]
mov ecx, esi
push dword [esp + 0x90]
call fcn.00406e70
mov dword [esp + 0x10], eax
mov edx, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0x38], ebx
test eax, eax
jne 0x407390
cmp dword [esp + 0x48], ebx
je 0x407840
test edx, edx
jne 0x407390
mov ecx, dword [esp + 0x44]
mov eax, dword [esi + 0x18]
push dword [ecx + 4]
mov eax, dword [eax + 4]
push dword [esi + 0x1c]
call eax
mov ebx, eax
mov dword [esp + 0x38], ebx
test ebx, ebx
je 0x407848
xorps xmm0, xmm0
mov dword [esp + 0x48], 0
movlpd qword [esp + 0x78], xmm0
xor edi, edi
mov ebx, dword [esp + 0x7c]
mov dword [esp + 0x58], ebx
mov ebx, dword [esp + 0x78]
movlpd qword [esp + 0x60], xmm0
mov dword [esp + 0x54], ebx
mov ebx, dword [esp + 0x64]
mov dword [esp + 0x24], ebx
mov ebx, dword [esp + 0x60]
mov dword [esp + 0x18], 1
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], edi
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x98], xmm0
mov dword [esp + 0x5c], ebx
jmp 0x407a86
mov ecx, dword [esp + 0x64]
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x60]
mov dword [esp + 0x1c], ecx
jmp 0x407787
test edx, edx
jne 0x407390
cmp dword [esp + 0x18], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x6c], 0
jne 0x4073ae
mov ecx, dword [esi + 0x58]
mov eax, ecx
cmp ecx, dword [esi + 0x54]
jae 0x4078aa
cmp dword [esp + 0x24], 0
je 0x4078aa
add ecx, 5
lea eax, [ecx + ecx*4]
lea ecx, [esi + eax*8]
call fcn.00406d90
mov ecx, eax
mov eax, dword [esi + 0x58]
test ecx, ecx
jne 0x407891
inc eax
mov dword [esi + 0x58], eax
jmp 0x4078aa
cmp eax, 1
jne 0x4078a7
mov dword [esp + 0x48], 0
mov dword [esp + 0x6c], ecx
jmp 0x4073a6
mov dword [esi + 0x54], eax
mov ecx, dword [esp + 0x44]
mov ecx, dword [ecx + 4]
inc ecx
cmp ecx, eax
sbb eax, eax
and eax, ecx
add eax, 5
lea eax, [eax + eax*4]
lea eax, [esi + eax*8]
lea ecx, [eax + 0x1c]
mov dword [esp + 0x28], eax
call fcn.004088a0
test eax, eax
jne 0x407cfa
jmp 0x4073ae
mov eax, dword [esp + 0x14]
mov ebx, edi
mov edi, dword [esi]
sub ebx, edx
mov dword [esp + 0x3c], 0
sbb eax, ecx
cmp dword [esp + 0x3c], eax
jb 0x4078fc
ja 0x4078fa
cmp edi, ebx
jbe 0x4078fc
mov edi, ebx
mov ebx, dword [esp + 0x14]
add edx, edi
mov dword [esp + 0x3c], 1
mov dword [esp + 0x80], edx
adc ecx, 0
mov dword [esp + 0x84], ecx
cmp edx, dword [esp + 0x1c]
jne 0x40792c
cmp ecx, ebx
jne 0x40792c
mov eax, 1
jmp 0x40792e
xor eax, eax
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x3c]
push edx
lea edx, [esp + 0x9c]
push edx
lea edx, [esp + 0x88]
push edx
push eax
mov eax, dword [esp + 0x60]
push edi
add eax, 0x10
push eax
mov eax, dword [esp + 0x5c]
push dword [eax + 4]
mov eax, dword [ecx + 8]
push dword [esi + 0x1c]
call eax
mov ebx, eax
mov dword [esp + 0x38], ebx
test ebx, ebx
jne 0x407a4f
cmp dword [esp + 0x3c], eax
jne 0x407a86
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
cmp edx, dword [esp + 0x1c]
jne 0x407995
cmp ecx, dword [esp + 0x14]
je 0x407a86
mov edi, dword [esp + 0x98]
mov eax, edx
sub eax, dword [esp + 0x54]
mov ebx, ecx
sbb ebx, dword [esp + 0x58]
sub edi, dword [esp + 0x5c]
mov dword [esp + 0x4c], ebx
mov ebx, dword [esp + 0x9c]
sbb ebx, dword [esp + 0x24]
cmp dword [esp + 0x4c], 0
ja 0x4079d2
jb 0x4079c9
cmp eax, 1
jae 0x4079d2
test ebx, ebx
jne 0x4079d2
cmp edi, 1
jb 0x407a36
push dword [esp + 0x94]
lea edx, [esp + 0x38]
mov ecx, esi
push dword [esp + 0x90]
push ebx
push edi
push dword [esp + 0x5c]
push eax
call fcn.00406ed0
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x407a8a
cmp dword [esp + 0x34], eax
jne 0x407a8a
mov eax, dword [esp + 0x98]
mov edx, dword [esp + 0x80]
mov ecx, dword [esp + 0x84]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x54], edx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x50]
mov ebx, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x50], eax
xor eax, eax
jmp 0x407620
push dword [esp + 0x94]
mov ecx, esi
push dword [esp + 0x90]
call fcn.00406fa0
jmp 0x407a86
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x78]
mov dword [esp + 0x54], eax
mov eax, dword [esp + 0x64]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x60]
mov dword [esp + 0x5c], eax
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x44]
mov ecx, dword [eax + 0x20]
call fcn.00408800
test eax, eax
jne 0x407cfa
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x50], 1
cmp dword [esi + 0x24], eax
jne 0x407cf8
cmp dword [esi + 0x50], eax
je 0x407ac7
mov eax, 1
mov dword [esp + 0x34], eax
jmp 0x407b2b
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x68]
test eax, eax
je 0x407ae8
cmp eax, 2
mov dword [esi + 0x4c], eax
mov eax, 1
mov dword [esi + 0x50], 1
cmove ecx, eax
mov eax, dword [esp + 0x6c]
test eax, eax
je 0x407afc
mov dword [esi + 0x50], 1
xor ebx, ebx
mov dword [esi + 0x40], eax
test ecx, ecx
je 0x407b10
mov dword [esi + 0x50], 1
xor ebx, ebx
mov dword [esi + 0x38], 1
cmp dword [esp + 0x74], 0
mov eax, dword [esp + 0x34]
je 0x407b2b
mov dword [esi + 0x50], 1
xor ebx, ebx
mov dword [esi + 0x3c], 1
cmp dword [esp + 0x48], 0
je 0x407b88
test eax, eax
je 0x407b4b
xorps xmm0, xmm0
movlpd qword [esp + 0x80], xmm0
movlpd qword [esp + 0x98], xmm0
mov edi, dword [esp + 0x80]
sub edi, dword [esp + 0x54]
mov edx, dword [esp + 0x84]
sbb edx, dword [esp + 0x58]
mov ecx, dword [esp + 0x98]
sub ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x9c]
sbb eax, dword [esp + 0x24]
push eax
push ecx
push edx
push edi
lea ecx, [esi + 0x98]
call fcn.00406cc0
mov edi, eax
xor ecx, ecx
cmp dword [esp + 0x18], ecx
sete cl
cmp dword [esp + 0x70], 0
mov dword [esp + 0xb4], ecx
je 0x407c28
test edi, edi
jne 0x407bb6
test ebx, ebx
je 0x407bb6
cmp dword [esp + 0x34], edi
jne 0x407bb6
lea ecx, [edi + 1]
jmp 0x407bb8
xor ecx, ecx
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0xb8]
push edx
push dword [esp + 0x34]
mov eax, dword [eax + 0xc]
push dword [esp + 0x2c]
push dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x5c]
push dword [ecx + 4]
push dword [esi + 0x1c]
call eax
mov edi, eax
test edi, edi
je 0x407bfb
mov dword [esp + 0x3c], 1
mov dword [esi + 0x50], 1
jmp 0x407c0c
mov ecx, dword [esp + 0xb4]
test ecx, ecx
jne 0x407c28
cmp dword [esp + 0x18], ecx
jne 0x407c28
push dword [esp + 0x94]
mov ecx, esi
push dword [esp + 0x90]
call fcn.00406fa0
mov ecx, dword [esp + 0xb4]
cmp dword [esp + 0x50], 0
je 0x407c9e
cmp dword [esp + 0x48], 0
je 0x407c59
test edi, edi
jne 0x407c59
cmp dword [esi + 0x50], edi
jne 0x407c59
cmp dword [esp + 0x38], edi
jne 0x407c59
cmp dword [esp + 0x34], edi
jne 0x407c59
cmp dword [esi + 0x84], edi
jne 0x407c71
cmp dword [esp + 0x3c], edi
je 0x407c9e
cmp dword [esi + 0x84], 0
jne 0x407c71
mov edi, dword [esp + 0x44]
mov eax, dword [edi + 4]
mov dword [esi + 0x80], eax
jmp 0x407c75
mov edi, dword [esp + 0x44]
mov ebx, dword [esp + 0x1c]
mov eax, ebx
mov edx, dword [esp + 0x14]
or eax, edx
jne 0x407c89
cmp dword [esp + 0x18], eax
jne 0x407cb2
mov eax, dword [esp + 0x40]
mov dword [edi + 0xc], eax
mov dword [edi + 0x10], ebx
mov dword [edi + 0x14], edx
inc dword [esi + 0x84]
jmp 0x407ca2
mov edi, dword [esp + 0x44]
cmp dword [esp + 0x18], 0
jne 0x407cb2
mov ecx, dword [esp + 0x28]
lea ecx, [ecx + 0x20]
jmp 0x407cda
test ecx, ecx
je 0x407cc7
lea ecx, [esi + 0xe8]
call fcn.004088a0
test eax, eax
jne 0x407cfa
jmp 0x407cd4
cmp dword [edi + 4], 0
je 0x407cf8
mov dword [esi + 0x24], 1
lea ecx, [esi + 0xe4]
call fcn.004088a0
test eax, eax
jne 0x407cfa
mov ecx, dword [edi + 0x1c]
call fcn.00408800
test eax, eax
jne 0x407cfa
mov ebx, dword [esp + 0x44]
jmp 0x407060
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret