Function at 0x4ac9e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
xor eax, eax
mov dword [ebp - 0xc], eax
mov edx, 0x20
mov dword [ebp - 4], edi
mov ecx, dword [edi + 8]
mov esi, dword [edi + 0x14]
mov dword [edi + 0x38], eax
lea eax, [edi + 0x70]
mov dword [ebp - 8], ecx
nop word [eax + eax]
mov dword [eax + 0x100], 0
lea eax, [eax + 8]
mov dword [eax + 0xfc], 0
mov dword [eax - 8], 0
mov dword [eax - 4], 0
sub edx, 1
jne 0x4aca10
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x48], edx
mov dword [edi + 0x4c], edx
mov dword [edi + 0x40], edx
mov dword [edi + 0x44], edx
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], edx
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x4accf6
lea esi, [edi + 0x27c]
mov edx, dword [esi]
test edx, edx
je 0x4aca73
mov ecx, dword [esi - 0xc]
mov eax, dword [esi + 4]
cmp eax, dword [ecx]
je 0x4aca9e
mov eax, dword [esi - 0xc]
push edx
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi - 0xc]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov eax, dword [eax + 0x18]
push ecx
push eax
mov eax, dword [eax]
call eax
add esp, 0x10
mov dword [esi], eax
test eax, eax
je 0x4accea
mov edx, dword [esi - 8]
test edx, edx
je 0x4acab0
mov ecx, dword [esi - 0xc]
mov eax, dword [esi - 4]
cmp eax, dword [ecx + 4]
je 0x4acadd
mov eax, dword [esi - 0xc]
push edx
mov eax, dword [eax + 0x18]
push eax
mov eax, dword [eax + 4]
call eax
mov eax, dword [esi - 0xc]
mov ecx, dword [eax + 4]
mov dword [esi - 4], ecx
mov eax, dword [eax + 0x18]
push ecx
push eax
mov eax, dword [eax]
call eax
add esp, 0x10
mov dword [esi - 8], eax
test eax, eax
je 0x4accea
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push 0
push 0
push 0
push 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call edi
mov dword [esi + 0x30], eax
test eax, eax
jne 0x4acb16
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4accbc
push 0
push 0
push 0
push 0
call edi
mov dword [esi + 0x34], eax
test eax, eax
jne 0x4acb3b
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4accbc
mov eax, dword [ebp - 0x10]
add esi, 0x44
mov edi, dword [ebp - 8]
inc eax
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x4aca63
mov esi, dword [ebp - 4]
add esi, 0x29c
mov dword [ebp - 0x10], 0
cmp dword [esi - 0x14], 0
jne 0x4acc05
push 0
push 0
push 0
lea eax, [esi - 0x2c]
mov dword [esi - 4], 0x4ac7c0
push 0
mov dword [esi], eax
mov dword [esi - 8], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi - 0x10], eax
test eax, eax
jne 0x4acba6
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4accc8
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi - 0xc], eax
test eax, eax
jne 0x4acbcf
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4accc8
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [esi - 0x14]
push eax
push 0x4ac560
push 0
push 0
call fcn.004de004
add esp, 0x18
mov dword [esi - 0x14], eax
test eax, eax
jne 0x4acc05
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4accc8
mov eax, dword [ebp - 0x10]
add esi, 0x44
inc eax
mov dword [ebp - 0x10], eax
cmp eax, edi
jb 0x4acb60
mov edi, dword [ebp - 4]
add edi, 0x28c
xor esi, esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4acc42
call ebx
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x4accd1
inc esi
add edi, 0x44
cmp esi, dword [ebp - 8]
jb 0x4acc22
mov edi, dword [ebp - 4]
push dword [edi + 0x2b0]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4acc60
call ebx
push dword [edi + 0x2ac]
call dword [sym.imp.KERNEL32.dll_SetEvent]
test eax, eax
jne 0x4acc72
call ebx
test esi, esi
je 0x4acc92
add edi, 0x290
nop dword [eax]
push 0xffffffffffffffff
push dword [edi]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edi, [edi + 0x44]
sub esi, 1
jne 0x4acc80
mov edi, dword [ebp - 8]
test edi, edi
je 0x4acd2b
mov esi, dword [ebp - 4]
add esi, 0x2b0
mov eax, dword [esi - 4]
test eax, eax
je 0x4accfd
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4accfd
call ebx
jmp 0x4acd04
pop edi
pop esi
mov eax, 0xc
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 0xc], 0xc
jmp 0x4acc9d
mov edi, dword [ebp - 4]
mov dword [ebp - 0xc], 0xc
mov dword [edi + 0x2a4], 1
jmp 0x4acc4e
pop edi
pop esi
mov eax, 2
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x4acc4e
mov dword [esi - 4], 0
mov eax, dword [esi]
test eax, eax
je 0x4acd19
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x4acd19
call ebx
jmp 0x4acd1f
mov dword [esi], 0
add esi, 0x44
sub edi, 1
jne 0x4acca6
mov eax, dword [ebp - 0xc]
test eax, eax
jne 0x4acd38
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret