Function at 0x10003890
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x1c
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
lea eax, [ebp - 0x18]
mov dword [ebp - 0x14], 0x10004dd0
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x100247a4
call fcn.10005c78
add esp, 4
test eax, eax
jne 0x10003b3f
cmp dword [0x100247d0], 0x7fffffff
je 0x10003b46
mov dword [0x10024770], 0xffffffff
mov dword [0x10024774], 0xffffffff
mov eax, 0xffffffff
jmp 0x10003905
mov eax, dword [0x10024770]
cmp eax, 0xffffffff
jne 0x100039c3
mov dword [ebp - 0x10], 0
sub esp, 0x1c
movaps xmm0, xmmword [0x1001de30]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
mov dword [esp], str..pipem2_debug_console
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x10024770], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x10003900
cmp eax, 2
jne 0x10003b1c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10003900
mov dword [ebp - 0x10], 0
sub esp, 0x1c
movaps xmm0, xmmword [0x1001de20]
movups xmmword [esp + 4], xmm0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x40000000
mov dword [esp], str..pipem2_debug_execute
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x10024774], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x100039c3
cmp eax, 2
jne 0x10003b1c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [0x10024774], 0xffffffff
je 0x10003970
cmp dword [0x1002480c], 0
jne 0x10003b3a
cmp dword [0x10024814], 0
jne 0x10003b3a
mov dword [ebp - 0x10], 0
push 4
call fcn.10004ec0
add esp, 4
mov dword [eax], 0x10002f60
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x10], 2
push ecx
push 0
mov dword [ebp - 0x28], eax
push eax
push 0x10004b30
push 0
push 0
call fcn.10009b85
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10003b57
cmp dword [0x1002480c], 0
jne 0x10003b3a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [0x1002480c], ecx
mov dword [0x10024808], eax
mov dword [ebp - 0x10], 0
push 4
call fcn.10004ec0
add esp, 4
mov ecx, eax
mov dword [eax], 0x100033f0
mov dword [ebp - 0x10], 1
lea eax, [ebp - 0x20]
push eax
push 0
mov dword [ebp - 0x28], ecx
push ecx
push 0x10004b30
push 0
push 0
call fcn.10009b85
add esp, 0x18
mov dword [ebp - 0x24], eax
test eax, eax
je 0x10003b68
cmp dword [0x10024814], 0
jne 0x10003b3a
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov dword [0x10024814], ecx
mov dword [0x10024810], eax
mov eax, dword [0x1002480c]
test eax, eax
je 0x10003b79
push eax
push dword [0x10024808]
call fcn.10005dd3
add esp, 8
test eax, eax
jne 0x10003b8a
mov dword [0x10024808], 0
mov dword [0x1002480c], 0
mov eax, dword [0x10024814]
test eax, eax
je 0x10003b9b
push eax
push dword [0x10024810]
call fcn.10005dd3
add esp, 8
test eax, eax
jne 0x10003bac
mov dword [0x10024810], 0
mov dword [0x10024814], 0
push 0x100247a4
call fcn.10005c89
add esp, 4
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.1000b0fb
push 5
call fcn.10005635
mov dword [0x100247d0], 0x7ffffffe
push 6
call fcn.10005635
mov dword [ebp - 0x20], 0
push 6
call fcn.10005635
add esp, 4
mov dword [ebp - 0x20], 0
push 6
call fcn.10005635
add esp, 4
mov dword [ebp - 0x10], 0
push 1
call fcn.10005635
add esp, 4
mov dword [ebp - 0x10], 0
push 1
call fcn.10005635
add esp, 4
mov dword [ebp - 0x10], 0
push 1
call fcn.10005635
add esp, 4
mov dword [ebp - 0x10], 0
push 1
call fcn.10005635
add esp, 4
add ebp, 0xc
jmp 0x10003b29