Function at 0x4447d4
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
push edi
mov edi, ebx
mov dword [ebp - 0xc], edx
shl edi, 2
mov esi, eax
push edi
push eax
push dword [ebp + 0x14]
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x38], ebx
xor eax, eax
mov dword [ebp - 0x34], ebx
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [ebp - 0x30], eax
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], 1
mov dword [ebp - 0x20], fcn.004440d0
mov dword [ebp - 0x1c], 0x444140
mov dword [ebp - 0x18], ecx
cmp dword [ebp - 0x30], esi
je 0x4449ba
test eax, eax
je 0x4449ba
push edi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x44488f
mov esi, 0x8007000e
mov ecx, 0x408db4
push esi
push 0x2a0
mov dword [ebp - 4], esi
call fcn.0043f87d
jmp 0x4449fd
mov edx, dword [ebp + 0x14]
xor edi, edi
mov ecx, eax
mov dword [ebp - 0x24], eax
sub edx, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 0x14], edx
cmp edi, ebx
jae 0x4449a2
push ecx
push dword [ebp - 0xc]
call fcn.00444004
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
js 0x444990
xor ecx, ecx
lea eax, [ebp - 0x38]
push ecx
push ecx
push eax
push 0x444730
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x14]
mov dword [edx + ecx], eax
test eax, eax
je 0x4448eb
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadIdealProcessor]
jmp 0x444934
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x44490e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
mov dword [ebp - 4], eax
jmp 0x444916
mov esi, 0x80004005
mov dword [ebp - 4], esi
test esi, esi
jns 0x44492a
push esi
push 0x2c4
mov ecx, 0x408db4
call fcn.0043f87d
mov eax, dword [ebp - 8]
push dword [eax]
call fcn.004440d0
mov ecx, dword [ebp - 8]
inc edi
add ecx, 4
mov dword [ebp - 8], ecx
test esi, esi
jns 0x4448a1
and dword [ebp - 0x28], 0
test edi, edi
je 0x4449f9
mov ecx, ebx
lea edx, [ebp - 0x38]
sub ecx, edi
mov eax, ecx
not eax
inc eax
lock xadd dword [edx], eax
cmp ecx, eax
jne 0x44496f
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4449f9
push esi
push 0x2af
mov ecx, 0x408db4
call fcn.0043f87d
jmp 0x444946
test esi, esi
js 0x444946
push 0xffffffffffffffff
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, ebx
lea ecx, [ebp - 0x38]
xchg dword [ecx], eax
jmp 0x44497a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
test eax, eax
jns 0x4449dd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00411710
mov esi, eax
mov dword [ebp - 4], eax
jmp 0x4449e5
mov esi, 0x80004005
mov dword [ebp - 4], esi
test esi, esi
jns 0x444a21
push esi
push 0x292
mov ecx, 0x408db4
call fcn.0043f87d
test esi, esi
jns 0x444a21
xor edi, edi
test ebx, ebx
je 0x444a21
mov esi, dword [ebp + 0x14]
cmp dword [esi + edi*4], 0
je 0x444a19
push dword [esi + edi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [esi + edi*4], 0
inc edi
cmp edi, ebx
jb 0x444a06
mov esi, dword [ebp - 4]
cmp dword [ebp - 0x30], 0
je 0x444a30
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c], 0
je 0x444a3f
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x444a56
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10