Function at 0x40748b
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.004084b4
test eax, eax
jne 0x40806f
xor esi, esi
inc eax
mov dword [esp + 0xbc], eax
cmp dword [edi + 0x24], esi
jne 0x40806d
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.00407350
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 0x407975
mov dword [esp + 0x30], esi
mov dword [esp + 0x2c], esi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x20]
test esi, esi
jne 0x407963
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 0x4075ca
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 0x4077bf
and dword [eax], 0
mov edx, dword [esp + 0x14]
test edx, edx
je 0x4075c5
mov dword [edx], eax
jmp 0x4075c8
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 0x4075fd
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 0x4076df
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.0040310a
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 0x40765e
xor ecx, ecx
inc ecx
mov dword [edi + 0x70], ecx
jmp 0x407661
xor ecx, ecx
inc ecx
test eax, eax
je 0x407679
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 0x40767d
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 0x407698
xor eax, eax
inc eax
cmp ecx, eax
jb 0x4076df
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.00407350
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x40792a
cmp dword [esp + 0x20], eax
jne 0x407926
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 0x4078f2
mov esi, dword [esp + 0x3c]
test esi, esi
je 0x407779
push dword [esp + 0xc8]
push dword [esp + 0x2c]
push dword [esp + 0x7c]
call fcn.00424640
mov ecx, dword [esp + 0xd4]
add esp, 0xc
add dword [edi + 0x60], ecx
mov edx, dword [esp + 0xd0]
jmp 0x407780
mov ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0x18]
test edx, edx
jne 0x407815
test eax, eax
jne 0x407824
cmp ecx, ebx
jne 0x4077e1
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 0x40759a
mov esi, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x407596
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 0x40793a
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 0x407a6f
cmp edx, 3
cmove eax, dword [esp + 0xbc]
mov dword [esp + 0x18], eax
mov dword [esp + 0x44], 1
cmp ecx, ebx
jne 0x407844
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 0x4077d8
cmp edx, 3
jne 0x40787e
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 0x4077d8
test esi, esi
je 0x40788e
xor esi, esi
mov dword [esp + 0x10], ecx
mov dword [esp + 0x1c], esi
jmp 0x4078d7
mov ecx, edi
call fcn.00407467
mov ecx, eax
test ecx, ecx
jne 0x4078a7
inc ecx
mov eax, ecx
mov dword [esp + 0x64], ecx
jmp 0x4077c8
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.00424640
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 0x407838
cmp dword [esp + 0x3c], 0
mov eax, esi
mov dword [esp + 0x18], eax
mov dword [esp + 0x94], esi
je 0x407919
push ebx
push dword [esp + 0x2c]
push dword [esp + 0x7c]
call fcn.00424640
add esp, 0xc
mov eax, esi
xor edx, edx
mov dword [edi + 0x60], edx
mov dword [edi + 0x64], edx
jmp 0x4077ce
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 0x407985
push dword [esp + 0x8c]
lea edx, [esp + 0x24]
mov ecx, edi
push dword [esp + 0x94]
call fcn.004072fc
mov ecx, eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
jmp 0x407985
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x10], edx
jmp 0x407989
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 0x4077f8
cmp dword [esp + 0x44], edx
je 0x4079d0
test esi, esi
jne 0x4077f8
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 0x4079e1
mov ecx, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 0x44], eax
inc eax
mov dword [esp + 0x18], eax
jmp 0x4079d4
mov esi, dword [esp + 0x34]
cmp dword [esp + 0x20], 0
jne 0x4077f8
jmp 0x4079e5
mov eax, dword [esp + 0x18]
xor edx, edx
mov dword [esp + 0x80], edx
mov dword [esp + 0x7c], edx
test eax, eax
jne 0x407a67
mov ecx, dword [edi + 0x58]
mov eax, ecx
cmp ecx, dword [edi + 0x54]
jae 0x407a3e
cmp dword [esp + 0x24], edx
je 0x407a3e
lea eax, [ecx + 5]
imul ecx, eax, 0x28
add ecx, edi
call fcn.00407246
mov ecx, eax
mov eax, dword [edi + 0x58]
test ecx, ecx
jne 0x407a22
inc eax
mov dword [edi + 0x58], eax
jmp 0x407a3e
xor edx, edx
inc edx
cmp eax, edx
jne 0x407a3b
mov esi, edx
mov dword [esp + 0x7c], ecx
xor eax, eax
mov dword [esp + 0x18], esi
mov dword [esp + 0x44], eax
jmp 0x407a6b
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.0040853e
test eax, eax
jne 0x40806f
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 0x407df2
test eax, eax
je 0x407df2
test esi, esi
jne 0x407df2
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 0x407b2c
cmp dword [esp + 0x5c], eax
jne 0x407b2c
mov dword [esp + 0x84], 1
jmp 0x407b34
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 0x407ddb
cmp dword [esp + 0x88], eax
jne 0x407e12
mov ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x5c]
cmp ecx, dword [esp + 0x10]
jne 0x407be5
cmp eax, dword [esp + 0x1c]
je 0x407e12
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 0x407c24
jb 0x407c1b
cmp ecx, 1
jae 0x407c24
test edx, edx
jne 0x407c24
cmp eax, 1
jb 0x407c7d
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.00407350
mov ecx, eax
mov dword [esp + 0xc], ecx
test ecx, ecx
jne 0x407e12
cmp dword [esp + 0x20], eax
jne 0x407e12
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 0x407c91
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 0x407af4
ja 0x407d49
mov eax, dword [esp + 0x88]
cmp dword [esp + 0x14], eax
mov eax, edx
jbe 0x407af4
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 0x407af8
push dword [esp + 0x8c]
mov ecx, edi
push dword [esp + 0x94]
call fcn.00407417
jmp 0x407e12
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.004084b4
test eax, eax
jne 0x40806f
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 0x40806d
cmp dword [edi + 0x50], edx
je 0x407e51
mov eax, ecx
mov dword [esp + 0x20], eax
jmp 0x407eb0
test esi, esi
je 0x407e6a
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 0x407e71
mov ecx, dword [esp + 0x64]
xor esi, esi
inc esi
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x407e83
mov dword [edi + 0x50], esi
mov dword [edi + 0x40], eax
mov dword [esp + 0x24], edx
test ecx, ecx
je 0x407e96
xor ecx, ecx
mov dword [esp + 0x24], edx
inc ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x38], ecx
jmp 0x407e99
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x94], edx
je 0x407eb0
mov dword [edi + 0x50], ecx
mov dword [edi + 0x3c], ecx
mov dword [esp + 0x24], edx
cmp dword [esp + 0x44], edx
je 0x407f09
test eax, eax
je 0x407ecc
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.00407197
mov dword [esp + 0xc], eax
xor edx, edx
jmp 0x407f0d
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 0x407fa5
test eax, eax
jne 0x407f3b
cmp dword [esp + 0x24], eax
je 0x407f3b
cmp dword [esp + 0x20], eax
jne 0x407f3b
lea ecx, [eax + 1]
jmp 0x407f3d
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 0x407f78
xor eax, eax
inc eax
mov dword [esp + 0x48], eax
mov dword [edi + 0x50], eax
jmp 0x407f87
mov ecx, dword [esp + 0xa4]
test ecx, ecx
jne 0x407fad
test esi, esi
jne 0x407fad
push dword [esp + 0x8c]
mov ecx, edi
push dword [esp + 0x94]
call fcn.00407417
mov ecx, dword [esp + 0xa4]
jmp 0x407fa9
mov ebx, dword [esp + 0x34]
mov eax, dword [esp + 0xc]
cmp dword [esp + 0x68], 0
je 0x40801a
cmp dword [esp + 0x44], 0
je 0x407fe0
test eax, eax
jne 0x407fe0
cmp dword [edi + 0x50], eax
jne 0x407fe2
cmp dword [esp + 0x14], eax
jne 0x407fe2
cmp dword [esp + 0x20], eax
jne 0x407fe2
cmp dword [edi + 0x84], eax
jne 0x407ff3
cmp dword [esp + 0x48], eax
je 0x40801a
jmp 0x407fe2
xor eax, eax
cmp dword [edi + 0x84], eax
jne 0x407ff3
mov eax, dword [ebx + 4]
mov dword [edi + 0x80], eax
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
or eax, edx
jne 0x408003
test esi, esi
jne 0x40802a
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 0x40802a
mov ecx, dword [esp + 0x80]
add ecx, 0x20
jmp 0x408050
test ecx, ecx
je 0x40803f
lea ecx, [edi + 0xe8]
call fcn.0040853e
test eax, eax
jne 0x40806f
jmp 0x40804a
xor eax, eax
cmp dword [ebx + 4], eax
je 0x40806d
inc eax
mov dword [edi + 0x24], eax
lea ecx, [edi + 0xe4]
call fcn.0040853e
test eax, eax
jne 0x40806f
mov ecx, dword [ebx + 0x1c]
call fcn.004084b4
test eax, eax
jne 0x40806f
xor esi, esi
inc eax
jmp 0x4074bc
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret