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

Disassembly:
sub esp, 0xa8
push ebx
push ebp
mov ebp, dword [esp + 0xb4]
push esi
push edi
push dword [ebp + 0x1c]
mov esi, dword [ebp]
call fcn.0040a120
test eax, eax
jne 0x40979e
cmp dword [esi + 0x24], 0
jne 0x40979c
mov edx, dword [esi + 0x30]
mov ecx, edx
mov ebx, dword [esi + 0x34]
add ecx, 1
mov eax, ebx
mov dword [esp + 0x38], edx
adc eax, 0
mov dword [esp + 0x48], ebx
mov dword [esi + 0x34], eax
lea eax, [esp + 0x28]
push eax
push ebx
push edx
push 0
push 0
push 0
push 0
push esi
mov dword [esi + 0x30], ecx
call fcn.00408aa0
mov ecx, dword [esi + 0x70]
xor edx, edx
mov ebx, dword [esp + 0x28]
xorps xmm0, xmm0
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], edx
mov dword [esp + 0x88], edx
mov dword [esp + 0x70], ecx
mov dword [esp + 0x7c], ecx
mov dword [esp + 0x40], ecx
movlpd qword [esp + 0x68], xmm0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
test eax, eax
jne 0x4090da
xor edi, edi
mov dword [esp + 0x24], ecx
mov dword [esp + 0x34], ecx
mov dword [esp + 0x30], ecx
test ebx, ebx
jne 0x4090c8
mov edi, dword [ebp + 8]
mov ebp, dword [esi + 0x64]
sub ebp, dword [esi + 0x60]
movlpd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x6c]
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x408d19
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 0x408fc7
mov dword [edi], 0
test ebx, ebx
je 0x408d0f
mov dword [ebx], edi
jmp 0x408d19
mov eax, dword [esp + 0xbc]
mov dword [eax + 8], edi
lea ecx, [edi + 0x10]
mov dword [esp + 0x68], ecx
mov ebx, ecx
mov dword [esp + 0x24], ebx
test ebp, ebp
je 0x408d52
mov ebx, dword [esi + 0x60]
mov edx, ebp
add ebx, 0x10
mov dword [esp + 0x1c], ebp
add ebx, dword [esi + 0x5c]
mov dword [esp + 0x20], 0
mov dword [esp + 0x40], ebp
mov dword [esp + 0x44], edx
mov dword [esp + 0x24], ebx
jmp 0x408e23
mov eax, dword [esi]
mov dword [esp + 0x44], eax
lea eax, [esp + 0x44]
push eax
push ecx
push dword [esi + 0xc]
call fcn.00402200
mov edx, dword [esp + 0x44]
add dword [esp + 0x1c], edx
mov ecx, dword [esp + 0x40]
adc dword [esp + 0x20], 0
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x10], eax
cmove ecx, edx
add dword [esi + 0x68], edx
mov dword [esp + 0x40], ecx
adc dword [esi + 0x6c], 0
xor ecx, ecx
cmp edx, dword [esi]
setne cl
mov dword [esp + 0x18], ecx
test ecx, ecx
je 0x408da4
mov dword [esi + 0x70], 1
test eax, eax
je 0x408dc0
mov dword [esi + 0x48], eax
xor eax, eax
mov dword [esi + 0x70], 1
mov dword [esp + 0x18], 1
mov dword [esp + 0x10], eax
mov ecx, dword [esp + 0x1c]
sub ecx, dword [esp + 0x4c]
mov eax, dword [esp + 0x20]
sbb eax, dword [esp + 0x58]
mov dword [esp + 0x94], eax
jne 0x408dde
cmp ecx, 1
jb 0x408e23
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x4c]
push dword [esp + 0x40]
push 0
push 0
push 0
push 0
push esi
call fcn.00408aa0
mov dword [esp + 0x10], eax
test eax, eax
jne 0x409058
cmp dword [esp + 0x28], eax
jne 0x409058
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x44]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x58], eax
mov ecx, dword [esp + 0x18]
xor eax, eax
cmp dword [esp + 0x2c], eax
mov dword [esp + 0xa4], ecx
lea ecx, [esp + 0x98]
push ecx
mov ecx, dword [esp + 0xc0]
sete al
mov dword [esp + 0x9c], eax
mov eax, dword [esi + 0x18]
mov dword [esp + 0xa0], ebx
push dword [ecx + 4]
mov dword [esp + 0xa8], edx
push dword [esi + 0x1c]
mov dword [esp + 0xb8], 1
mov eax, dword [eax]
call eax
mov eax, dword [esp + 0xa8]
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x88], 1
mov dword [esp + 0x14], ecx
cmp eax, 1
je 0x409020
mov ebx, dword [esp + 0xa0]
test ebp, ebp
je 0x408ebf
push ebx
push dword [esp + 0x28]
lea eax, [edi + 0x10]
push eax
call fcn.0044ce00
mov eax, dword [esp + 0xb4]
add esp, 0xc
add dword [esi + 0x60], ebx
test eax, eax
jne 0x408f24
cmp dword [esp + 0x18], eax
jne 0x408f37
cmp ebx, dword [esp + 0x44]
jne 0x408eec
mov ebx, edi
mov edi, dword [edi]
mov dword [esp + 0x2c], ebx
test ebp, ebp
je 0x408ce5
xor ebp, ebp
mov dword [esi + 0x60], ebp
mov dword [esi + 0x64], ebp
jmp 0x408ce5
mov edi, dword [esp + 0x14]
xor ebp, ebp
mov ecx, 1
mov dword [esp + 0x10], 0xb
mov dword [esp + 0x24], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x18], ecx
jmp 0x409157
mov ecx, dword [esp + 0x18]
cmp eax, 3
mov edx, 1
cmove ecx, edx
mov dword [esp + 0x18], ecx
mov edx, dword [esp + 0x44]
mov dword [esp + 0x3c], 1
cmp ebx, edx
je 0x409046
cmp eax, 3
jne 0x408f87
add dword [esp + 0x24], ebx
sub edx, ebx
mov eax, dword [esp + 0x10]
xor ecx, ecx
test ebp, ebp
mov dword [esp + 0x34], edx
setne cl
sub dword [esp + 0x1c], edx
mov edx, dword [esp + 0x40]
sbb dword [esp + 0x20], 0
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x30], ecx
cmove edx, ebx
mov dword [esp + 0x40], edx
jmp 0x409070
test ebp, ebp
je 0x408f99
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], 0
jmp 0x409006
mov eax, dword [esi + 0x5c]
test eax, eax
jne 0x408fc0
mov ecx, dword [esi + 0x14]
mov eax, dword [esi]
add eax, 0x10
push eax
mov eax, dword [ecx]
push ecx
call eax
test eax, eax
je 0x408fc7
mov edx, dword [esp + 0x44]
mov ebx, dword [esp + 0xa0]
mov dword [esi + 0x5c], eax
lea ecx, [eax + 0x10]
test ecx, ecx
jne 0x408fd9
mov dword [esp + 0x18], 1
mov dword [esp + 0x70], 1
jmp 0x409054
mov eax, dword [esp + 0x24]
sub edx, ebx
sub dword [esp + 0x1c], edx
push edx
sbb dword [esp + 0x24], 0
add eax, ebx
push eax
push ecx
mov dword [esi + 0x64], edx
mov dword [esi + 0x60], 0
call fcn.0044ce00
mov ebx, dword [esp + 0xac]
add esp, 0xc
mov edx, dword [esp + 0x40]
cmp dword [esp + 0x2c], 0
mov dword [esp + 0x18], 0
cmove edx, ebx
mov dword [esp + 0x40], edx
jmp 0x409054
mov dword [esp + 0x18], 1
mov dword [esp + 0x7c], 1
test ebp, ebp
je 0x409046
push dword [esp + 0x44]
mov eax, dword [esp + 0x6c]
push ebx
push eax
call fcn.0044ce00
add esp, 0xc
mov dword [esi + 0x64], 0
mov dword [esi + 0x60], 0
mov eax, dword [esp + 0x10]
mov dword [esp + 0x30], 0
mov dword [esp + 0x34], 0
mov dword [esp + 0x24], 0
test eax, eax
jne 0x4090ee
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x4090ab
mov eax, dword [esp + 0x48]
cmp eax, dword [esi + 0x94]
jb 0x4090ab
ja 0x4090a4
mov eax, dword [esp + 0x38]
cmp eax, dword [esi + 0x90]
jbe 0x4090ab
mov ebx, 1
jmp 0x4090ad
xor ebx, ebx
mov eax, dword [esi + 0x9c]
push edi
mov dword [esp + 0x2c], ebx
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x10]
jmp 0x4090f2
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
jmp 0x4090fa
mov ecx, dword [esp + 0x6c]
mov edi, edx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x68]
mov dword [esp + 0x1c], ecx
jmp 0x4090fa
mov ebx, dword [esp + 0x28]
mov edx, dword [esp + 0x3c]
mov edi, dword [esp + 0x14]
xor ebp, ebp
mov dword [esp + 0x2c], ebp
test eax, eax
jne 0x409142
test edx, edx
je 0x40913e
test ebx, ebx
jne 0x409142
mov ebx, dword [esp + 0xbc]
mov eax, dword [esi + 0x18]
push dword [ebx + 4]
mov eax, dword [eax + 4]
push dword [esi + 0x1c]
call eax
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
je 0x40914d
mov ecx, 1
mov dword [esp + 0x3c], 0
mov dword [esp + 0x18], ecx
jmp 0x40915e
test ebx, ebx
je 0x409153
mov ecx, 1
mov dword [esp + 0x18], ecx
jmp 0x409157
mov ecx, dword [esp + 0x18]
jmp 0x40915e
mov ecx, dword [esp + 0x18]
mov ebx, dword [esp + 0xbc]
mov dword [esp + 0x68], 0
mov dword [esp + 0x90], 0
test ecx, ecx
jne 0x40921b
mov eax, dword [esi + 0x58]
cmp eax, dword [esi + 0x54]
jae 0x4091f2
test edi, edi
je 0x4091f2
lea eax, [eax + eax*4]
lea eax, [eax + 0x19]
lea edi, [esi + eax*8]
lea eax, [edi + 0x20]
push eax
call fcn.0040a570
test eax, eax
jne 0x4091c1
lea eax, [edi + 0x1c]
push eax
call fcn.0040a570
test eax, eax
jne 0x4091c1
cmp dword [edi + 0x18], 0
lea eax, [edi + 0x18]
jne 0x4091cf
push edi
push fcn.00408970
push eax
call fcn.0040a150
test eax, eax
je 0x4091cf
jle 0x4091cb
movzx eax, ax
or eax, 0x80070000
test eax, eax
jne 0x4091d4
inc dword [esi + 0x58]
jmp 0x4091f2
mov ecx, dword [esi + 0x58]
cmp ecx, 1
jne 0x4091ef
mov dword [esp + 0x18], ecx
xor ecx, ecx
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x90], eax
jmp 0x40921f
mov dword [esi + 0x54], ecx
mov ecx, dword [ebx + 4]
inc ecx
cmp ecx, dword [esi + 0x58]
sbb eax, eax
and eax, ecx
add eax, 5
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ebx + 0x1c]
mov dword [esp + 0x68], ebx
push eax
call fcn.0040a270
test eax, eax
jne 0x40979e
mov ecx, dword [esp + 0x3c]
mov edi, dword [esp + 0x10]
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x58], xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x80], xmm0
test edi, edi
jne 0x409488
test ecx, ecx
je 0x409488
test ebp, ebp
jne 0x409488
mov ecx, dword [esp + 0xbc]
lea eax, [edi + 1]
mov edx, dword [esp + 0x60]
mov ebx, dword [ecx + 8]
mov ecx, dword [esp + 0x54]
mov dword [esp + 0x78], ecx
mov ecx, dword [esp + 0x50]
mov dword [esp + 0x74], ecx
mov ecx, dword [esp + 0x5c]
mov dword [esp + 0x4c], ecx
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x58], ecx
mov ecx, dword [esp + 0x64]
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], ebx
test eax, eax
je 0x4092a0
mov edi, dword [esp + 0x40]
jmp 0x4092c6
mov ebx, dword [esp + 0x1c]
mov eax, ebp
mov edi, dword [esi]
sub ebx, edx
mov dword [esp + 0x50], 0
sbb eax, ecx
cmp dword [esp + 0x50], eax
jb 0x4092c2
ja 0x4092c0
cmp edi, ebx
jbe 0x4092c2
mov edi, ebx
mov ebx, dword [esp + 0x14]
add edx, edi
mov dword [esp + 0x50], 1
mov dword [esp + 0x60], edx
adc ecx, 0
mov dword [esp + 0x64], ecx
cmp edx, dword [esp + 0x1c]
jne 0x4092ec
cmp ecx, ebp
jne 0x4092ec
mov eax, 1
jmp 0x4092ee
xor eax, eax
mov ecx, dword [esi + 0x18]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x84]
push edx
lea edx, [esp + 0x68]
push edx
push eax
push edi
lea eax, [ebx + 0x10]
push eax
mov eax, dword [esp + 0xd4]
push dword [eax + 4]
mov eax, dword [ecx + 8]
push dword [esi + 0x1c]
call eax
mov ebp, eax
mov dword [esp + 0x2c], ebp
test ebp, ebp
jne 0x4093e1
cmp dword [esp + 0x50], eax
jne 0x409438
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
cmp edx, dword [esp + 0x1c]
jne 0x40934b
cmp ecx, dword [esp + 0x20]
je 0x409438
mov edi, dword [esp + 0x80]
mov eax, edx
sub eax, dword [esp + 0x74]
mov ebp, ecx
mov ebx, dword [esp + 0x84]
sbb ebp, dword [esp + 0x78]
sub edi, dword [esp + 0x58]
sbb ebx, dword [esp + 0x4c]
test ebp, ebp
ja 0x409381
jb 0x409378
cmp eax, 1
jae 0x409381
test ebx, ebx
jne 0x409381
cmp edi, 1
jb 0x4093ce
lea ecx, [esp + 0x28]
push ecx
push dword [esp + 0x4c]
push dword [esp + 0x40]
push ebx
push edi
push ebp
push eax
push esi
call fcn.00408aa0
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
jne 0x4093db
cmp dword [esp + 0x28], eax
jne 0x4093db
mov edx, dword [esp + 0x60]
mov ecx, dword [esp + 0x64]
mov edi, dword [esp + 0x80]
mov ebp, dword [esp + 0x84]
mov dword [esp + 0x74], edx
mov dword [esp + 0x78], ecx
mov dword [esp + 0x58], edi
mov dword [esp + 0x4c], ebp
mov ebx, dword [esp + 0x14]
xor eax, eax
mov ebx, dword [ebx]
jmp 0x40928e
mov ebp, dword [esp + 0x2c]
jmp 0x40943c
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x409413
mov eax, dword [esp + 0x48]
cmp eax, dword [esi + 0x94]
ja 0x409431
mov eax, dword [esp + 0x38]
jb 0x409417
cmp eax, dword [esi + 0x90]
jae 0x409431
jmp 0x409417
mov eax, dword [esp + 0x38]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0xbc]
push dword [eax + 0x20]
call fcn.0040a120
test eax, eax
jne 0x40979e
mov eax, dword [esp + 0x88]
xor ebx, ebx
mov dword [esp + 0x10], ebx
mov dword [esp + 0x50], 1
mov dword [esp + 0x14], eax
cmp dword [esi + 0x24], ebx
jne 0x40979c
cmp dword [esi + 0x50], ebx
je 0x4094aa
mov eax, 1
mov dword [esp + 0x28], eax
jmp 0x409512
mov eax, dword [esp + 0x54]
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x74], eax
mov eax, dword [esp + 0x5c]
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x58], eax
jmp 0x40943c
mov ecx, dword [esp + 0x70]
test ebp, ebp
je 0x4094c7
cmp ebp, 2
mov dword [esi + 0x50], 1
mov eax, 1
mov dword [esi + 0x4c], ebp
cmove ecx, eax
mov eax, dword [esp + 0x90]
test eax, eax
je 0x4094e0
mov dword [esi + 0x50], 1
mov dword [esi + 0x40], eax
mov dword [esp + 0x14], ebx
test ecx, ecx
je 0x4094f6
mov dword [esi + 0x50], 1
mov dword [esi + 0x38], 1
mov dword [esp + 0x14], ebx
mov eax, dword [esp + 0x28]
cmp dword [esp + 0x7c], ebx
je 0x409512
mov dword [esi + 0x50], 1
mov dword [esi + 0x3c], 1
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x3c], ebx
je 0x4095da
test eax, eax
je 0x409532
xorps xmm0, xmm0
movlpd qword [esp + 0x60], xmm0
movlpd qword [esp + 0x80], xmm0
mov ebp, dword [esp + 0x60]
sub ebp, dword [esp + 0x74]
mov eax, dword [esp + 0x64]
sbb eax, dword [esp + 0x78]
mov edi, dword [esp + 0x80]
sub edi, dword [esp + 0x58]
mov ebx, dword [esp + 0x84]
sbb ebx, dword [esp + 0x4c]
mov dword [esp + 0x7c], eax
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add dword [esi + 0xa0], ebp
mov eax, dword [esp + 0x7c]
adc dword [esi + 0xa4], eax
add dword [esi + 0xa8], edi
adc dword [esi + 0xac], ebx
cmp dword [esi + 0x9c], 0
jne 0x4095c3
mov eax, dword [esi + 0x98]
test eax, eax
je 0x4095c3
push dword [esi + 0xac]
push dword [esi + 0xa8]
push dword [esi + 0xa4]
push dword [esi + 0xa0]
push eax
mov eax, dword [eax]
call eax
test eax, eax
je 0x4095c3
mov dword [esi + 0x9c], 0xa
mov edi, dword [esi + 0x9c]
lea eax, [esi + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ebx, dword [esp + 0x10]
mov ebp, dword [esp + 0x18]
xor ecx, ecx
test ebp, ebp
sete cl
cmp dword [esp + 0x88], 0
mov dword [esp + 0x8c], ecx
je 0x4096c5
test edi, edi
jne 0x40960f
cmp dword [esp + 0x14], edi
je 0x40960f
cmp dword [esp + 0x28], edi
jne 0x40960f
lea ecx, [edi + 1]
jmp 0x409611
xor ecx, ecx
mov eax, dword [esi + 0x18]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x90]
push edx
push dword [esp + 0x38]
mov eax, dword [eax + 0xc]
push dword [esp + 0x40]
push dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0xd4]
push dword [ecx + 4]
push dword [esi + 0x1c]
call eax
mov edi, eax
mov dword [esp + 0x10], edi
test edi, edi
je 0x409654
mov ebx, 1
mov dword [esi + 0x50], ebx
jmp 0x409663
mov ecx, dword [esp + 0x8c]
test ecx, ecx
jne 0x4096c5
test ebp, ebp
jne 0x4096c5
lea edi, [esi + 0xb0]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esi + 0x88], 0
je 0x409695
mov eax, dword [esp + 0x48]
cmp eax, dword [esi + 0x94]
ja 0x4096b3
mov eax, dword [esp + 0x38]
jb 0x409699
cmp eax, dword [esi + 0x90]
jae 0x4096b3
jmp 0x409699
mov eax, dword [esp + 0x38]
mov dword [esi + 0x90], eax
mov eax, dword [esp + 0x48]
mov dword [esi + 0x94], eax
mov dword [esi + 0x88], 1
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esp + 0x8c]
mov edi, dword [esp + 0x10]
cmp dword [esp + 0x50], 0
je 0x40973d
cmp dword [esp + 0x3c], 0
je 0x4096f4
test edi, edi
jne 0x4096f4
cmp dword [esi + 0x50], edi
jne 0x4096f4
cmp dword [esp + 0x2c], edi
jne 0x4096f4
cmp dword [esp + 0x28], edi
jne 0x4096f4
cmp dword [esi + 0x84], edi
jne 0x40970f
test ebx, ebx
je 0x40973d
cmp dword [esi + 0x84], 0
jne 0x40970f
mov edi, dword [esp + 0xbc]
mov eax, dword [edi + 4]
mov dword [esi + 0x80], eax
jmp 0x409716
mov edi, dword [esp + 0xbc]
mov ebx, dword [esp + 0x1c]
mov eax, ebx
mov edx, dword [esp + 0x20]
or eax, edx
jne 0x409728
test ebp, ebp
jne 0x409751
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 0x409744
mov edi, dword [esp + 0xbc]
test ebp, ebp
jne 0x409751
mov eax, dword [esp + 0x68]
add eax, 0x20
jmp 0x40977a
test ecx, ecx
je 0x409767
lea eax, [esi + 0xe8]
push eax
call fcn.0040a270
test eax, eax
jne 0x40979e
jmp 0x409774
cmp dword [edi + 4], 0
je 0x40979c
mov dword [esi + 0x24], 1
lea eax, [esi + 0xe4]
push eax
call fcn.0040a270
test eax, eax
jne 0x40979e
push dword [edi + 0x1c]
call fcn.0040a120
test eax, eax
jne 0x40979e
mov ebp, dword [esp + 0xbc]
jmp 0x408c14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xa8
ret 4