Function at 0x14001ec3c
Capabilities:
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x80
and qword [rsp + 0x40], 0
mov edi, r8d
mov rbx, rdx
test r9, r9
je 0x14001ec6e
mov rax, qword [r9]
mov qword [rsp + 0x38], rax
jmp 0x14001ec74
and qword [rsp + 0x38], 0
test r9, r9
je 0x14001ec7f
mov rax, qword [r9 + 8]
jmp 0x14001ec81
xor eax, eax
mov rbp, rax
movzx esi, ax
lea rax, [r9 + 0x10]
lea r14, [rsp + 0x40]
shr rbp, 0x10
test r9, r9
cmovne r14, rax
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov r13b, bpl
mov r15d, eax
and r13b, 2
mov eax, 1
add r15, rbx
cmp rbx, 0x4e20
jl 0x14001ecc8
mov cl, al
call fcn.140059ae0
mov eax, 1
test r13b, r13b
je 0x14001ee3b
mov ebx, 0x989680
movzx ebp, bp
mov qword [rsp + 0xd8], 0
and ebp, eax
je 0x14001edbc
lea rcx, [rsp + 0x30]
mov edx, 0x30
call fcn.14005f7a0
mov rcx, qword [rsp + 0x30]
call fcn.1400576cc
mov r12, qword [rsp + 0x30]
movsx rax, r13b
and qword [r12], 0
or rax, 5
lea r8, [0x14005e060]
mov qword [r12 + 0x20], rax
lea rax, [0x14012c9d0]
mov r9, r12
mov qword [rsp + 0x28], rax
mov eax, 0x10000
xor ecx, ecx
mov rdx, rax
mov qword [r12 + 8], r14
mov qword [r12 + 0x10], rsi
mov qword [r12 + 0x18], r15
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rsp + 0xd8], rax
test rax, rax
jne 0x14001ed9f
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
lea rax, [0x14012c9d0]
mov edx, 0x10000
mov qword [rsp + 0x28], rax
lea r8, [0x14005e060]
mov r9, r12
xor ecx, ecx
mov dword [rsp + 0x20], edx
call qword [sym.imp.KERNEL32.DLL_CreateThread]
mov qword [rsp + 0xd8], rax
test rax, rax
je 0x14001edb2
and qword [rsp + 0x30], 0
xor ebp, ebp
lea r14, [rsp + 0xd8]
lea esi, [rbp + 1]
lea rcx, [rsp + 0x30]
call fcn.140057768
and dword [rsp + 0xc8], 0
test ebp, ebp
je 0x14001edce
call qword [sym.imp.KERNEL32.DLL_GetCurrentThreadId]
mov r12, qword [rsp + 0x38]
mov ecx, 0x64
mov edx, 0x3e8
test r13b, r13b
jne 0x14001ee07
test edi, edi
jg 0x14001ee07
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rbx, r15
mov r11d, eax
sub rbx, r11
test ebx, ebx
jle 0x14001ef6d
mov ecx, 0x64
mov edx, 0x3e8
mov al, byte [0x14012a25f]
test al, al
jle 0x14001ef6d
test rbx, rbx
jle 0x14001ef2d
mov r9d, ebx
test ebp, ebp
je 0x14001ee5b
cmp ebx, ecx
mov r8d, ebp
mov rdx, r14
cmovg r9d, ecx
mov ecx, esi
call qword [sym.imp.KERNEL32.DLL_WaitForMultipleObjects]
jmp 0x14001ee7d
test rbx, rbx
jg 0x14001ecd6
test edi, edi
jg 0x14001ecd6
xor ecx, ecx
call qword [sym.imp.KERNEL32.DLL_Sleep]
xor eax, eax
jmp 0x14001efaa
cmp ebx, ecx
mov dword [rsp + 0x20], 0x4ff
cmovg r9d, ecx
cmp ebx, edx
mov ecx, esi
cmovg r9d, edx
xor r8d, r8d
mov rdx, r14
call qword [sym.imp.USER32.DLL_MsgWaitForMultipleObjects]
mov dword [rsp + 0xc8], eax
cmp eax, 0xffffffff
jne 0x14001eea2
test rsi, rsi
jne 0x14001ef5e
lea ecx, [rsi + 1]
call qword [sym.imp.KERNEL32.DLL_Sleep]
mov eax, dword [rsp + 0xc8]
cmp eax, esi
jae 0x14001ef2d
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x14001efa8
lea rdx, [rsp + 0xc8]
call qword [sym.imp.KERNEL32.DLL_GetExitCodeThread]
mov eax, dword [rsp + 0xc8]
jmp 0x14001ef8e
test r13b, r13b
jne 0x14001eef1
test edi, edi
jg 0x14001eef1
call qword [sym.imp.KERNEL32.DLL_GetTickCount]
mov rbx, r15
mov r11d, eax
sub rbx, r11
test ebx, ebx
jle 0x14001ef3b
lea rcx, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov rdx, r12
mov dword [rsp + 0x20], 3
call qword [sym.imp.USER32.DLL_PeekMessageW]
test eax, eax
je 0x14001ef39
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.DLL_TranslateMessage]
lea rcx, [rsp + 0x50]
call qword [sym.imp.USER32.DLL_DispatchMessageW]
test edi, edi
jle 0x14001ef2d
dec edi
mov al, byte [0x14012a25f]
test al, al
jg 0x14001eed5
jmp 0x14001ef3b
xor edi, edi
mov eax, 0x102
mov ecx, 0x64
mov edx, 0x3e8
cmp dword [rsp + 0xc8], eax
jne 0x14001eddd
xor edi, edi
jmp 0x14001eddd
call qword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, 1
test eax, eax
jmp 0x14001ef84
test rsi, rsi
jne 0x14001ef76
xor eax, eax
jmp 0x14001ef87
mov eax, dword [rsp + 0xc8]
mov ecx, 0x102
cmp eax, esi
cmove eax, ecx
mov dword [rsp + 0xc8], eax
mov rcx, qword [rsp + 0xd8]
test rcx, rcx
je 0x14001efa8
call qword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [rsp + 0xc8]
mov eax, eax
mov rbx, qword [rsp + 0xc0]
add rsp, 0x80
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret