Function at 0x100018bdc
Capabilities:
Create thread

Disassembly:
mov rax, rsp
mov qword [rax + 0x20], r9
mov dword [rax + 0x18], r8d
mov dword [rax + 0x10], edx
mov dword [rax + 8], ecx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x68
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov rsi, r9
mov r12d, r8d
mov r13d, edx
mov r14d, ecx
mov r15d, 0x80004005
mov dword [rax - 0x68], r15d
and qword [rax - 0x58], 0
and qword [rsp + 0x38], 0
and qword [rsp + 0x48], 0
test r9, r9
jne 0x100018c67
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x100018c5d
test byte [rcx + 0x1c], 1
je 0x100018c5d
lea edx, [r9 + 0x6f]
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.100004898
mov eax, 0x80070057
jmp 0x1000190d2
mov ecx, 0x50
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rdi, rax
mov qword [rsp + 0x38], rax
jmp 0x100018ca6
test rdi, rdi
jne 0x100018cf2
mov dword [rsp + 0x30], 0x8007000e
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000190be
test byte [rcx + 0x1c], 1
je 0x1000190be
lea edx, [rdi + 0x70]
mov r9d, 0x8007000e
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
jmp 0x1000190be
xor edx, edx
lea r8d, [rdx + 0x50]
mov rcx, rdi
call sub.msvcrt.dll_memset
mov dword [rdi], r14d
mov dword [rdi + 4], r13d
mov dword [rdi + 8], r12d
mov qword [rdi + 0x10], rsi
and qword [rdi + 0x18], 0
mov r13d, dword [rsp + 0xc8]
mov dword [rdi + 0x20], r13d
and qword [rdi + 0x28], 0
and dword [rdi + 0x30], 0
and qword [rdi + 0x38], 0
and qword [rdi + 0x40], 0
lea r8, [rsp + 0x40]
lea rdx, [0x100018aa8]
mov ecx, 4
call qword [sym.imp.KERNEL32.dll_GetModuleHandleExW]
test eax, eax
jne 0x100018dac
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
test r9d, r9d
cmovns r9d, r15d
mov dword [rsp + 0x30], r9d
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000190b6
test byte [rcx + 0x1c], 1
je 0x1000190b6
mov edx, 0x71
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
jmp 0x1000190b6
mov rax, qword [rsp + 0x40]
mov qword [rdi + 0x40], rax
mov r12, qword [rsp + 0xc0]
test r12, r12
je 0x100018eed
test r13d, r13d
je 0x100018eed
mov eax, 8
mul r13
mov rcx, 0xffffffffffffffff
cmovo rax, rcx
mov rcx, rax
call sub.msvcrt.dll_void____ptr64___cdecl_operator_new_unsigned_long_long_unsigned___int64__
mov rsi, rax
mov qword [rsp + 0x48], rax
jmp 0x100018e14
test rsi, rsi
jne 0x100018e60
mov dword [rsp + 0x30], 0x8007000e
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000190b6
test byte [rcx + 0x1c], 1
je 0x1000190b6
lea edx, [rsi + 0x72]
mov r9d, 0x8007000e
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
jmp 0x1000190b6
mov r8d, r13d
shl r8, 3
xor edx, edx
mov rcx, rsi
call sub.msvcrt.dll_memset
mov qword [rdi + 0x18], rsi
xor r14d, r14d
test r13d, r13d
je 0x100018eed
cmp qword [r12], 0
je 0x100018e9c
lea rdx, [rsi + r14*8]
mov rcx, qword [r12]
call fcn.100017da8
mov r11d, eax
mov dword [rsp + 0x30], eax
test eax, eax
js 0x100018eaa
inc r14d
add r12, 8
cmp r14d, r13d
jae 0x100018eed
jmp 0x100018e7d
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000190b6
test byte [rcx + 0x1c], 1
je 0x1000190b6
mov edx, 0x73
mov dword [rsp + 0x20], r11d
mov r9d, r14d
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.1000108a4
jmp 0x1000190b6
xor r13d, r13d
mov dword [rdi + 0x48], 1
and qword [rsp + 0x28], r13
and dword [rsp + 0x20], r13d
mov r9, rdi
lea r8, [0x100018aa8]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
jne 0x100018f7d
lea r13d, [rax + 1]
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
test r9d, r9d
cmovns r9d, r15d
mov dword [rsp + 0x30], r9d
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000190a3
test byte [rcx + 0x1c], r13b
je 0x1000190a3
lea edx, [rsi + 0x76]
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
jmp 0x1000190a3
call qword [sym.imp.KERNEL32.dll_GetTickCount]
mov edx, 0x2710
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov r12d, eax
call qword [sym.imp.KERNEL32.dll_GetTickCount]
test r12d, r12d
je 0x100019052
cmp r12d, 0x102
je 0x100019014
cmp r12d, 0xffffffff
jne 0x1000190a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
movzx r9d, ax
or r9d, 0x80070000
test eax, eax
cmovle r9d, eax
test r9d, r9d
cmovns r9d, r15d
mov dword [rsp + 0x30], r9d
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000190a3
test byte [rcx + 0x1c], 1
je 0x1000190a3
mov edx, 0x79
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
jmp 0x1000190a3
mov dword [rsp + 0x30], 0x80070102
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000190a3
test byte [rcx + 0x1c], 2
je 0x1000190a3
mov edx, 0x78
mov r9d, 0x80070102
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
jmp 0x1000190a3
lea rdx, [rsp + 0x30]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetExitCodeThread]
mov r9d, dword [rsp + 0x30]
mov ecx, 0x80070507
test eax, eax
cmove r9d, ecx
mov dword [rsp + 0x30], r9d
lea rax, [0x100023120]
mov rcx, qword [0x100023120]
cmp rcx, rax
je 0x1000190a3
test byte [rcx + 0x1c], 8
je 0x1000190a3
mov edx, 0x77
lea r8, [0x100001888]
mov rcx, qword [rcx + 0x10]
call fcn.1000048bc
test rsi, rsi
je 0x1000190b1
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13d, r13d
je 0x1000190ce
mov rcx, rdi
call fcn.100018a24
mov rcx, qword [rsp + 0x40]
test rcx, rcx
je 0x1000190ce
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x30]
add rsp, 0x68
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
ret