Function at 0x140028540
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 [0x14003f010]
xor rax, rsp
mov qword [rbp + 0x70], rax
mov r15d, r8d
mov r14, rdx
mov r12, rcx
mov esi, 4
mov rax, qword gs:[0x58]
add rsi, qword [rax]
mov eax, dword [rsi]
cmp dword [0x140040010], eax
jle 0x1400285bd
lea rcx, [0x140040010]
call fcn.14002a358
cmp dword [0x140040010], 0xffffffff
jne 0x1400285bd
call fcn.140026180
mov qword [0x140040000], rax
lea rcx, [0x140040010]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14004002c], eax
jle 0x1400285f4
lea rcx, [0x14004002c]
call fcn.14002a358
cmp dword [0x14004002c], 0xffffffff
jne 0x1400285f4
call fcn.1400266f0
mov qword [0x14003fff0], rax
lea rcx, [0x14004002c]
call fcn.14002a2f8
cmp qword [0x140040000], 0
je 0x14002903a
cmp qword [0x14003fff0], 0
je 0x14002903a
mov eax, dword [rsi]
cmp dword [0x14003fd20], eax
jle 0x14002864e
lea rcx, [0x14003fd20]
call fcn.14002a358
cmp dword [0x14003fd20], 0xffffffff
jne 0x14002864e
lea rdx, str.ExAcquireResourceExclusiveLite
call fcn.140025ce0
mov qword [0x14003ff08], rax
lea rcx, [0x14003fd20]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14003fd30], eax
jle 0x14002868c
lea rcx, [0x14003fd30]
call fcn.14002a358
cmp dword [0x14003fd30], 0xffffffff
jne 0x14002868c
lea rdx, str.RtlLookupElementGenericTableAvl
call fcn.140025ce0
mov qword [0x14003fe88], rax
lea rcx, [0x14003fd30]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14003fd48], eax
jle 0x1400286ca
lea rcx, [0x14003fd48]
call fcn.14002a358
cmp dword [0x14003fd48], 0xffffffff
jne 0x1400286ca
lea rdx, str.ExReleaseResourceLite
call fcn.140025ce0
mov qword [0x14003ffc8], rax
lea rcx, [0x14003fd48]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14003ffc0], eax
jle 0x140028708
lea rcx, [0x14003ffc0]
call fcn.14002a358
cmp dword [0x14003ffc0], 0xffffffff
jne 0x140028708
lea rdx, str.RtlDeleteElementGenericTableAvl
call fcn.140025ce0
mov qword [0x14003fd50], rax
lea rcx, [0x14003ffc0]
call fcn.14002a2f8
cmp qword [0x14003ff08], 0
je 0x14002903a
cmp qword [0x14003fe88], 0
je 0x14002903a
cmp qword [0x14003ffc8], 0
je 0x14002903a
mov rbx, qword [r14 + 0x10]
cmp qword [r14 + 0x18], 0x10
jb 0x140028745
mov rdi, qword [r14]
add rbx, rdi
jmp 0x14002874b
add rbx, r14
mov rdi, r14
xor r14d, r14d
mov qword [rbp + 0x18], r14
mov ecx, r14d
mov qword [rbp + 0x28], rcx
mov r8d, 7
mov qword [rbp + 0x30], r8
mov word [rbp + 0x18], r14w
mov rdx, rbx
sub rdx, rdi
cmp rdx, r8
jbe 0x140028787
lea rcx, [rbp + 0x18]
call fcn.140029310
mov ecx, r14d
mov qword [rbp + 0x28], rcx
mov r8, qword [rbp + 0x30]
lea rax, [rbp + 0x18]
mov qword [rsp + 0x30], rax
cmp rdi, rbx
je 0x1400287db
movsx r9d, byte [rdi]
cmp rcx, r8
jae 0x1400287c0
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], r14w
jmp 0x1400287c9
lea rcx, [rbp + 0x18]
call fcn.140029480
inc rdi
mov r8, qword [rbp + 0x30]
cmp rdi, rbx
je 0x1400287db
mov rcx, qword [rbp + 0x28]
jmp 0x140028795
mov dword [rbp + 0x58], r15d
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 [0x140040000]
mov rdi, qword [0x14003ff08]
mov eax, dword [rsi]
cmp dword [0x14003fe38], eax
jle 0x140028853
lea rcx, [0x14003fe38]
call fcn.14002a358
cmp dword [0x14003fe38], 0xffffffff
jne 0x140028853
lea rcx, [0x14002cbd8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe50], rax
lea rcx, [0x14003fe38]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14003fdc8], eax
jle 0x14002889c
lea rcx, [0x14003fdc8]
call fcn.14002a358
cmp dword [0x14003fdc8], 0xffffffff
jne 0x14002889c
mov edx, 2
lea rcx, [0x14003fde0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14002bb40]
call fcn.14002a17c
lea rcx, [0x14003fdc8]
call fcn.14002a2f8
lea rcx, [0x14003fde0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400288b6
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 [0x14003fc08]
mov r8d, 0xe
lea rdx, [rbp - 0x80]
call fcn.140005b30
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x30]
call fcn.140005cd0
mov rax, qword [0x14003fe50]
mov dl, 1
mov rcx, rbx
call rax
movzx ebx, al
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rbp - 0x80]
call fcn.140005cd0
lea rcx, [0x14003fde0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test bl, bl
je 0x140028ff0
mov rbx, qword [0x14003fff0]
mov rdi, qword [0x14003fe88]
mov eax, dword [rsi]
cmp dword [0x14003ff00], eax
jle 0x140028990
lea rcx, [0x14003ff00]
call fcn.14002a358
cmp dword [0x14003ff00], 0xffffffff
jne 0x140028990
lea rcx, [0x14002cbd8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe78], rax
lea rcx, [0x14003ff00]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14003fd58], eax
jle 0x1400289d9
lea rcx, [0x14003fd58]
call fcn.14002a358
cmp dword [0x14003fd58], 0xffffffff
jne 0x1400289d9
mov edx, 2
lea rcx, [0x14003ff70]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14002bb30]
call fcn.14002a17c
lea rcx, [0x14003fd58]
call fcn.14002a2f8
lea rcx, [0x14003ff70]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1400289f3
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 [0x14003fc08]
mov r8d, 0xe
lea rdx, [rbp - 0x70]
call fcn.140005b30
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x40]
call fcn.140005cd0
mov rax, qword [0x14003fe78]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rbp - 0x70]
call fcn.140005cd0
lea rcx, [0x14003ff70]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
je 0x140028ec1
mov r9d, 0x38
mov r8, rbx
lea rdx, [rbp - 0x20]
mov rcx, r12
call fcn.1400274d0
test al, al
jne 0x140028aa1
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, r12
call fcn.1400274d0
test al, al
jne 0x140028ac2
xorps xmm0, xmm0
movups xmmword [rbp - 0x30], xmm0
mov r9d, 0x10
mov r8, qword [rbp - 0x18]
lea rdx, [rbp - 0x40]
mov rcx, r12
call fcn.1400274d0
mov rdx, qword [rbp - 0x38]
test al, al
cmove rdx, r14
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, r12
call fcn.140027bf0
mov r9d, 0x10
lea r8, [rbp - 0x30]
mov rdx, qword [rbp - 0x20]
mov rcx, r12
call fcn.140027bf0
mov rdi, qword [0x14003fff0]
mov r14, qword [0x14003fd50]
mov eax, dword [rsi]
cmp dword [0x14003fdc0], eax
jle 0x140028b7b
lea rcx, [0x14003fdc0]
call fcn.14002a358
cmp dword [0x14003fdc0], 0xffffffff
jne 0x140028b7b
lea rcx, [0x14002cbd8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe90], rax
lea rcx, [0x14003fdc0]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x140040014], eax
jle 0x140028bc4
lea rcx, [0x140040014]
call fcn.14002a358
cmp dword [0x140040014], 0xffffffff
jne 0x140028bc4
mov edx, 2
lea rcx, [0x14003ff10]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14002bb20]
call fcn.14002a17c
lea rcx, [0x140040014]
call fcn.14002a2f8
lea rcx, [0x14003ff10]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140028bde
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 [0x14003fc08]
mov r8d, 0xe
lea rdx, [rbp - 0x60]
call fcn.140005b30
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x50]
call fcn.140005cd0
mov rdx, rbx
mov rcx, rdi
call qword [0x14003fe90]
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rbp - 0x60]
call fcn.140005cd0
lea rcx, [0x14003ff10]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rbx, qword [0x14003fff0]
mov rdi, qword [0x14003fe88]
mov eax, dword [rsi]
cmp dword [0x14003ff00], eax
jle 0x140028cab
lea rcx, [0x14003ff00]
call fcn.14002a358
cmp dword [0x14003ff00], 0xffffffff
jne 0x140028cab
lea rcx, [0x14002cbd8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe78], rax
lea rcx, [0x14003ff00]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14003fd58], eax
jle 0x140028cf4
lea rcx, [0x14003fd58]
call fcn.14002a358
cmp dword [0x14003fd58], 0xffffffff
jne 0x140028cf4
mov edx, 2
lea rcx, [0x14003ff70]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14002bb30]
call fcn.14002a17c
lea rcx, [0x14003fd58]
call fcn.14002a2f8
lea rcx, [0x14003ff70]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140028d0e
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 [0x14003fc08]
mov r8d, 0xe
lea rdx, [rbp - 0x50]
call fcn.140005b30
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x60]
call fcn.140005cd0
mov rax, qword [0x14003fe78]
lea rdx, [rbp + 0x38]
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rbp - 0x50]
call fcn.140005cd0
lea rcx, [0x14003ff70]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov rdi, qword [0x140040000]
mov r14, qword [0x14003ffc8]
mov r8d, dword [rsi]
cmp dword [0x14003fe34], r8d
jle 0x140028de4
lea rcx, [0x14003fe34]
call fcn.14002a358
cmp dword [0x14003fe34], 0xffffffff
jne 0x140028de4
lea rcx, [0x14002cbd8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe40], rax
lea rcx, [0x14003fe34]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14003fe84], eax
jle 0x140028e2d
lea rcx, [0x14003fe84]
call fcn.14002a358
cmp dword [0x14003fe84], 0xffffffff
jne 0x140028e2d
mov edx, 2
lea rcx, [0x14003fea0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14002bb10]
call fcn.14002a17c
lea rcx, [0x14003fe84]
call fcn.14002a2f8
lea rcx, [0x14003fea0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140028e47
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 [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x70]
call fcn.140005b30
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x20]
call fcn.140005cd0
mov rcx, rdi
call qword [0x14003fe40]
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x70]
call fcn.140005cd0
lea rcx, [0x14003fea0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
test rbx, rbx
sete bl
jmp 0x140028ff2
mov rbx, qword [0x140040000]
mov rdi, qword [0x14003ffc8]
mov eax, dword [rsi]
cmp dword [0x14003fe34], eax
jle 0x140028f1e
lea rcx, [0x14003fe34]
call fcn.14002a358
cmp dword [0x14003fe34], 0xffffffff
jne 0x140028f1e
lea rcx, [0x14002cbd8]
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
lea rdx, str.NtShutdownSystem
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x14003fe40], rax
lea rcx, [0x14003fe34]
call fcn.14002a2f8
mov eax, dword [rsi]
cmp dword [0x14003fe84], eax
jle 0x140028f67
lea rcx, [0x14003fe84]
call fcn.14002a358
cmp dword [0x14003fe84], 0xffffffff
jne 0x140028f67
mov edx, 2
lea rcx, [0x14003fea0]
call qword [sym.imp.MSVCP140.dll__Mtx_init_in_situ]
lea rcx, [0x14002bb10]
call fcn.14002a17c
lea rcx, [0x14003fe84]
call fcn.14002a2f8
lea rcx, [0x14003fea0]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x140028f81
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 [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x70]
call fcn.140005b30
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x20]
call fcn.140005cd0
mov rcx, rbx
call qword [0x14003fe40]
mov rcx, qword [0x14003fc08]
mov r8d, 0xe
lea rdx, [rsp + 0x70]
call fcn.140005cd0
lea rcx, [0x14003fea0]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
xor bl, bl
mov rdx, qword [rbp + 0x30]
cmp rdx, 8
jb 0x140029035
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x18]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140029030
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140029030
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140029f00
movzx eax, bl
jmp 0x14002903c
xor al, al
mov rcx, qword [rbp + 0x70]
xor rcx, rsp
call fcn.140029ee0
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