Function at 0x14003aac0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x80]
sub rsp, 0x180
mov rax, qword [0x140092010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r14d, r8d
mov rdi, rdx
mov r15, rcx
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x1400932f8], eax
jle 0x14003ab3d
lea rcx, [0x1400932f8]
call fcn.140072668
cmp dword [0x1400932f8], 0xffffffff
jne 0x14003ab3d
call fcn.140038700
mov qword [0x1400932e0], rax
lea rcx, [0x1400932f8]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x14009330c], eax
jle 0x14003ab74
lea rcx, [0x14009330c]
call fcn.140072668
cmp dword [0x14009330c], 0xffffffff
jne 0x14003ab74
call fcn.140038c70
mov qword [0x1400932d0], rax
lea rcx, [0x14009330c]
call fcn.140072608
cmp qword [0x1400932e0], 0
je 0x14003b5c5
cmp qword [0x1400932d0], 0
je 0x14003b5c5
mov eax, dword [rsi]
cmp dword [0x140092fe0], eax
jle 0x14003abce
lea rcx, [0x140092fe0]
call fcn.140072668
cmp dword [0x140092fe0], 0xffffffff
jne 0x14003abce
lea rdx, str.ExAcquireResourceExclusiveLite
call fcn.140038260
mov qword [0x1400931d8], rax
lea rcx, [0x140092fe0]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x140092fe4], eax
jle 0x14003ac0c
lea rcx, [0x140092fe4]
call fcn.140072668
cmp dword [0x140092fe4], 0xffffffff
jne 0x14003ac0c
lea rdx, str.RtlLookupElementGenericTableAvl
call fcn.140038260
mov qword [0x140093160], rax
lea rcx, [0x140092fe4]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x140092ff4], eax
jle 0x14003ac4a
lea rcx, [0x140092ff4]
call fcn.140072668
cmp dword [0x140092ff4], 0xffffffff
jne 0x14003ac4a
lea rdx, str.ExReleaseResourceLite
call fcn.140038260
mov qword [0x1400932b0], rax
lea rcx, [0x140092ff4]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x1400932a8], eax
jle 0x14003ac88
lea rcx, [0x1400932a8]
call fcn.140072668
cmp dword [0x1400932a8], 0xffffffff
jne 0x14003ac88
lea rdx, str.RtlDeleteElementGenericTableAvl
call fcn.140038260
mov qword [0x140093000], rax
lea rcx, [0x1400932a8]
call fcn.140072608
cmp qword [0x1400931d8], 0
je 0x14003b5c5
cmp qword [0x140093160], 0
je 0x14003b5c5
cmp qword [0x1400932b0], 0
je 0x14003b5c5
mov rcx, rdi
mov rdx, qword [rdi + 0x18]
cmp rdx, 0x10
jb 0x14003acc2
mov rcx, qword [rdi]
mov rbx, qword [rdi + 0x10]
add rbx, rcx
cmp rdx, 0x10
jb 0x14003acd2
mov rdi, qword [rdi]
xor r12d, r12d
mov qword [rbp + 0x18], r12
mov ecx, r12d
mov qword [rbp + 0x28], rcx
mov r8d, 7
mov qword [rbp + 0x30], r8
mov word [rbp + 0x18], r12w
mov rdx, rbx
sub rdx, rdi
cmp rdx, r8
jbe 0x14003ad0e
lea rcx, [rbp + 0x18]
call fcn.14003b890
mov ecx, r12d
mov qword [rbp + 0x28], rcx
mov r8, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x30], rax
cmp rdi, rbx
je 0x14003ad66
nop dword [rax]
movsx r9d, byte [rdi]
cmp rcx, r8
jae 0x14003ad4b
lea rax, [rcx + 1]
mov qword [rbp + 0x28], rax
lea rax, [rbp + 0x18]
cmp r8, 8
cmovae rax, qword [rbp + 0x18]
mov word [rax + rcx*2], r9w
mov word [rax + rcx*2 + 2], r12w
jmp 0x14003ad54
lea rcx, [rbp + 0x18]
call fcn.14003ba00
inc rdi
mov r8, qword [rbp + 0x30]
cmp rdi, rbx
je 0x14003ad66
mov rcx, qword [rbp + 0x28]
jmp 0x14003ad20
mov dword [rbp + 0x58], r14d
lea rdx, [rbp + 0x18]
cmp r8, 8
cmovae rdx, qword [rbp + 0x18]
lea rcx, [rbp + 0x48]
call qword [sym.imp.ntdll.dll_RtlInitUnicodeString]
mov rbx, qword [0x1400932e0]
mov rdi, qword [0x1400931d8]
mov eax, dword [rsi]
cmp dword [0x140093120], eax
jle 0x14003adde
lea rcx, [0x140093120]
call fcn.140072668
cmp dword [0x140093120], 0xffffffff
jne 0x14003adde
lea rcx, [0x140075e30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093138], rax
lea rcx, [0x140093120]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x1400930b8], eax
jle 0x14003ae27
lea rcx, [0x1400930b8]
call fcn.140072668
cmp dword [0x1400930b8], 0xffffffff
jne 0x14003ae27
mov edx, 2
lea rcx, [0x1400930c0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1400747f0]
call fcn.1400729f4
lea rcx, [0x1400930b8]
call fcn.140072608
lea rcx, [0x1400930c0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003ae41
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x30], 0x25ff
mov word [rsp + 0x34], 0
mov qword [rsp + 0x36], rdi
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rbp - 0x80]
call fcn.14002f540
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x30]
call fcn.14002f6e0
mov rax, qword [0x140093138]
mov dl, 1
mov rcx, rbx
call rax
movzx ebx, al
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rbp - 0x80]
call fcn.14002f6e0
lea rcx, [0x1400930c0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test bl, bl
je 0x14003b57b
mov rbx, qword [0x1400932d0]
mov rdi, qword [0x140093160]
mov eax, dword [rsi]
cmp dword [0x1400931d0], eax
jle 0x14003af1b
lea rcx, [0x1400931d0]
call fcn.140072668
cmp dword [0x1400931d0], 0xffffffff
jne 0x14003af1b
lea rcx, [0x140075e30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093140], rax
lea rcx, [0x1400931d0]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x140093008], eax
jle 0x14003af64
lea rcx, [0x140093008]
call fcn.140072668
cmp dword [0x140093008], 0xffffffff
jne 0x14003af64
mov edx, 2
lea rcx, [0x140093240]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1400747e0]
call fcn.1400729f4
lea rcx, [0x140093008]
call fcn.140072608
lea rcx, [0x140093240]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003af7e
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x40], 0x25ff
mov word [rsp + 0x44], 0
mov qword [rsp + 0x46], rdi
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rbp - 0x70]
call fcn.14002f540
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x40]
call fcn.14002f6e0
mov rax, qword [0x140093140]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rbp - 0x70]
call fcn.14002f6e0
lea rcx, [0x140093240]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
je 0x14003b44c
mov r9d, 0x38
mov r8, rbx
lea rdx, [rbp - 0x20]
mov rcx, r15
call fcn.140039a50
test al, al
jne 0x14003b02c
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
mov qword [rbp + 0x10], rax
mov r9d, 0x10
mov r8, qword [rbp - 0x20]
lea rdx, [rbp - 0x30]
mov rcx, r15
call fcn.140039a50
test al, al
jne 0x14003b04d
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov r9d, 0x10
mov r8, qword [rbp - 0x18]
lea rdx, [rbp - 0x40]
mov rcx, r15
call fcn.140039a50
mov rdx, qword [rbp - 0x38]
test al, al
cmove rdx, r12
mov qword [rbp - 0x38], rdx
mov rax, qword [rbp - 0x20]
mov qword [rbp - 0x40], rax
mov rdx, qword [rbp - 0x18]
mov qword [rbp - 0x28], rdx
mov r9d, 0x10
lea r8, [rbp - 0x40]
mov rcx, r15
call fcn.14003a170
mov r9d, 0x10
lea r8, [rbp - 0x30]
mov rdx, qword [rbp - 0x20]
mov rcx, r15
call fcn.14003a170
mov rdi, qword [0x1400932d0]
mov r14, qword [0x140093000]
mov eax, dword [rsi]
cmp dword [0x1400930a0], eax
jle 0x14003b106
lea rcx, [0x1400930a0]
call fcn.140072668
cmp dword [0x1400930a0], 0xffffffff
jne 0x14003b106
lea rcx, [0x140075e30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093170], rax
lea rcx, [0x1400930a0]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x1400932fc], eax
jle 0x14003b14f
lea rcx, [0x1400932fc]
call fcn.140072668
cmp dword [0x1400932fc], 0xffffffff
jne 0x14003b14f
mov edx, 2
lea rcx, [0x1400931e0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1400747d0]
call fcn.1400729f4
lea rcx, [0x1400932fc]
call fcn.140072608
lea rcx, [0x1400931e0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003b169
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x50], 0x25ff
mov word [rsp + 0x54], 0
mov qword [rsp + 0x56], r14
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rbp - 0x60]
call fcn.14002f540
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x50]
call fcn.14002f6e0
mov rdx, rbx
mov rcx, rdi
call qword [0x140093170]
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rbp - 0x60]
call fcn.14002f6e0
lea rcx, [0x1400931e0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [0x1400932d0]
mov rdi, qword [0x140093160]
mov eax, dword [rsi]
cmp dword [0x1400931d0], eax
jle 0x14003b236
lea rcx, [0x1400931d0]
call fcn.140072668
cmp dword [0x1400931d0], 0xffffffff
jne 0x14003b236
lea rcx, [0x140075e30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093140], rax
lea rcx, [0x1400931d0]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x140093008], eax
jle 0x14003b27f
lea rcx, [0x140093008]
call fcn.140072668
cmp dword [0x140093008], 0xffffffff
jne 0x14003b27f
mov edx, 2
lea rcx, [0x140093240]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1400747e0]
call fcn.1400729f4
lea rcx, [0x140093008]
call fcn.140072608
lea rcx, [0x140093240]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003b299
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x60], 0x25ff
mov word [rsp + 0x64], 0
mov qword [rsp + 0x66], rdi
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rbp - 0x50]
call fcn.14002f540
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x60]
call fcn.14002f6e0
mov rax, qword [0x140093140]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rbp - 0x50]
call fcn.14002f6e0
lea rcx, [0x140093240]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rdi, qword [0x1400932e0]
mov r14, qword [0x1400932b0]
mov r8d, dword [rsi]
cmp dword [0x140093118], r8d
jle 0x14003b36f
lea rcx, [0x140093118]
call fcn.140072668
cmp dword [0x140093118], 0xffffffff
jne 0x14003b36f
lea rcx, [0x140075e30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093128], rax
lea rcx, [0x140093118]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x140093158], eax
jle 0x14003b3b8
lea rcx, [0x140093158]
call fcn.140072668
cmp dword [0x140093158], 0xffffffff
jne 0x14003b3b8
mov edx, 2
lea rcx, [0x140093180]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1400747c0]
call fcn.1400729f4
lea rcx, [0x140093158]
call fcn.140072608
lea rcx, [0x140093180]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003b3d2
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x20], 0x25ff
mov word [rsp + 0x24], 0
mov qword [rsp + 0x26], r14
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x70]
call fcn.14002f540
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x20]
call fcn.14002f6e0
mov rcx, rdi
call qword [0x140093128]
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x70]
call fcn.14002f6e0
lea rcx, [0x140093180]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
sete bl
jmp 0x14003b57d
mov rbx, qword [0x1400932e0]
mov rdi, qword [0x1400932b0]
mov eax, dword [rsi]
cmp dword [0x140093118], eax
jle 0x14003b4a9
lea rcx, [0x140093118]
call fcn.140072668
cmp dword [0x140093118], 0xffffffff
jne 0x14003b4a9
lea rcx, [0x140075e30]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x140093128], rax
lea rcx, [0x140093118]
call fcn.140072608
mov eax, dword [rsi]
cmp dword [0x140093158], eax
jle 0x14003b4f2
lea rcx, [0x140093158]
call fcn.140072668
cmp dword [0x140093158], 0xffffffff
jne 0x14003b4f2
mov edx, 2
lea rcx, [0x140093180]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x1400747c0]
call fcn.1400729f4
lea rcx, [0x140093158]
call fcn.140072608
lea rcx, [0x140093180]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x14003b50c
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov dword [rsp + 0x20], 0x25ff
mov word [rsp + 0x24], 0
mov qword [rsp + 0x26], rdi
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x70]
call fcn.14002f540
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x20]
call fcn.14002f6e0
mov rcx, rbx
call qword [0x140093128]
mov rcx, qword [0x140092c48]
mov r8d, 0xe
lea rdx, [rsp + 0x70]
call fcn.14002f6e0
lea rcx, [0x140093180]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
xor bl, bl
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x14003b5c0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14003b5bb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x14003b5bb
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.1400727b4
movzx eax, bl
jmp 0x14003b5c7
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.1400724c0
lea r11, [rsp + 0x180]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret