Function at 0x140001c70
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x37]
sub rsp, 0xd0
mov rax, qword [0x140029010]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, qword [0x14002ad80]
xorps xmm0, xmm0
movups xmmword [rbp - 0x71], xmm0
mov r12d, edx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
lea rdx, [rbp - 0x71]
call qword [sym.imp.KERNEL32.dll_GetThreadGroupAffinity]
xor r13d, r13d
mov esi, r13d
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorGroupCount]
movzx r15d, ax
test r15d, r15d
je 0x140001d69
nop
movzx ecx, si
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov r14d, eax
mov ebx, r13d
test eax, eax
je 0x140001d5e
nop dword [rax]
nop word [rax + rax]
mov ecx, ebx
xorps xmm0, xmm0
movups xmmword [rbp - 0x11], xmm0
mov edx, 1
mov word [rbp - 9], si
shl rdx, cl
mov qword [rbp - 0x11], rdx
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea rdx, [rbp - 0x11]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
mov rcx, qword [rdi]
lea r8, [rbp - 0x61]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x61], xmm0
mov qword [rbp - 0x41], rax
movups xmmword [rbp - 0x51], xmm0
lea edx, [rax + 5]
call fcn.140003163
test eax, eax
jne 0x140001e58
inc ebx
cmp ebx, r14d
jb 0x140001d00
inc esi
cmp esi, r15d
jb 0x140001ce0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
xor r8d, r8d
lea rdx, [rbp - 0x71]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadGroupAffinity]
mov rcx, qword [rdi]
lea r8, [rbp - 0x39]
xor eax, eax
xorps xmm0, xmm0
movups xmmword [rbp - 0x39], xmm0
mov qword [rbp - 0x19], rax
movups xmmword [rbp - 0x29], xmm0
lea edx, [rax + 9]
call fcn.140003163
mov rcx, qword [rbp - 0x39]
test eax, eax
cmovne rcx, r13
mov qword [rdi + 0x10], rcx
mov ecx, 0x1000
call fcn.14000c0a0
mov rbx, rax
test rax, rax
je 0x140001e58
mov rsi, r13
movabs r14, 0x1000600e9
mov rcx, qword [rdi]
lea r8, [rbp - 0x39]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rsi
mov edx, 6
mov qword [rbp - 0x31], rbx
movups xmmword [rbp - 0x21], xmm0
mov qword [rbp - 0x29], 0x1000
call fcn.140003163
test eax, eax
jne 0x140001e40
mov rax, qword [rbx]
and rax, 0xffffffffffff00ff
cmp rax, r14
jne 0x140001e40
mov rax, qword [rbx + 0x70]
movabs rcx, 0xfffff80000000003
and rax, rcx
movabs rcx, 0xfffff80000000000
cmp rax, rcx
jne 0x140001e40
mov rax, qword [rbx + 0xa0]
movabs rcx, 0xffffff0000000fff
test rcx, rax
je 0x140001e87
add rsi, 0x1000
cmp rsi, 0x100000
jb 0x140001dd0
mov rcx, rbx
call fcn.14000be84
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400033c0
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, rbx
mov qword [rdi + 8], rax
call fcn.14000be84
mov rax, qword [rdi + 8]
lea r8, [rbp - 0x39]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
mov rax, qword [rdi + 0x28]
mov qword [rbp - 0x31], rax
xor eax, eax
movups xmmword [rbp - 0x29], xmm0
mov qword [rbp - 0x19], rax
lea edx, [rax + 0xa]
call fcn.140003163
test eax, eax
je 0x140001ec9
mov qword [rdi + 0x20], r13
jmp 0x140001e58
mov rax, qword [rbp - 0x29]
mov qword [rdi + 0x20], rax
test rax, rax
je 0x140001e58
mov rax, qword gs:[0x58]
mov rbx, qword [rdi + 0x48]
mov esi, 4
mov qword [rbp - 0x79], r13
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x14002adb4], eax
jle 0x140001f3e
lea rcx, [0x14002adb4]
call fcn.1400035a8
cmp dword [0x14002adb4], 0xffffffff
jne 0x140001f3e
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14002adb4]
mov qword [0x14002ada0], rax
call fcn.140003548
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x39]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
mov edx, 6
lea rax, [rbp - 0x11]
mov dword [rbp - 0x71], 0x25ff
mov qword [rbp - 0x31], rax
mov word [rbp - 0x6d], r13w
mov qword [rbp - 0x6b], rbx
mov qword [rbp - 0x29], 0xe
movups xmmword [rbp - 0x21], xmm0
call fcn.140003163
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x39]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
mov edx, 7
lea rax, [rbp - 0x71]
mov qword [rbp - 0x29], 0xe
mov qword [rbp - 0x31], rax
movups xmmword [rbp - 0x21], xmm0
call fcn.140003163
mov rcx, r12
lea rdx, [rbp - 0x79]
call qword [0x14002ada0]
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x39]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
mov edx, 7
lea rax, [rbp - 0x11]
mov qword [rbp - 0x29], 0xe
mov qword [rbp - 0x31], rax
movups xmmword [rbp - 0x21], xmm0
call fcn.140003163
mov r14, qword [rbp - 0x79]
test r14, r14
je 0x140001e58
mov eax, dword [rsi]
cmp dword [0x14002adb0], eax
mov rbx, qword [rdi + 0x60]
jle 0x14000204b
lea rcx, [0x14002adb0]
call fcn.1400035a8
cmp dword [0x14002adb0], 0xffffffff
jne 0x14000204b
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14002adb0]
mov qword [0x14002ada8], rax
call fcn.140003548
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x39]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
mov edx, 6
lea rax, [rbp - 0x11]
mov dword [rbp - 0x71], 0x25ff
mov qword [rbp - 0x31], rax
mov word [rbp - 0x6d], r13w
mov qword [rbp - 0x6b], rbx
mov qword [rbp - 0x29], 0xe
movups xmmword [rbp - 0x21], xmm0
call fcn.140003163
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 1]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 1], rax
mov edx, 7
lea rax, [rbp - 0x71]
mov qword [rbp + 0xf], 0xe
mov qword [rbp + 7], rax
movups xmmword [rbp + 0x17], xmm0
call fcn.140003163
mov rax, qword [0x14002ada8]
mov rcx, r14
call rax
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rbx, rax
mov qword [rbp - 0x61], rcx
mov rcx, qword [rdi]
lea rax, [rbp - 0x11]
xorps xmm0, xmm0
mov qword [rbp - 0x59], rax
mov edx, 7
mov qword [rbp - 0x51], 0xe
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov eax, dword [rsi]
mov r14, qword [rdi + 0x68]
mov qword [rdi + 0x30], rbx
cmp dword [0x14002adb0], eax
mov rbx, qword [rbp - 0x79]
jle 0x140002155
lea rcx, [0x14002adb0]
call fcn.1400035a8
cmp dword [0x14002adb0], 0xffffffff
jne 0x140002155
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14002adb0]
mov qword [0x14002ada8], rax
call fcn.140003548
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 6
lea rax, [rbp - 0x11]
mov dword [rbp - 0x71], 0x25ff
mov qword [rbp - 0x59], rax
mov word [rbp - 0x6d], r13w
mov qword [rbp - 0x6b], r14
mov qword [rbp - 0x51], 0xe
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 1]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 1], rax
mov edx, 7
lea rax, [rbp - 0x71]
mov qword [rbp + 0xf], 0xe
mov qword [rbp + 7], rax
movups xmmword [rbp + 0x17], xmm0
call fcn.140003163
mov rax, qword [0x14002ada8]
mov rcx, rbx
call rax
mov rcx, qword [rdi + 0x20]
lea r8, [rbp - 0x39]
mov rbx, rax
mov qword [rbp - 0x39], rcx
mov rcx, qword [rdi]
lea rax, [rbp - 0x11]
xorps xmm0, xmm0
mov qword [rbp - 0x31], rax
mov edx, 7
mov qword [rbp - 0x29], 0xe
movups xmmword [rbp - 0x21], xmm0
call fcn.140003163
mov r8, qword [rbp - 0x79]
lea rdx, [rdi + 0x18]
add r8, 0x28
mov qword [rdi + 0x38], rbx
mov rcx, rdi
call fcn.1400015d0
mov eax, dword [rsi]
cmp dword [0x14002ad90], eax
mov rbx, qword [rbp - 0x79]
mov r14, qword [rdi + 0x50]
jle 0x140002273
lea rcx, [0x14002ad90]
call fcn.1400035a8
cmp dword [0x14002ad90], 0xffffffff
jne 0x140002273
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14002ad90]
mov qword [0x14002adb8], rax
call fcn.140003548
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 6
lea rax, [rbp - 0x11]
mov dword [rbp - 0x71], 0x25ff
mov qword [rbp - 0x59], rax
mov word [rbp - 0x6d], r13w
mov qword [rbp - 0x6b], r14
mov qword [rbp - 0x51], 0xe
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 7
lea rax, [rbp - 0x71]
mov qword [rbp - 0x51], 0xe
mov qword [rbp - 0x59], rax
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov rcx, rbx
call qword [0x14002adb8]
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 7
lea rax, [rbp - 0x11]
mov qword [rbp - 0x51], 0xe
mov qword [rbp - 0x59], rax
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
cmp qword [rdi + 0x10], r13
jne 0x14000254f
mov qword [rbp - 0x79], r13
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov r14, qword [rdi + 0x48]
mov ebx, eax
mov eax, dword [rsi]
cmp dword [0x14002adb4], eax
jle 0x140002385
lea rcx, [0x14002adb4]
call fcn.1400035a8
cmp dword [0x14002adb4], 0xffffffff
jne 0x140002385
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14002adb4]
mov qword [0x14002ada0], rax
call fcn.140003548
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 6
lea rax, [rbp - 0x11]
mov dword [rbp - 0x71], 0x25ff
mov qword [rbp - 0x59], rax
mov word [rbp - 0x6d], r13w
mov qword [rbp - 0x6b], r14
mov qword [rbp - 0x51], 0xe
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 7
lea rax, [rbp - 0x71]
mov qword [rbp - 0x51], 0xe
mov qword [rbp - 0x59], rax
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
lea rdx, [rbp - 0x79]
mov rcx, rbx
call qword [0x14002ada0]
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 7
lea rax, [rbp - 0x11]
mov qword [rbp - 0x51], 0xe
mov qword [rbp - 0x59], rax
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov r8, qword [rbp - 0x79]
test r8, r8
je 0x140001e58
add r8, 0x28
lea rdx, [rdi + 0x10]
mov rcx, rdi
call fcn.1400015d0
mov eax, dword [rsi]
cmp dword [0x14002ad90], eax
mov rbx, qword [rbp - 0x79]
mov r14, qword [rdi + 0x50]
jle 0x1400024a6
lea rcx, [0x14002ad90]
call fcn.1400035a8
cmp dword [0x14002ad90], 0xffffffff
jne 0x1400024a6
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtShutdownSystem
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rcx, [0x14002ad90]
mov qword [0x14002adb8], rax
call fcn.140003548
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 6
lea rax, [rbp - 0x11]
mov dword [rbp - 0x71], 0x25ff
mov qword [rbp - 0x59], rax
mov word [rbp - 0x6d], r13w
mov qword [rbp - 0x6b], r14
mov qword [rbp - 0x51], 0xe
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 7
lea rax, [rbp - 0x71]
mov qword [rbp - 0x51], 0xe
mov qword [rbp - 0x59], rax
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov rcx, rbx
call qword [0x14002adb8]
mov rax, qword [rdi + 0x20]
lea r8, [rbp - 0x61]
mov rcx, qword [rdi]
xorps xmm0, xmm0
mov qword [rbp - 0x61], rax
mov edx, 7
lea rax, [rbp - 0x11]
mov qword [rbp - 0x51], 0xe
mov qword [rbp - 0x59], rax
movups xmmword [rbp - 0x49], xmm0
call fcn.140003163
mov al, 1
jmp 0x140001e5a