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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x34], esi
mov ecx, dword [esi + 0x1c]
mov edi, dword [esi]
call fcn.00407722
test eax, eax
jne 0x406e63
xor ebp, ebp
mov dword [esp + 0x9c], ebp
xor eax, eax
inc eax
cmp dword [edi + 0x24], ebp
jne 0x406e61
mov ebx, dword [edi + 0x34]
mov edx, dword [edi + 0x30]
mov ecx, edx
push ebx
push edx
push ebp
add ecx, eax
mov dword [esp + 0x84], edx
push ebp
mov eax, ebx
mov dword [edi + 0x30], ecx
push ebp
adc eax, ebp
mov dword [esp + 0x88], ebx
push ebp
lea edx, [esp + 0x54]
mov dword [edi + 0x34], eax
mov ecx, edi
call fcn.0040629c
xor ecx, ecx
mov dword [esp + 0x40], ebp
mov ebx, eax
mov dword [esp + 0x20], ecx
mov eax, dword [edi + 0x70]
xorps xmm0, xmm0
mov dword [esp + 0x44], ecx
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x14], eax
mov dword [esp + 0x90], ebp
mov dword [esp + 0x80], ebp
mov dword [esp + 0x98], ebp
mov dword [esp + 0x30], ebp
movlpd qword [esp + 0x48], xmm0
mov dword [esp + 0x24], ebp
mov dword [esp + 0x18], ecx
test ebx, ebx
jne 0x4068fd
mov dword [esp + 0x24], ebx
mov ebp, ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x44], ebx
test ecx, ecx
jne 0x4068ff
mov ebp, dword [esi + 8]
movlpd qword [esp + 0x50], xmm0
mov eax, dword [esp + 0x54]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x38], ebx
mov ebx, dword [edi + 0x64]
sub ebx, dword [edi + 0x60]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x44], ecx
mov dword [esp + 0x28], eax
test ebp, ebp
jne 0x4064fc
mov eax, dword [edi]
mov ecx, dword [edi + 0x14]
add eax, 0x10
push eax
push ecx
call dword [ecx]
mov ebp, eax
test ebp, ebp
je 0x40671a
mov ecx, dword [esp + 0x38]
xor eax, eax
mov dword [ebp], eax
test ecx, ecx
je 0x4064f7
mov dword [ecx], ebp
jmp 0x4064fa
mov dword [esi + 8], ebp
xor ecx, ecx
lea eax, [ebp + 0x10]
mov dword [esp + 0x48], eax
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x406531
mov eax, dword [edi + 0x60]
mov esi, dword [esp + 0x38]
add eax, 0x10
add eax, dword [edi + 0x5c]
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x20], eax
jmp 0x40664a
mov esi, dword [edi]
mov edx, eax
mov eax, dword [edi + 0xc]
mov dword [esp + 0x60], edx
mov dword [esp + 0x50], eax
mov dword [esp + 0x24], ecx
jmp 0x406580
lea ecx, [esp + 0x64]
mov dword [esp + 0x64], esi
push ecx
push edx
push eax
call dword [eax]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x60]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x64]
add ecx, eax
add edx, eax
mov dword [esp + 0x24], ecx
sub esi, eax
mov dword [esp + 0x60], edx
cmp dword [esp + 0x1c], 0
jne 0x4065bf
test eax, eax
je 0x406584
mov eax, dword [esp + 0x50]
test esi, esi
jne 0x406546
xor eax, eax
mov dword [esp + 0x1c], eax
add dword [esp + 0x28], ecx
mov esi, dword [esp + 0x38]
adc dword [esp + 0x2c], eax
mov eax, ecx
test esi, esi
push 0
cmovne eax, dword [esp + 0x34]
add dword [edi + 0x68], ecx
mov dword [esp + 0x34], eax
pop eax
adc dword [edi + 0x6c], eax
xor edx, edx
cmp ecx, dword [edi]
setne dl
mov dword [esp + 0x14], edx
je 0x4065c3
inc eax
mov dword [edi + 0x70], eax
jmp 0x4065c6
xor eax, eax
jmp 0x40658a
xor eax, eax
inc eax
mov edx, dword [esp + 0x1c]
test edx, edx
je 0x4065e0
mov dword [edi + 0x48], edx
xor edx, edx
mov dword [edi + 0x70], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x1c], edx
jmp 0x4065e2
xor edx, edx
mov ecx, dword [esp + 0x28]
sub ecx, dword [esp + 0x5c]
mov eax, dword [esp + 0x2c]
sbb eax, dword [esp + 0x58]
mov dword [esp + 0x54], eax
jne 0x4065ff
xor eax, eax
inc eax
cmp ecx, eax
jb 0x40664a
push dword [esp + 0x74]
mov ecx, edi
push dword [esp + 0x7c]
push edx
push edx
push edx
push edx
lea edx, [esp + 0x54]
call fcn.0040629c
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], ecx
test eax, eax
jne 0x406885
test ecx, ecx
jne 0x406885
mov eax, dword [esp + 0x28]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
xor eax, eax
lea ecx, [esp + 0xa0]
test esi, esi
mov esi, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x38]
sete al
mov dword [esp + 0xa4], eax
mov eax, dword [esp + 0x24]
mov dword [esp + 0xa8], eax
mov eax, dword [esp + 0x18]
push dword [ecx + 4]
mov dword [esp + 0xb4], eax
xor eax, eax
push dword [edi + 0x1c]
inc eax
mov dword [esp + 0xb4], esi
mov dword [esp + 0xc0], eax
mov eax, dword [edi + 0x18]
call dword [eax]
mov eax, dword [esp + 0xb4]
xor ecx, ecx
inc ecx
mov dword [esp + 0x44], eax
mov dword [esp + 0x90], ecx
cmp dword [esp + 0xb0], ecx
je 0x406855
mov esi, dword [esp + 0xa8]
test ebx, ebx
je 0x4066de
push esi
push dword [esp + 0x24]
lea eax, [ebp + 0x10]
push eax
call fcn.00433870
add dword [edi + 0x60], esi
xor ecx, ecx
add esp, 0xc
inc ecx
cmp dword [esp + 0xb0], 0
mov eax, dword [esp + 0x14]
jne 0x406752
test eax, eax
jne 0x406761
cmp esi, dword [esp + 0x24]
jne 0x406733
mov esi, dword [esp + 0x34]
mov dword [esp + 0x38], ebp
mov ebp, dword [ebp]
push eax
pop ecx
test ebx, ebx
je 0x4064cc
xor ecx, ecx
mov ebx, ecx
mov dword [edi + 0x60], ecx
mov dword [edi + 0x64], ecx
jmp 0x4064cc
xor edx, edx
inc edx
mov eax, edx
mov dword [esp + 0x80], edx
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x14], eax
jmp 0x406891
xor ecx, ecx
mov dword [esp + 0x1c], 0xb
mov ebx, ecx
mov dword [esp + 0x24], ecx
mov ebp, ecx
mov dword [esp + 0x20], ecx
mov dword [esp + 0x7c], ebx
jmp 0x406a6a
cmp dword [esp + 0xb0], 3
cmove eax, ecx
mov dword [esp + 0x14], eax
mov ebp, dword [esp + 0x24]
mov dword [esp + 0x40], ecx
cmp esi, ebp
jne 0x40677e
xor ebx, ebx
mov dword [edi + 0x60], ebx
mov dword [edi + 0x64], ebx
mov ecx, dword [esp + 0x18]
jmp 0x406893
cmp dword [esp + 0xb0], 3
jne 0x4067c6
mov edx, dword [esp + 0x20]
xor ecx, ecx
mov eax, dword [esp + 0x14]
add edx, esi
sub ebp, esi
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x30]
test ebx, ebx
push 0
setne cl
sub dword [esp + 0x2c], ebp
pop ebx
sbb dword [esp + 0x2c], ebx
cmp dword [esp + 0x38], ebx
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x18]
cmove edx, esi
mov dword [esp + 0x30], edx
jmp 0x40689d
test ebx, ebx
je 0x4067d6
xor ebx, ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], ebx
jmp 0x40683a
mov eax, dword [edi + 0x5c]
test eax, eax
jne 0x4067f7
mov eax, dword [edi]
mov ecx, dword [edi + 0x14]
add eax, 0x10
push eax
push ecx
call dword [ecx]
test eax, eax
je 0x4067fe
mov esi, dword [esp + 0xa8]
mov dword [edi + 0x5c], eax
lea ecx, [eax + 0x10]
test ecx, ecx
jne 0x40680f
xor ecx, ecx
inc ecx
mov eax, ecx
mov dword [esp + 0x80], ecx
jmp 0x406726
mov eax, dword [esp + 0x20]
sub ebp, esi
sub dword [esp + 0x28], ebp
push 0
pop ebx
sbb dword [esp + 0x2c], ebx
add eax, esi
push ebp
push eax
push ecx
mov dword [edi + 0x64], ebp
mov dword [edi + 0x60], ebx
call fcn.00433870
mov esi, dword [esp + 0xb4]
add esp, 0xc
mov edx, dword [esp + 0x30]
mov eax, ebx
cmp dword [esp + 0x38], 0
mov dword [esp + 0x14], eax
cmove edx, esi
mov dword [esp + 0x30], edx
jmp 0x406775
mov dword [esp + 0x98], ecx
mov eax, ecx
mov dword [esp + 0x14], eax
test ebx, ebx
je 0x40676d
mov eax, dword [esp + 0x48]
push esi
push dword [esp + 0x24]
push eax
call fcn.00433870
mov eax, dword [esp + 0x20]
add esp, 0xc
jmp 0x40676d
mov eax, dword [esp + 0x30]
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x14]
xor ebx, ebx
mov dword [esp + 0x20], ebx
mov ebp, ebx
mov dword [esp + 0x24], ebx
cmp dword [esp + 0x1c], 0
jne 0x40690f
lea esi, [edi + 0xb0]
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [edi + 0x88], ebx
je 0x4068d8
mov eax, dword [esp + 0x74]
cmp eax, dword [edi + 0x94]
jb 0x4068d8
ja 0x4068d3
mov eax, dword [esp + 0x78]
cmp eax, dword [edi + 0x90]
jbe 0x4068d8
xor eax, eax
inc eax
jmp 0x4068da
mov eax, ebx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
mov eax, dword [edi + 0x9c]
push esi
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
jmp 0x40690f
xor ebx, ebx
mov edx, dword [esp + 0x4c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x48]
mov dword [esp + 0x28], edx
cmp dword [esp + 0x1c], 0
mov dword [esp + 0x7c], ebx
jne 0x406a68
cmp dword [esp + 0x40], 0
je 0x406956
test ecx, ecx
jne 0x406a68
mov esi, dword [esp + 0x34]
mov eax, dword [edi + 0x18]
push dword [esi + 4]
push dword [edi + 0x1c]
call dword [eax + 4]
mov ebx, eax
xor ecx, ecx
mov dword [esp + 0x7c], ebx
test ebx, ebx
je 0x406969
xor eax, eax
mov dword [esp + 0x40], ecx
inc eax
mov dword [esp + 0x14], eax
jmp 0x40695c
mov esi, dword [esp + 0x34]
xor ecx, ecx
cmp dword [esp + 0x18], 0
jne 0x406a6a
jmp 0x40696d
mov eax, dword [esp + 0x14]
mov dword [esp + 0x64], ecx
mov dword [esp + 0x60], ecx
test eax, eax
jne 0x4069e6
mov ecx, dword [edi + 0x58]
mov eax, ecx
cmp ecx, dword [edi + 0x54]
jae 0x4069c0
cmp dword [esp + 0x44], 0
je 0x4069c0
lea eax, [ecx + 5]
imul ecx, eax, 0x28
add ecx, edi
call fcn.004061e8
mov ecx, eax
mov eax, dword [edi + 0x58]
test ecx, ecx
jne 0x4069a6
inc eax
mov dword [edi + 0x58], eax
jmp 0x4069c0
xor edx, edx
inc edx
cmp eax, edx
jne 0x4069bd
xor eax, eax
mov dword [esp + 0x14], edx
mov dword [esp + 0x40], eax
mov dword [esp + 0x60], ecx
jmp 0x4069ed
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 + 0x64], esi
lea ecx, [esi + 0x1c]
call fcn.0040773e
test eax, eax
jne 0x406e63
xor edx, edx
inc edx
mov eax, dword [esp + 0x40]
cmp dword [esp + 0x1c], 0
xorps xmm0, xmm0
movlpd qword [esp + 0x50], xmm0
movlpd qword [esp + 0x48], xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x88], xmm0
jne 0x406bd0
test eax, eax
je 0x406bd0
test ebx, ebx
jne 0x406bd0
mov esi, dword [esp + 0x54]
mov eax, edx
mov ecx, dword [esp + 0x34]
mov edx, dword [esp + 0x68]
mov dword [esp + 0x84], esi
mov esi, dword [esp + 0x50]
mov ebx, dword [ecx + 8]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x44], esi
mov esi, dword [esp + 0x4c]
mov dword [esp + 0x5c], esi
mov esi, dword [esp + 0x48]
mov dword [esp + 0x58], esi
mov dword [esp + 0x38], ebx
test eax, eax
je 0x406a7e
mov esi, dword [esp + 0x30]
jmp 0x406aa1
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x64], ecx
inc edx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x14], edx
jmp 0x4069e9
mov ebx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
sub ebx, edx
mov esi, dword [edi]
sbb eax, ecx
cmp dword [esp + 0x9c], eax
jb 0x406a9d
ja 0x406a9b
cmp esi, ebx
jbe 0x406a9d
mov esi, ebx
mov ebx, dword [esp + 0x38]
add edx, esi
mov dword [esp + 0x48], 1
push 0
pop eax
adc ecx, eax
mov dword [esp + 0x68], edx
mov dword [esp + 0x6c], ecx
cmp edx, dword [esp + 0x28]
jne 0x406ac5
cmp ecx, dword [esp + 0x2c]
jne 0x406ac5
inc eax
mov ecx, dword [edi + 0x18]
lea edx, [esp + 0x48]
push edx
lea edx, [esp + 0x8c]
push edx
lea edx, [esp + 0x70]
push edx
push eax
push esi
lea eax, [ebx + 0x10]
push eax
mov eax, dword [esp + 0x4c]
push dword [eax + 4]
push dword [edi + 0x1c]
call dword [ecx + 8]
mov dword [esp + 0x7c], eax
test eax, eax
jne 0x406bbf
cmp dword [esp + 0x48], eax
jne 0x406bf3
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
cmp edx, dword [esp + 0x28]
jne 0x406b1b
cmp ecx, dword [esp + 0x2c]
je 0x406bf3
mov esi, dword [esp + 0x88]
mov eax, edx
sub eax, dword [esp + 0x44]
mov ebx, ecx
sbb ebx, dword [esp + 0x84]
sub esi, dword [esp + 0x58]
mov dword [esp + 0x50], ebx
mov ebx, dword [esp + 0x8c]
sbb ebx, dword [esp + 0x5c]
cmp dword [esp + 0x50], 0
ja 0x406b5b
jb 0x406b52
cmp eax, 1
jae 0x406b5b
test ebx, ebx
jne 0x406b5b
cmp esi, 1
jb 0x406bb2
push dword [esp + 0x74]
lea edx, [esp + 0x40]
mov ecx, edi
push dword [esp + 0x7c]
push ebx
push esi
push dword [esp + 0x60]
push eax
call fcn.0040629c
mov dword [esp + 0x1c], eax
test eax, eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x18], eax
jne 0x406bf3
test eax, eax
jne 0x406bf3
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x68]
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x8c]
mov dword [esp + 0x44], edx
mov dword [esp + 0x84], ecx
mov dword [esp + 0x5c], eax
mov ebx, dword [esp + 0x38]
xor eax, eax
mov ebx, dword [ebx]
jmp 0x406a5a
push dword [esp + 0x74]
mov ecx, edi
push dword [esp + 0x7c]
call fcn.00406368
jmp 0x406bf3
mov eax, dword [esp + 0x54]
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x50]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x34]
mov ecx, dword [eax + 0x20]
call fcn.00407722
test eax, eax
jne 0x406e63
mov ebx, dword [esp + 0x90]
xor edx, edx
xor ecx, ecx
mov esi, edx
inc ecx
mov dword [esp + 0x48], esi
mov dword [esp + 0x50], ecx
cmp dword [edi + 0x24], edx
jne 0x406e61
cmp dword [edi + 0x50], edx
je 0x406c37
mov eax, ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x3c], eax
jmp 0x406c9a
mov eax, dword [esp + 0x7c]
test eax, eax
je 0x406c57
mov dword [edi + 0x50], ecx
cmp eax, 2
mov ecx, dword [esp + 0x80]
push 1
mov dword [edi + 0x4c], eax
pop eax
cmove ecx, eax
jmp 0x406c5e
mov ecx, dword [esp + 0x80]
mov eax, dword [esp + 0x60]
test eax, eax
je 0x406c71
xor ebx, ebx
mov dword [edi + 0x40], eax
inc ebx
mov dword [edi + 0x50], ebx
mov ebx, edx
test ecx, ecx
je 0x406c82
xor ecx, ecx
mov ebx, edx
inc ecx
mov dword [edi + 0x50], ecx
mov dword [edi + 0x38], ecx
jmp 0x406c85
xor ecx, ecx
inc ecx
mov eax, dword [esp + 0x18]
cmp dword [esp + 0x98], edx
je 0x406c9a
mov dword [edi + 0x50], ecx
mov ebx, edx
mov dword [edi + 0x3c], ecx
cmp dword [esp + 0x40], edx
je 0x406cf8
test eax, eax
je 0x406cb6
xorps xmm0, xmm0
movlpd qword [esp + 0x68], xmm0
movlpd qword [esp + 0x88], xmm0
mov esi, dword [esp + 0x68]
sub esi, dword [esp + 0x44]
mov edx, dword [esp + 0x6c]
sbb edx, dword [esp + 0x84]
mov ecx, dword [esp + 0x88]
sub ecx, dword [esp + 0x58]
mov eax, dword [esp + 0x8c]
sbb eax, dword [esp + 0x5c]
push eax
push ecx
push edx
push esi
lea ecx, [edi + 0x98]
call fcn.00406162
mov esi, dword [esp + 0x48]
mov dword [esp + 0x1c], eax
jmp 0x406cfc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
xor ecx, ecx
test edx, edx
sete cl
cmp dword [esp + 0x90], 0
mov dword [esp + 0x94], ecx
je 0x406d97
test eax, eax
jne 0x406d2d
test ebx, ebx
je 0x406d2d
cmp dword [esp + 0x18], eax
jne 0x406d2d
xor ebx, ebx
inc ebx
mov ecx, ebx
jmp 0x406d34
xor eax, eax
xor ebx, ebx
mov ecx, eax
inc ebx
mov eax, dword [edi + 0x18]
lea edx, [esp + 0x50]
push edx
lea edx, [esp + 0x98]
push edx
push dword [esp + 0x28]
push ebp
push dword [esp + 0x34]
push ecx
mov ecx, dword [esp + 0x4c]
push dword [ecx + 4]
push dword [edi + 0x1c]
call dword [eax + 0xc]
mov dword [esp + 0x1c], eax
test eax, eax
je 0x406d6a
mov esi, ebx
mov dword [edi + 0x50], ebx
jmp 0x406d7d
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x14]
test ecx, ecx
jne 0x406d9b
test edx, edx
jne 0x406d9b
push dword [esp + 0x74]
mov ecx, edi
push dword [esp + 0x7c]
call fcn.00406368
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x14]
mov eax, dword [esp + 0x1c]
cmp dword [esp + 0x50], 0
je 0x406dca
cmp dword [esp + 0x40], 0
je 0x406ddb
test eax, eax
jne 0x406ddb
cmp dword [edi + 0x50], eax
jne 0x406ddd
cmp dword [esp + 0x7c], eax
jne 0x406ddd
cmp dword [esp + 0x18], eax
jne 0x406ddd
cmp dword [edi + 0x84], eax
jne 0x406df4
test esi, esi
jne 0x406ddd
mov esi, dword [esp + 0x34]
test edx, edx
jne 0x406e1f
mov ecx, dword [esp + 0x64]
add ecx, 0x20
jmp 0x406e45
xor eax, eax
cmp dword [edi + 0x84], eax
jne 0x406df4
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
mov dword [edi + 0x80], eax
jmp 0x406df8
mov esi, dword [esp + 0x34]
mov ebp, dword [esp + 0x28]
mov eax, ebp
mov ebx, dword [esp + 0x2c]
or eax, ebx
jne 0x406e0a
test edx, edx
jne 0x406e1f
mov eax, dword [esp + 0x30]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebx
inc dword [edi + 0x84]
jmp 0x406dce
test ecx, ecx
je 0x406e34
lea ecx, [edi + 0xe8]
call fcn.0040773e
test eax, eax
jne 0x406e63
jmp 0x406e3f
xor eax, eax
cmp dword [esi + 4], eax
je 0x406e61
inc eax
mov dword [edi + 0x24], eax
lea ecx, [edi + 0xe4]
call fcn.0040773e
test eax, eax
jne 0x406e63
mov ecx, dword [esi + 0x1c]
call fcn.00407722
test eax, eax
jne 0x406e63
xor ebp, ebp
jmp 0x4063ef
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret