Function at 0x140004280
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 [0x140010040]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rdi, qword [0x140010f50]
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 0x140004379
nop
movzx ecx, si
call qword [sym.imp.KERNEL32.dll_GetActiveProcessorCount]
mov r14d, eax
mov ebx, r13d
test eax, eax
je 0x14000436e
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.140008ab3
test eax, eax
jne 0x14000446a
inc ebx
cmp ebx, r14d
jb 0x140004310
inc esi
cmp esi, r15d
jb 0x1400042f0
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.140008ab3
mov rcx, qword [rbp - 0x39]
test eax, eax
cmovne rcx, r13
mov qword [rdi + 0x10], rcx
mov ecx, 0x1000
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rbx, rax
test rax, rax
je 0x14000446a
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.140008ab3
test eax, eax
jne 0x140004451
mov rax, qword [rbx]
and rax, 0xffffffffffff00ff
cmp rax, r14
jne 0x140004451
mov rax, qword [rbx + 0x70]
movabs rcx, 0xfffff80000000003
and rax, rcx
movabs rcx, 0xfffff80000000000
cmp rax, rcx
jne 0x140004451
mov rax, qword [rbx + 0xa0]
movabs rcx, 0xffffff0000000fff
test rcx, rax
je 0x140004499
add rsi, 0x1000
cmp rsi, 0x100000
jb 0x1400043e1
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
xor al, al
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.140008b90
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 qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov r8, qword [rdi + 0x28]
lea rcx, str.KernelCr3__p___p_n
mov rdx, qword [rdi + 8]
call fcn.140003880
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.140008ab3
mov rdx, qword [rbp - 0x29]
lea rcx, str.NtShutdownSystemPa__p__n
test eax, eax
cmovne rdx, r13
mov qword [rdi + 0x20], rdx
call fcn.140003880
cmp qword [rdi + 0x20], r13
je 0x14000446a
mov rdx, qword [rdi + 0x48]
lea rcx, str.PsLookupPeproc__p__n
call fcn.140003880
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 [0x140010fc0], eax
jle 0x140004582
lea rcx, [0x140010fc0]
call fcn.140008c8c
cmp dword [0x140010fc0], 0xffffffff
jne 0x140004582
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, [0x140010fc0]
mov qword [0x140010fa8], rax
call fcn.140008c20
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.140008ab3
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.140008ab3
mov rcx, r12
lea rdx, [rbp - 0x79]
call qword [0x140010fa8]
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.140008ab3
mov r14, qword [rbp - 0x79]
test r14, r14
je 0x14000446a
mov eax, dword [rsi]
cmp dword [0x140010fc8], eax
mov rbx, qword [rdi + 0x60]
jle 0x14000468f
lea rcx, [0x140010fc8]
call fcn.140008c8c
cmp dword [0x140010fc8], 0xffffffff
jne 0x14000468f
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, [0x140010fc8]
mov qword [0x140010fd0], rax
call fcn.140008c20
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.140008ab3
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.140008ab3
mov rax, qword [0x140010fd0]
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.140008ab3
mov eax, dword [rsi]
mov r14, qword [rdi + 0x68]
mov qword [rdi + 0x30], rbx
cmp dword [0x140010fc8], eax
mov rbx, qword [rbp - 0x79]
jle 0x140004799
lea rcx, [0x140010fc8]
call fcn.140008c8c
cmp dword [0x140010fc8], 0xffffffff
jne 0x140004799
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, [0x140010fc8]
mov qword [0x140010fd0], rax
call fcn.140008c20
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.140008ab3
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.140008ab3
mov rax, qword [0x140010fd0]
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.140008ab3
mov r8, qword [rbp - 0x79]
lea rdx, [rdi + 0x18]
add r8, 0x28
mov qword [rdi + 0x38], rbx
mov rcx, rdi
call fcn.140003900
mov eax, dword [rsi]
cmp dword [0x140010fd8], eax
mov rbx, qword [rbp - 0x79]
mov r14, qword [rdi + 0x50]
jle 0x1400048b7
lea rcx, [0x140010fd8]
call fcn.140008c8c
cmp dword [0x140010fd8], 0xffffffff
jne 0x1400048b7
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, [0x140010fd8]
mov qword [0x140010fb8], rax
call fcn.140008c20
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.140008ab3
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.140008ab3
mov rcx, rbx
call qword [0x140010fb8]
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.140008ab3
cmp qword [rdi + 0x10], r13
jne 0x140004b93
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 [0x140010fc0], eax
jle 0x1400049c9
lea rcx, [0x140010fc0]
call fcn.140008c8c
cmp dword [0x140010fc0], 0xffffffff
jne 0x1400049c9
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, [0x140010fc0]
mov qword [0x140010fa8], rax
call fcn.140008c20
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.140008ab3
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.140008ab3
lea rdx, [rbp - 0x79]
mov rcx, rbx
call qword [0x140010fa8]
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.140008ab3
mov r8, qword [rbp - 0x79]
test r8, r8
je 0x14000446a
add r8, 0x28
lea rdx, [rdi + 0x10]
mov rcx, rdi
call fcn.140003900
mov eax, dword [rsi]
cmp dword [0x140010fd8], eax
mov rbx, qword [rbp - 0x79]
mov r14, qword [rdi + 0x50]
jle 0x140004aea
lea rcx, [0x140010fd8]
call fcn.140008c8c
cmp dword [0x140010fd8], 0xffffffff
jne 0x140004aea
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, [0x140010fd8]
mov qword [0x140010fb8], rax
call fcn.140008c20
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.140008ab3
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.140008ab3
mov rcx, rbx
call qword [0x140010fb8]
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.140008ab3
mov al, 1
jmp 0x14000446c