Function at 0x41d3e0
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
call fcn.0041a700
test eax, eax
mov ebp, eax
je 0x41d5b2
mov ebx, dword [esp + 0x40]
test ebx, ebx
je 0x41d40a
mov eax, dword [eax + 0xb0]
mov edx, dword [esp + 0x40]
mov dword [edx], eax
mov eax, dword [esp + 0x4c]
mov esi, dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ebx, 1
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov dword [ebp + 0x64], 0
mov dword [ebp + 0x24], 1
mov dword [ebp + 0x14], 0xffffffff
mov dword [ebp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [ebp + 8], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call esi
sub esp, 0x10
test eax, eax
mov dword [ebp + 0x18], eax
jne 0x41d650
cmp ebx, 1
jne 0x41d490
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
add ebx, 1
jmp 0x41d43e
mov dword [esp], 0x14
call edi
sub esp, 4
cmp ebx, 5
jne 0x41d482
mov eax, dword [ebp + 0x18]
mov dword [ebp + 0x1c], 0xffffffff
mov dword [ebp + 0x34], 0xffffffff
mov dword [ebp], 0xbab1f00d
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x60], 0
test eax, eax
je 0x41d592
mov ecx, dword [esp + 0x44]
test ecx, ecx
je 0x41d690
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x44]
mov eax, dword [eax]
mov ebx, dword [ecx + 8]
test al, 8
mov dword [ebp + 0x24], eax
jne 0x41d634
mov eax, dword [esp + 0x44]
mov eax, dword [eax + 0xc]
mov dword [ebp + 0x68], eax
mov dword [esp + 4], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], ebp
mov dword [esp + 8], 0x41b700
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
mov ebx, eax
lea eax, [eax - 1]
cmp eax, 0xfffffffd
ja 0x41d55f
mov eax, dword [ebp + 0x68]
cmp eax, 0xfffffff2
jl 0x41d5c0
cmp eax, 0xffffffff
jl 0x41d644
cmp eax, 0xe
jg 0x41d680
cmp eax, 2
mov ecx, 2
cmovge eax, ecx
jmp 0x41d5c5
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x41d572
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea eax, [ebp + 0x1c]
mov dword [esp], eax
call fcn.0041e9f0
mov dword [ebp + 0x34], 0xffffffff
mov dword [ebp + 0x18], 0
mov dword [ebp + 0x14], 0
mov eax, dword [esp + 0x40]
test eax, eax
je 0x41d5a4
mov eax, dword [esp + 0x40]
mov dword [eax], 0
mov edx, dword [ebp + 0xac]
test edx, edx
je 0x41d697
add esp, 0x2c
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, 0xfffffff1
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 0x18]
sub esp, 8
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_ResetEvent]
sub esp, 4
test byte [ebp + 0x24], 4
je 0x41d623
mov dword [ebp + 0x14], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_Sleep]
sub esp, 4
xor eax, eax
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp + 0x14], ebx
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
jmp 0x41d609
call fcn.0041adc0
mov eax, dword [eax + 0x68]
mov dword [ebp + 0x68], eax
jmp 0x41d4fd
mov eax, 0xfffffffe
jmp 0x41d5c5
mov dword [ebp + 0x1c], 0xffffffff
mov dword [ebp + 0x34], 0xffffffff
mov dword [ebp], 0xbab1f00d
mov dword [ebp + 0x68], 0
mov dword [ebp + 0x60], 0
jmp 0x41d4cf
mov eax, 0xf
jmp 0x41d5c5
xor ebx, ebx
jmp 0x41d4fd
mov eax, ebp
call fcn.0041a930
jmp 0x41d5b2