Function at 0x140018a60
Capabilities:
Create thread
Get system information on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0xb0
mov r12, r9
mov r13, r8
mov r15, rdx
mov rbp, rcx
lea rdi, [rcx + 8]
mov rax, qword [rdi]
test rax, rax
je 0x140018aa7
xor ebx, ebx
cmp dword [rax + 0x30], 3
setae bl
mov eax, ebx
jmp 0x140018dc9
mov ecx, 0x58
call fcn.1400543c0
mov rsi, rax
test rax, rax
je 0x140018aea
xor eax, eax
mov qword [rsi + 0x50], rax
xor ebx, ebx
mov qword [rsi], rbx
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], rbx
mov qword [rsi + 0x18], rbx
mov qword [rsi + 0x20], rbx
mov qword [rsi + 0x28], rbx
mov qword [rsi + 0x30], rbx
mov qword [rsi + 0x38], rbx
mov qword [rsi + 0x40], rbx
mov qword [rsi + 0x48], rbx
jmp 0x140018aee
xor ebx, ebx
mov esi, ebx
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x38], xmm0
mov qword [rsp + 0xe0], rsi
mov ecx, 0x18
call fcn.1400543c0
mov r14, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x140018b3a
xorps xmm0, xmm0
movups xmmword [rax], xmm0
mov dword [rax + 8], 1
mov dword [rax + 0xc], 1
lea rax, vtable.std::_Ref_count_struct_PivThreadPool::THREADPOOL_INFO_.0
mov qword [r14], rax
mov qword [r14 + 0x10], rsi
jmp 0x140018b3d
mov r14, rbx
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], r14
mov qword [rsp + 0xe0], rbx
mov edx, 0x58
xor ecx, ecx
call fcn.14000d800
nop
mov rax, qword [rdi]
mov qword [rsp + 0x38], rax
mov qword [rdi], rsi
mov rsi, qword [rdi + 8]
mov qword [rsp + 0x40], rsi
mov qword [rdi + 8], r14
test rsi, rsi
je 0x140018ba8
mov eax, 0xffffffff
lock xadd dword [rsi + 8], eax
cmp eax, 1
jne 0x140018ba8
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax]
mov eax, 0xffffffff
lock xadd dword [rsi + 0xc], eax
cmp eax, 1
jne 0x140018ba8
mov rax, qword [rsi]
mov rcx, rsi
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov rcx, qword [rdi]
test rcx, rcx
je 0x140018c2b
mov eax, 2
xchg dword [rcx + 0x30], eax
cmp qword [rbp + 0x20], 0
je 0x140018bd0
nop
xor edx, edx
mov rcx, qword [rbp + 0x20]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140018bc0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventW]
mov rdx, qword [rdi]
xchg qword [rdx + 0x10], rax
mov rax, qword [rdi]
cmp qword [rax + 0x10], 0
je 0x140018c23
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rdx - 1]
call qword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov rcx, qword [rdi]
mov qword [rcx], rax
mov rcx, qword [rdi]
cmp qword [rcx], 0
jne 0x140018c32
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi]
xchg qword [rax + 0x10], rbx
mov rcx, rdi
call fcn.1400189e0
xor eax, eax
jmp 0x140018dc9
cmp dword [rbp + 0x18], 0
ja 0x140018c50
lea rcx, [rsp + 0x78]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [rsp + 0x98]
mov dword [rbp + 0x18], eax
mov rcx, qword [rdi]
mov eax, dword [r15]
test eax, eax
jg 0x140018c5c
mov eax, dword [rbp + 0x18]
inc eax
mov dword [rcx + 0x38], eax
mov rcx, qword [rdi]
mov eax, dword [r12]
mov dword [rcx + 0x44], eax
mov r14d, ebx
movsxd rcx, dword [r13]
mov rax, qword [rdi]
mov qword [rax + 8], rcx
mov ebp, ebx
mov rcx, qword [rdi]
cmp dword [rcx + 0x38], 0
jbe 0x140018cd2
mov qword [rsp + 0x28], rbx
mov dword [rsp + 0x20], ebx
mov r9, rdi
lea r8, [0x140018770]
mov rdx, qword [rcx + 8]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rsi, rax
test rax, rax
je 0x140018cc8
mov rcx, qword [rdi]
mov edx, dword [rcx + 0x44]
test edx, edx
je 0x140018cbc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc r14d
inc ebp
mov rcx, qword [rdi]
cmp ebp, dword [rcx + 0x38]
jb 0x140018c82
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140018d81
nop dword [rax]
mov rax, qword [rdi]
cmp dword [rax + 0x34], r14d
jae 0x140018d81
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x140018d67
cmp dword [rsp + 0x50], 0x12
je 0x140018d67
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_GetMessageW]
test eax, eax
jle 0x140018d67
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_DispatchMessageW]
mov dword [rsp + 0x20], ebx
xor r9d, r9d
xor r8d, r8d
xor edx, edx
lea rcx, [rsp + 0x48]
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x140018d18
mov rcx, qword [rdi]
mov edx, 0x32
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x140018cf0
mov rcx, qword [rdi]
mov rcx, qword [rcx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi]
mov rax, rbx
xchg qword [rcx + 0x10], rax
mov rdx, qword [rdi]
cmp dword [rdx + 0x34], 0
jne 0x140018dbc
mov rcx, qword [rdx]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi]
xchg dword [rax + 0x30], ebx
mov rcx, rdi
call fcn.1400189e0
xor eax, eax
jmp 0x140018dc9
mov ecx, 3
xchg dword [rdx + 0x30], ecx
mov eax, 1
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x38]
mov rbp, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rdi
ret