Function at 0x3fe12aee
Capabilities:
Create thread
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x80
cmp dword [0x3fe15144], 0
push ebx
push esi
push edi
je 0x3fe12ce2
mov eax, dword [0x3fe15148]
test eax, eax
je 0x3fe12ce2
mov cx, word [0x3fe1514a]
movzx esi, ax
push 0x10
mov word [ebp - 4], cx
movzx eax, si
lea ecx, [ebp - 0x20]
push ecx
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push dword [ebp + 8]
call fcn.3fe12a4c
test eax, eax
jne 0x3fe12ce2
mov ax, word [ebp + 0x18]
mov edx, dword [ebp + 0x1c]
mov word [ebp - 0x18], ax
mov eax, dword [ebp + 0xc]
mov word [ebp - 0x16], dx
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x3fe12b59
sub eax, ecx
lea edi, [eax + 1]
mov eax, dword [ebp + 0x10]
lea ecx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x3fe12b6b
sub eax, ecx
movzx ecx, word [ebp - 0x14]
lea ebx, [eax + 1]
movzx eax, dx
mov dword [ebp + 0x18], eax
add eax, ebx
lea eax, [eax + edi + 0x10]
cmp ecx, eax
jb 0x3fe12ce2
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.3fe12a9d
test eax, eax
jne 0x3fe12ce2
push dword [ebp + 0x18]
lea eax, [esi + 0x10]
push dword [ebp + 0x14]
movzx esi, ax
mov dword [ebp - 0x10], eax
movzx eax, si
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.3fe12a9d
test eax, eax
jne 0x3fe12ce2
add esi, dword [ebp + 0x1c]
push edi
push dword [ebp + 0xc]
movzx eax, si
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.3fe12a9d
test eax, eax
jne 0x3fe12ce2
push ebx
push dword [ebp + 0x10]
add edi, esi
movzx eax, di
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.3fe12a9d
test eax, eax
jne 0x3fe12ce2
lea eax, [ebp - 0xc]
push eax
xor edi, edi
push edi
push edi
push dword [0x3fe15144]
push edi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov ebx, eax
cmp ebx, edi
je 0x3fe12ce2
xor esi, esi
inc esi
push 0xffffffffffffffff
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForDebugEvent]
test eax, eax
je 0x3fe12cd3
mov eax, dword [ebp - 0x78]
cmp eax, dword [ebp - 0xc]
jne 0x3fe12c56
cmp dword [ebp - 0x80], 4
jne 0x3fe12c56
xor esi, esi
cmp dword [ebp + 0x24], edi
je 0x3fe12c67
push dword [ebp + 0x28]
lea eax, [ebp - 0x80]
push eax
call dword [ebp + 0x24]
jmp 0x3fe12c6c
mov eax, 0x10002
push eax
push dword [ebp - 0x78]
push dword [ebp - 0x7c]
call dword [sym.imp.KERNEL32.dll_ContinueDebugEvent]
cmp esi, edi
jne 0x3fe12c32
push 0xffffffffffffffff
push ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, edi
jne 0x3fe12ce2
push 0x10
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.3fe12a4c
test eax, eax
jne 0x3fe12ce2
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x1c]
push dword [ebp + 0x14]
mov dword [eax], ecx
movzx eax, word [ebp - 0x10]
push eax
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.3fe12a4c
test eax, eax
jne 0x3fe12ce2
movzx eax, word [ebp - 0x12]
jmp 0x3fe12ce4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0x24