Function at 0x10002c5f
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 + 8], eax
mov eax, dword [ebp + 0xc]
mov dword [esp + 0x14], 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 + 0x14], eax
mov eax, dword [ebp + 0x20]
push edi
mov dword [esp + 0x28], eax
je 0x10002eb7
mov eax, dword [0x1000545c]
test eax, eax
je 0x10002eb7
movzx esi, word [0x1000545e]
lea ecx, [esp + 0x38]
push 0x10
movzx edi, ax
mov edx, esi
mov eax, edi
mov dword [esp + 0x30], esi
push ecx
push eax
mov ecx, ebx
mov dword [esp + 0x28], eax
call fcn.10002bd7
test eax, eax
jne 0x10002eb7
mov ecx, dword [esp + 0x14]
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 + 0x10], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10002d06
sub ecx, dword [esp + 0x10]
lea eax, [ecx + 1]
mov dword [esp + 0x10], eax
movzx eax, dx
add eax, 0x1e
add ecx, eax
movzx eax, word [esp + 0x44]
cmp eax, ecx
jb 0x10002eb7
push 0x10
lea eax, [esp + 0x3c]
mov edx, esi
push eax
push edi
mov ecx, ebx
call fcn.10002c1b
test eax, eax
jne 0x10002eb7
mov ecx, dword [ebp + 0x14]
lea eax, [edi + 0x10]
mov dword [esp + 0x34], eax
movzx edi, ax
movzx eax, cx
test eax, eax
je 0x10002d71
push eax
push dword [esp + 0x24]
mov edx, esi
mov ecx, ebx
push edi
call fcn.10002c1b
test eax, eax
jne 0x10002eb7
add edi, dword [ebp + 0x14]
mov edx, esi
push 0xd
push 0x10001174
movzx eax, di
mov ecx, ebx
push eax
call fcn.10002c1b
test eax, eax
jne 0x10002eb7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10002db5
push eax
push dword [esp + 0x18]
lea eax, [edi + 0xd]
mov edx, esi
movzx eax, ax
mov ecx, ebx
push eax
call fcn.10002c1b
test eax, eax
jne 0x10002eb7
lea eax, [esp + 0x24]
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 0x10002eb7
xor esi, esi
inc esi
push 0xffffffffffffffff
lea eax, [esp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x10002ea7
mov ecx, dword [esp + 0x50]
cmp ecx, dword [esp + 0x24]
jne 0x10002e06
mov eax, dword [esp + 0x48]
sub eax, 4
neg eax
sbb eax, eax
and esi, eax
mov eax, dword [esp + 0x18]
test eax, eax
je 0x10002e2b
push dword [esp + 0x28]
lea ecx, [esp + 0x4c]
push ecx
mov ecx, eax
call dword [0x100060a8]
mov eax, dword [esp + 0x20]
call eax
mov ecx, dword [esp + 0x50]
jmp 0x10002e30
mov eax, 0x10002
push eax
push ecx
push dword [esp + 0x54]
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
test esi, esi
jne 0x10002dda
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 0x10002eb7
mov esi, dword [esp + 0x2c]
lea eax, [esp + 0x38]
push 0x10
push eax
push dword [esp + 0x24]
mov edx, esi
mov ecx, ebx
call fcn.10002bd7
test eax, eax
jne 0x10002eb7
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 0x10002ea0
push eax
push dword [esp + 0x24]
mov eax, dword [esp + 0x3c]
mov edx, esi
movzx eax, ax
mov ecx, ebx
push eax
call fcn.10002bd7
test eax, eax
jne 0x10002eb7
movzx eax, word [esp + 0x46]
jmp 0x10002eb9
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.10003ba0
mov esp, ebp
pop ebp
ret 0x1c