Function at 0x100c5c80
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x4c
mov eax, dword [esp + 0x60]
mov ebp, dword [esp + 0x64]
mov dword [eax + 4], 0
call fcn.100c5ae0
test eax, eax
je 0x100c5df2
test ebp, ebp
mov esi, eax
je 0x100c5e40
mov ebp, dword [ebp]
call fcn.100bf750
test eax, eax
mov ebx, eax
mov edi, edx
je 0x100c5df0
mov dword [esp], 0x10
call sub.msvcrt.dll_malloc
test eax, eax
mov edx, eax
je 0x100c5df2
mov dword [eax], ebx
mov dword [eax + 4], edi
test ebp, ebp
mov eax, dword [esp + 0x68]
mov dword [edx + 8], eax
mov eax, dword [esp + 0x6c]
mov dword [edx + 0xc], eax
mov eax, dword [esi + 0x9c]
mov dword [ebx + 0x9c], eax
je 0x100c5e50
mov eax, dword [ebp + 0x1c]
test eax, eax
je 0x100c5d0b
mov dword [ebx + 0x9c], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebx + 0x84], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0x20]
test eax, eax
je 0x100c5d44
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__strdup]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov dword [ebx + 0xa0], eax
mov eax, dword [ebp + 0x14]
test eax, eax
jne 0x100c5d55
mov eax, dword [esi + 0x88]
mov dword [esp + 0x24], eax
lea eax, [ebx + 0x98]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x30], 0
mov dword [esp + 0x28], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x100c5930
mov dword [esp + 4], ecx
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
mov ebp, eax
mov dword [ebx + 8], eax
mov edx, dword [esp + 0x28]
je 0x100c5e10
mov eax, dword [esp + 0x24]
mov edx, ebp
add eax, 0xf
cmp eax, 0x1e
jbe 0x100c5eb0
mov eax, dword [ebx + 0x9c]
mov dword [esp], edx
mov dword [esp + 4], eax
call dword [sym.imp.KERNEL32.dll_SetThreadAffinityMask]
sub esp, 8
mov dword [esp], ebp
call dword [sym.imp.KERNEL32.dll_ResumeThread]
sub esp, 4
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
mov dword [eax + 4], edi
add esp, 0x4c
pop ebx
xor eax, eax
pop esi
pop edi
pop ebp
ret
xor ebx, ebx
mov dword [esp], ebx
mov dword [esp + 4], edi
call fcn.100be1e0
add esp, 0x4c
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp], ebx
mov dword [esp + 4], edi
mov dword [esp + 0x24], edx
call fcn.100be1e0
mov edx, dword [esp + 0x24]
mov dword [esp], edx
call sub.msvcrt.dll_free
add esp, 0x4c
mov eax, 0xb
pop ebx
pop esi
pop edi
pop ebp
ret
xor ebp, ebp
jmp 0x100c5cb0
lea eax, [ebx + 0x98]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x30], 0
mov dword [esp + 0x24], edx
mov dword [esp + 0xc], edx
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x100c5930
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
mov ebp, eax
mov dword [ebx + 8], eax
mov edx, dword [esp + 0x24]
je 0x100c5e10
mov edx, ebp
jmp 0x100c5db5
mov ecx, dword [esp + 0x24]
mov eax, 0xfffffffe
lea edx, [ecx + 0xe]
cmp edx, 0xb
jbe 0x100c5ed1
mov eax, ecx
sub eax, 3
cmp eax, 0xc
mov eax, 2
cmovae eax, ecx
lea edx, [esp + 0x30]
lea ecx, [ebx + 0x1c]
mov dword [esp + 0x2c], eax
mov dword [esp + 4], edx
mov dword [esp], ecx
mov dword [esp + 0x28], edx
call fcn.100be050
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 8]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
sub esp, 8
test eax, eax
mov edx, dword [esp + 0x28]
je 0x100c5f15
mov eax, dword [esp + 0x24]
mov dword [ebx + 0x88], eax
mov dword [esp], edx
call fcn.100bdaa0
mov edx, dword [ebx + 8]
jmp 0x100c5db5