Function at 0x406e20
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 8], 0
jmp 0x406e38
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x406e70
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4 + 0x2c], eax
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
mov dword [edx + ecx*4 + 0x20], eax
jmp 0x406e2f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x34], 0
je 0x406e8b
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x2c], 0
je 0x406e8b
mov edx, dword [ebp + 8]
cmp dword [edx + 0x30], 0
jne 0x406e90
jmp 0x406f83
mov eax, dword [ebp + 8]
cmp dword [eax + 0x24], 0
je 0x406eab
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x28], 0
je 0x406eab
mov edx, dword [ebp + 8]
cmp dword [edx + 0x20], 0
jne 0x406eb0
jmp 0x406f83
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateWaitableTimerA]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x38], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
jne 0x406ed0
jmp 0x406f83
push 0
push 4
mov eax, dword [ebp + 8]
push eax
push 0x406500
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x18], eax
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
jne 0x406efb
jmp 0x406f83
push 0
push 4
mov eax, dword [ebp + 8]
push eax
push 0x4069c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x1c], eax
mov edx, dword [ebp + 8]
mov dword [edx + 0x44], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x1c], 0
jne 0x406f2d
jmp 0x406f83
mov dword [ebp - 0x14], 0x10000
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
call fcn.0041e260
push eax
call fcn.0040f410
add esp, 4
lea ecx, [ebp - 0x14]
push ecx
call fcn.0041de40
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
mov eax, dword [edx + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
jmp 0x407007
mov dword [ebp - 8], 0
jmp 0x406f95
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 3
jge 0x406fd9
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 8]
cmp dword [edx + ecx*4 + 0x2c], 0
je 0x406fb9
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
mov edx, dword [ecx + eax*4 + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
cmp dword [ecx + eax*4 + 0x20], 0
je 0x406fd7
mov edx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov ecx, dword [eax + edx*4 + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x406f8c
mov edx, dword [ebp + 8]
cmp dword [edx + 0x38], 0
je 0x406fef
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x38]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp + 8]
cmp dword [edx + 0x18], 0
je 0x407005
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret