Function at 0x10003af0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100299eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push esi
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov cx, word [ebp + 0x14]
mov word [eax + 0x354], cx
mov edx, dword [ebp - 0x2c]
mov al, byte [ebp + 0x10]
mov byte [edx + 0x2d0], al
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x2b8], edx
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x2c4], ecx
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp + 0x18]
mov dword [edx + 0x2b0], eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x2bc], 0
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2c0], 0
cmp dword [ebp + 0x18], 0
jne 0x10003bb9
push 0x118
call fcn.1002367d
add esp, 4
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x20], 0
je 0x10003b97
mov ecx, dword [ebp - 0x20]
call fcn.100034a0
mov dword [ebp - 0x30], eax
jmp 0x10003b9e
mov dword [ebp - 0x30], 0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
mov dword [ecx + 0x2b4], edx
jmp 0x10003bc5
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp + 0x18]
mov dword [eax + 0x2b4], ecx
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x2b4], 0
je 0x10003cee
mov dword [ebp - 0x10], 0
jmp 0x10003be7
mov eax, dword [ebp - 0x10]
add eax, 1
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x29
jge 0x10003c63
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp - 0x2c]
mov dword [edx + ecx + 4], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x10]
shl ecx, 4
mov edx, dword [ebp - 0x2c]
mov dword [edx + ecx], eax
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x2c]
cmp dword [ecx + eax], 0
je 0x10003c5e
mov edx, dword [ebp - 0x10]
shl edx, 4
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + edx + 4]
push ecx
mov edx, dword [eax + edx]
push edx
mov eax, dword [ebp - 0x10]
push eax
lea edx, [ebp - 0x28]
mov ecx, dword [ebp - 0x2c]
call fcn.10003e3b
mov ecx, dword [eax]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov esi, dword [ebp - 0x2c]
mov dword [esi + eax + 8], ecx
mov dword [esi + eax + 0xc], edx
jmp 0x10003bde
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x2a4], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2a0], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [eax + 0x2a0]
push ecx
call fcn.1000a562
add esp, 4
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x294], 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x290], eax
mov edx, dword [ebp - 0x2c]
cmp dword [edx + 0x290], 0
je 0x10003cee
lea eax, [ebp - 0x18]
push eax
push 0
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x10003f9b
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edx, dword [ebp - 0x2c]
mov dword [edx + 0x2bc], eax
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 0x14