Function at 0x10002d35
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 [0x10005470], 0
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x10], 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 + 0x10], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [esp + 0x28], eax
je 0x10002f7a
mov eax, dword [0x1000546c]
test eax, eax
je 0x10002f7a
movzx edi, word [0x1000546e]
lea ecx, [esp + 0x38]
push 0x10
movzx esi, ax
mov edx, edi
mov eax, esi
mov dword [esp + 0x30], edi
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.10002c99
test eax, eax
jne 0x10002f7a
mov ecx, dword [esp + 0x10]
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 + 0xc], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002ddc
sub ecx, dword [esp + 0xc]
lea eax, [ecx + 1]
movzx ecx, dx
mov dword [esp + 0xc], ecx
add ecx, 0x1d
add ecx, eax
mov dword [esp + 0x20], eax
movzx eax, word [esp + 0x44]
cmp eax, ecx
jb 0x10002f7a
push 0x10
lea eax, [esp + 0x3c]
mov edx, edi
push eax
push esi
mov ecx, ebx
call fcn.10002ce7
test eax, eax
jne 0x10002f7a
push dword [esp + 0xc]
add esi, 0x10
mov edx, edi
push dword [esp + 0x20]
movzx eax, si
mov ecx, ebx
push eax
mov dword [esp + 0x40], eax
call fcn.10002ce7
test eax, eax
jne 0x10002f7a
add esi, dword [ebp + 0x14]
mov edx, edi
push 0xd
push 0x1000117c
movzx eax, si
mov ecx, ebx
push eax
call fcn.10002ce7
test eax, eax
jne 0x10002f7a
push dword [esp + 0x20]
lea eax, [esi + 0xd]
mov edx, edi
push dword [esp + 0x14]
movzx eax, ax
mov ecx, ebx
push eax
call fcn.10002ce7
test eax, eax
jne 0x10002f7a
lea eax, [esp + 0x24]
push eax
xor eax, eax
push eax
push eax
push dword [0x10005470]
push eax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov edi, eax
test edi, edi
je 0x10002f7a
xor esi, esi
inc esi
push 0xffffffffffffffff
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x10002f6a
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x24]
jne 0x10002ed4
mov eax, dword [esp + 0x48]
sub eax, 4
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [esp + 0x14]
test eax, eax
je 0x10002ef9
push dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call dword [0x100060a8]
mov eax, dword [esp + 0x1c]
call eax
mov ecx, dword [esp + 0x50]
jmp 0x10002efe
mov eax, 0x10002
push eax
push ecx
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
test esi, esi
jne 0x10002ea8
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 0x10002f7a
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [esp + 0x20]
mov edx, esi
mov ecx, ebx
call fcn.10002c99
test eax, eax
jne 0x10002f7a
push dword [esp + 0xc]
mov ecx, dword [esp + 0x34]
mov edx, esi
push dword [esp + 0x20]
mov eax, dword [esp + 0x44]
push dword [esp + 0x3c]
mov dword [ecx], eax
mov ecx, ebx
call fcn.10002c99
test eax, eax
jne 0x10002f7a
movzx eax, word [esp + 0x46]
jmp 0x10002f7c
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.10003c76
mov esp, ebp
pop ebp
ret 0x1c