Function at 0x10002c6f
Capabilities:
Create thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [section..data]
xor eax, esp
mov dword [esp + 0xa0], eax
cmp dword [0x10005460], 0
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x18]
push ebx
mov dword [esp + 0x28], eax
mov ebx, ecx
mov eax, dword [ebp + 0x1c]
push esi
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [esp + 0x2c], eax
je 0x10002eca
mov ecx, dword [0x1000545c]
test ecx, ecx
je 0x10002eca
mov ax, word [0x1000545e]
movzx esi, cx
lea ecx, [esp + 0x38]
push 0x10
mov word [esp + 0x14], ax
mov eax, esi
mov edi, dword [esp + 0x14]
mov edx, edi
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x2c], eax
call fcn.10002bdd
test eax, eax
jne 0x10002eca
mov ecx, dword [esp + 0x18]
mov ax, word [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov word [esp + 0x40], ax
lea eax, [ecx + 1]
mov word [esp + 0x42], dx
mov dword [esp + 0x14], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002d1b
sub ecx, dword [esp + 0x14]
inc ecx
movzx eax, dx
add eax, 0x1d
mov dword [esp + 0x14], ecx
add ecx, eax
movzx eax, word [esp + 0x44]
cmp eax, ecx
jb 0x10002eca
push 0x10
lea eax, [esp + 0x3c]
mov edx, edi
push eax
push esi
mov ecx, ebx
call fcn.10002c26
test eax, eax
jne 0x10002eca
mov ecx, dword [ebp + 0x14]
lea eax, [esi + 0x10]
mov dword [esp + 0x34], eax
movzx esi, ax
movzx eax, cx
test eax, eax
je 0x10002d84
push eax
push dword [esp + 0x28]
mov edx, edi
mov ecx, ebx
push esi
call fcn.10002c26
test eax, eax
jne 0x10002eca
add esi, dword [ebp + 0x14]
mov edx, edi
push 0xd
push 0x10001164
movzx eax, si
mov ecx, ebx
push eax
call fcn.10002c26
test eax, eax
jne 0x10002eca
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10002dc8
push eax
push dword [esp + 0x1c]
lea eax, [esi + 0xd]
mov edx, edi
movzx eax, ax
mov ecx, ebx
push eax
call fcn.10002c26
test eax, eax
jne 0x10002eca
lea eax, [esp + 0x28]
push eax
xor eax, eax
push eax
push eax
push dword [0x10005460]
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x10002eca
xor esi, esi
inc esi
push 0xffffffffffffffff
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x10002eba
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x28]
jne 0x10002e19
mov eax, dword [esp + 0x48]
sub eax, 4
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x10002e3e
push dword [esp + 0x2c]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call dword [0x100060ac]
mov eax, dword [esp + 0x24]
call eax
mov ecx, dword [esp + 0x50]
jmp 0x10002e43
mov eax, 0x10002
push eax
push ecx
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
test esi, esi
jne 0x10002ded
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x10002eca
mov edx, dword [esp + 0x10]
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [esp + 0x28]
mov ecx, ebx
call fcn.10002bdd
test eax, eax
jne 0x10002eca
mov ecx, dword [esp + 0x30]
mov eax, dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, dword [ebp + 0x14]
movzx eax, cx
test eax, eax
je 0x10002eb3
mov edx, dword [esp + 0x10]
mov ecx, ebx
push eax
push dword [esp + 0x28]
mov eax, dword [esp + 0x3c]
movzx eax, ax
push eax
call fcn.10002bdd
test eax, eax
jne 0x10002eca
movzx eax, word [esp + 0x46]
jmp 0x10002ecc
push 0
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10003bb0
mov esp, ebp
pop ebp
ret 0x1c