Function at 0x10cd4c0
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x6c
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp dword [ebp + 0x2c], edi
je 0x10cd4ea
mov eax, dword [esi]
cmp dword [eax + 0x819c], 6
jb 0x10cd4e7
push eax
call fcn.010b4940
jmp 0x10cd4ea
mov dword [ebp + 0x2c], edi
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp + 0x2c]
mov dword [eax], edi
mov edx, dword [esi]
push ecx
push edx
mov dword [ebp + 8], edi
call fcn.010b7b90
mov dword [ebp - 4], eax
cmp eax, edi
je 0x10cd909
mov ecx, dword [esi]
cmp dword [ecx + 0x1295c], edi
jne 0x10cd8de
push ebx
mov ebx, dword [ebp + 0x18]
jmp 0x10cd523
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0x24]
test eax, eax
je 0x10cd533
cmp dword [eax], 0
jne 0x10cd8b0
test edi, edi
je 0x10cd54c
cmp edi, 0xffffffff
je 0x10cd54c
mov eax, dword [ecx + 0x1c0]
push edi
call eax
mov dword [ebp + 8], 0
cmp dword [ebp + 0x1c], 0
jne 0x10cd564
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x10cd564
cmp eax, 0xffffffff
jne 0x10cd7df
cmp dword [ebp + 0x2c], 0
je 0x10cd7ba
mov edi, dword [ebp + 0x14]
test edi, edi
je 0x10cd735
push 0x100dbf8
push edi
call dword [sym.imp.msvcrt.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x10cd735
mov eax, dword [esi]
cmp dword [eax + 0x81a4], 0x2710
jb 0x10cd735
xor ecx, ecx
lea edx, [ebp - 0xc]
push edx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
push 1
lea ecx, [ebp - 0x18]
mov byte [ebp - 0x20], 0
mov byte [ebp - 0x1f], 0
mov byte [ebp - 0x1e], 0
mov byte [ebp - 0x1d], 0
mov byte [ebp - 0x1c], 0
mov byte [ebp - 0x1b], 0xf
mov byte [ebp - 0x18], 0
mov byte [ebp - 0x17], 0
mov byte [ebp - 0x16], 0
mov byte [ebp - 0x15], 0
mov byte [ebp - 0x14], 0
mov byte [ebp - 0x13], 1
mov edx, dword [eax + 0x164]
push ecx
call edx
test eax, eax
je 0x10cd735
mov eax, dword [esi]
mov eax, dword [eax + 0x164]
lea ecx, [ebp - 8]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 1
mov edi, 2
push edi
push edi
lea edx, [ebp - 0x20]
push edx
call eax
test eax, eax
je 0x10cd724
push 0x40
lea ecx, [ebp - 0x6c]
push 0
push ecx
call sub.msvcrt.dll_memset
mov edx, dword [ebp - 0xc]
xor eax, eax
add esp, 0xc
mov dword [ebp - 0x50], edx
lea edx, [ebp + 0x18]
push edx
push eax
mov ecx, 0xe0000000
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x58], eax
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x38], eax
mov dword [ebp + 0x18], eax
lea eax, [ebp - 0x6c]
mov dword [ebp - 0x6c], ecx
mov dword [ebp - 0x4c], ecx
mov ecx, dword [ebp - 8]
push eax
push edi
mov dword [ebp - 0x68], edi
mov dword [ebp - 0x54], 5
mov dword [ebp - 0x48], edi
mov dword [ebp - 0x34], edi
mov dword [ebp - 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_SetEntriesInAclW]
test eax, eax
jne 0x10cd716
mov ecx, dword [esi]
mov edx, dword [ecx + 0x288]
push 0x14
push 0x40
call edx
mov edi, eax
test edi, edi
je 0x10cd708
mov eax, dword [esi]
mov ecx, dword [eax + 0x464]
push 1
push edi
call ecx
test eax, eax
je 0x10cd6fd
mov eax, dword [ebp + 0x18]
mov edx, dword [esi]
mov ecx, dword [edx + 0x46c]
push 0
push eax
push 1
push edi
call ecx
test eax, eax
je 0x10cd6fd
mov edx, dword [esi + 8]
mov ecx, dword [ebp + 0x14]
lea eax, [ebp - 0x2c]
push eax
push 0
push ebx
push ebx
push 0xff
push 6
push 3
mov dword [ebp - 0x2c], 0xc
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], edi
mov edx, dword [edx + 0x498]
push ecx
call edx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edx, dword [esi]
mov eax, dword [edx + 0x194]
push edi
call eax
mov ecx, dword [esi]
mov edx, dword [ebp + 0x18]
mov eax, dword [ecx + 0x194]
push edx
call eax
mov ecx, dword [esi]
mov edx, dword [ebp - 8]
mov eax, dword [ecx + 0x158]
push edx
call eax
mov ecx, dword [esi]
mov edx, dword [ebp - 0xc]
mov eax, dword [ecx + 0x158]
push edx
call eax
mov edi, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x20]
mov eax, dword [ecx]
test eax, eax
je 0x10cd755
cmp eax, 0xffffffff
je 0x10cd755
mov edx, dword [esi]
cmp dword [edx + 0x81a4], 0x2710
jae 0x10cd7df
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
mov edx, dword [eax + 0x498]
push ecx
push 0
push ebx
push ebx
push 0xff
push 6
push 3
push edi
call edx
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edi, dword [esi]
lea edx, [edi + 0x20]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedIncrement]
push 0
push 1
push 0x40
push edi
call fcn.010b3c70
mov eax, dword [ebp + 0x20]
mov ecx, dword [eax]
mov edx, dword [esi]
push 0x1000
push 6
push ecx
push edx
call fcn.01029ae0
push 0x40
call fcn.01029a40
mov ecx, dword [esi]
lea edx, [ecx + eax*4 + 8]
push edx
call dword [sym.imp.KERNEL32.DLL_InterlockedDecrement]
jmp 0x10cd7df
mov ecx, dword [ebp - 4]
mov eax, dword [esi + 8]
mov edx, dword [ebp + 0x14]
mov eax, dword [eax + 0x498]
push ecx
push 0
push ebx
push ebx
push 0xff
push 6
push 3
push edx
call eax
mov ecx, dword [ebp + 0x20]
mov dword [ecx], eax
mov edi, dword [ebp + 0x20]
mov eax, dword [edi]
test eax, eax
je 0x10cd892
cmp eax, 0xffffffff
je 0x10cd892
mov edx, dword [esi + 8]
push 0
push eax
mov eax, dword [edx + 0x508]
call eax
test eax, eax
jne 0x10cd828
mov ecx, dword [esi + 8]
mov edx, dword [ecx + 0x324]
call edx
cmp eax, 0x217
je 0x10cd828
mov eax, dword [esi]
mov ecx, dword [edi]
mov edx, dword [eax + 0x1c0]
push ecx
call edx
jmp 0x10cd89f
push 0x1d
push 8
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.DLL_HeapAlloc]
mov edi, eax
test edi, edi
je 0x10cd89f
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0x20]
mov dword [edi + 8], eax
mov dword [edi + 0xc], ebx
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
mov dword [edi + 4], edx
mov edx, dword [ebp + 0x10]
mov dword [edi + 0x14], ecx
mov ecx, dword [ebp + 0x28]
mov dword [edi + 0x18], edx
mov dword [edi], esi
mov dword [edi + 0x10], ecx
test eax, eax
je 0x10cd88a
lea edx, [ebp - 0x10]
push edx
push 0
push edi
push fcn.010cd350
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov dword [ebp + 8], eax
test eax, eax
je 0x10cd88a
cmp eax, 0xffffffff
jne 0x10cd89f
push edi
call fcn.010cd350
jmp 0x10cd89f
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x128]
push 0xa
call ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x1295c], 0
je 0x10cd520
jmp 0x10cd8c5
test edi, edi
je 0x10cd8dd
cmp edi, 0xffffffff
je 0x10cd8c5
mov eax, dword [esi]
lea edx, [ebp + 8]
push edx
push eax
call fcn.0102a3e0
mov eax, dword [ebp + 8]
test eax, eax
je 0x10cd8dd
cmp eax, 0xffffffff
je 0x10cd8dd
mov edx, dword [esi]
lea ecx, [ebp + 8]
push ecx
push edx
call fcn.0102a3e0
pop ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
mov esi, dword [sym.imp.KERNEL32.DLL_HeapFree]
test eax, eax
je 0x10cd8fa
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call esi
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.DLL_GetProcessHeap]
push eax
call esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x28