Function at 0x1011a488
Capabilities:
Create thread

Disassembly:
sub esp, 0x10
mov eax, dword [0x101ed004]
xor eax, esp
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ebx
push ebp
push esi
mov esi, ecx
mov ecx, dword [esp + 0x28]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x2c]
push edi
push eax
mov dword [esp + 0x18], ecx
mov byte [ecx], 0
lea ecx, [esi - 4]
push edx
call fcn.1011a020
mov eax, dword [esi + 0x78]
xor ebx, ebx
mov ebp, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1011a59b
mov ecx, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp ebx, dword [esi + 0x60]
je 0x1011a58f
mov eax, dword [esi + 0x74]
mov edi, dword [eax + ebx*4]
cmp dword [edi + 4], 0
jne 0x1011a502
push 0
push 0
push 0
push 0
call ecx
mov dword [edi + 4], eax
test eax, eax
jne 0x1011a4fc
call ebp
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x1011a6f0
mov ecx, dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp dword [edi + 8], 0
jne 0x1011a52d
push 0
push 0
push 0
push 0
call ecx
mov dword [edi + 8], eax
test eax, eax
jne 0x1011a52d
call ebp
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x1011a6f0
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x1011a53c
call ebp
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
test eax, eax
jne 0x1011a54b
call ebp
cmp dword [edi + 0xc], 0
mov byte [edi + 0x10], 0
jne 0x1011a589
lea eax, [esp + 0x18]
push eax
push 0
push edi
push 0x1012bfd0
push 0
push 0
call fcn.1014f1f4
add esp, 0x18
mov dword [edi + 0xc], eax
test eax, eax
jne 0x1011a589
call ebp
test eax, eax
mov ecx, 1
cmovne ecx, eax
test ecx, ecx
jne 0x1011a6f0
mov ecx, dword [sym.imp.KERNEL32.dll_CreateEventW]
mov eax, dword [esi + 0x78]
inc ebx
cmp ebx, eax
jb 0x1011a4c2
xor edi, edi
test eax, eax
je 0x1011a5c7
mov ebx, dword [sym.imp.KERNEL32.dll_SetEvent]
cmp edi, dword [esi + 0x60]
je 0x1011a5c1
mov eax, dword [esi + 0x74]
mov eax, dword [eax + edi*4]
push dword [eax + 4]
mov byte [eax + 0x10], 0
call ebx
test eax, eax
jne 0x1011a5c1
call ebp
inc edi
cmp edi, dword [esi + 0x78]
jb 0x1011a5a7
mov eax, dword [esi + 0x60]
mov ecx, dword [esi + 0x74]
push dword [esp + 0x10]
mov ecx, dword [ecx + eax*4]
call fcn.10119a50
mov ecx, dword [esi + 0x78]
xor edi, edi
test ecx, ecx
je 0x1011a602
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp edi, dword [esi + 0x60]
je 0x1011a5fa
mov eax, dword [esi + 0x74]
push 0xffffffffffffffff
mov eax, dword [eax + edi*4]
push dword [eax + 8]
call ebx
mov ecx, dword [esi + 0x78]
inc edi
cmp edi, ecx
jb 0x1011a5e8
xor edi, edi
test ecx, ecx
je 0x1011a647
mov edx, dword [esi + 0x74]
nop dword [eax + eax]
mov eax, dword [edx]
cmp dword [eax + 0x6c], 0x80004004
je 0x1011a721
inc edi
add edx, 4
cmp edi, ecx
jb 0x1011a610
mov edx, dword [esi + 0x74]
xor edi, edi
nop dword [eax]
mov eax, dword [edx]
cmp dword [eax + 0x6c], 0x8007000e
je 0x1011a707
inc edi
add edx, 4
cmp edi, ecx
jb 0x1011a630
mov ebx, dword [esi + 0x78]
xor edx, edx
test ebx, ebx
je 0x1011a677
mov edi, dword [esi + 0x74]
mov eax, dword [edi]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x1011a66f
cmp eax, 0x20000010
je 0x1011a66f
cmp eax, 1
je 0x1011a66f
cmp eax, 0x80004005
jne 0x1011a6db
inc edx
add edi, 4
cmp edx, ebx
jb 0x1011a653
xor edi, edi
test ecx, ecx
je 0x1011a694
mov edx, dword [esi + 0x74]
mov eax, dword [edx]
cmp dword [eax + 0x6c], 1
je 0x1011a73b
inc edi
add edx, 4
cmp edi, ecx
jb 0x1011a680
xor ecx, ecx
test ebx, ebx
je 0x1011a6d9
mov edx, dword [esi + 0x74]
nop dword [eax]
mov eax, dword [edx]
mov eax, dword [eax + 0x6c]
test eax, eax
je 0x1011a6b0
cmp eax, 0x20000010
jne 0x1011a6db
inc ecx
add edx, 4
cmp ecx, ebx
jb 0x1011a6a0
mov ebx, dword [esp + 0x14]
xor edi, edi
nop
mov eax, dword [esi + 0x74]
push ebx
mov ecx, dword [eax + edi*4]
add ecx, 0x18
call fcn.10118070
test eax, eax
jne 0x1011a6db
inc edi
cmp edi, dword [esi + 0x78]
jb 0x1011a6c0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10142783
add esp, 0x10
ret 0x10
pop edi
pop esi
pop ebp
mov eax, ecx
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10142783
add esp, 0x10
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 0x8007000e
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10142783
add esp, 0x10
ret 0x10
pop edi
pop esi
pop ebp
mov eax, 0x80004004
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.10142783
add esp, 0x10
ret 0x10
mov ecx, dword [esp + 0x1c]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10142783
add esp, 0x10
ret 0x10