Function at 0x29c5a20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call fcn.029c35e0
cmp dword [0x2a093a4], eax
je 0x29c5c49
call fcn.029c3a20
test eax, eax
je 0x29c5c49
push ebx
mov ebx, dword [0x29f7c10]
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax + ebx + 0x80]
add eax, ebx
push esi
push edi
test ecx, ecx
je 0x29c5ae5
cmp dword [eax + 0x84], 0
je 0x29c5ae5
mov eax, dword [ecx + ebx + 0xc]
lea edi, [ecx + ebx]
mov dword [ebp - 4], edi
test eax, eax
je 0x29c5ae5
add eax, ebx
push eax
call fcn.029c3920
mov edx, eax
mov dword [ebp - 8], edx
test edx, edx
je 0x29c5c46
mov eax, dword [edi]
mov ecx, dword [edi + 0x10]
lea esi, [eax + ebx]
test eax, eax
jne 0x29c5a9c
lea esi, [ecx + ebx]
mov eax, dword [esi]
test eax, eax
je 0x29c5ad8
lea edi, [ecx + ebx]
jmp 0x29c5aaa
mov edx, dword [ebp - 8]
test eax, eax
jns 0x29c5ab3
movzx eax, word [esi]
jmp 0x29c5ab7
lea eax, [eax + ebx + 2]
push eax
push edx
call fcn.029c3750
mov dword [edi], eax
test eax, eax
je 0x29c5c46
mov eax, dword [esi + 4]
add esi, 4
add edi, 4
test eax, eax
jne 0x29c5aa7
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x20]
add edi, 0x14
mov dword [ebp - 4], edi
test eax, eax
jne 0x29c5a78
push 0x29f7c88
call fcn.029c4d00
mov eax, dword [0x2a093a8]
mov esi, dword [ebp + 8]
mov ecx, dword [eax + 0x34]
add esp, 4
push esi
push 0x29c5040
add ecx, eax
push 0
mov dword [0x29f7d90], ecx
call dword [0x29d7ae0]
push 0x2a093ac
push 0x29c53d0
push str.NtResumeThread
push str.ntdll.dll
push 0x2a09bb8
call fcn.029c3080
push 0x29f7d8c
push 0x29c5300
push str.LdrLoadDll
push str.ntdll.dll
push 0x2a09bd8
call fcn.029c3080
mov ecx, dword [esi + 8]
mov eax, dword [esi + 0xc]
mov edx, dword [0x29f7c10]
add esp, 0x28
lea edi, [eax + edx]
test ecx, ecx
je 0x29c5b70
neg eax
sbb eax, eax
and eax, edi
push eax
add ecx, edx
call ecx
mov edx, dword [esi + 0x28]
mov eax, dword [esi + 0x30]
lea eax, [eax + edx*2]
xor ebx, ebx
lea ecx, [eax + eax*2]
lea edi, [esi + ecx*4 + 0x4c]
cmp dword [esi + 0x38], ebx
jbe 0x29c5bcc
cmp dword [edi + 4], 0
je 0x29c5bc3
mov eax, dword [edi]
mov edx, dword [0x2a093a0]
add eax, dword [0x29f7c10]
push edx
push eax
call fcn.029c39a0
add esp, 8
test eax, eax
jne 0x29c5bc3
mov eax, dword [edi + 8]
mov ecx, dword [0x29f7c10]
lea edx, [eax + ecx]
neg eax
sbb eax, eax
and eax, edx
mov edx, dword [edi + 4]
push eax
add edx, ecx
call edx
inc ebx
add edi, 0xc
cmp ebx, dword [esi + 0x38]
jb 0x29c5b87
mov ecx, dword [esi + 0x20]
mov edi, dword [0x29f7c10]
mov eax, dword [esi + 0x24]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea edx, [ecx + edi]
add edi, eax
test ecx, ecx
je 0x29c5bf4
neg eax
sbb eax, eax
and eax, edi
push eax
call edx
test eax, eax
je 0x29c5c0c
push 0
push 0
push 0
push 0x29c5070
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call ebx
mov eax, dword [esi + 0x10]
mov ecx, dword [0x29f7c10]
mov esi, dword [esi + 0x14]
lea edx, [eax + ecx]
add ecx, esi
test eax, eax
je 0x29c5c2e
neg esi
sbb esi, esi
and esi, ecx
push esi
call edx
test eax, eax
je 0x29c5c46
push 0
push 0
push 0
push 0x29c50f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret