Function at 0x14004f9e0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1b0]
sub rsp, 0x2b0
mov rax, qword [0x1402b5020]
xor rax, rsp
mov qword [rbp + 0x1a0], rax
xorps xmm0, xmm0
mov qword [rsp + 0x38], rcx
xor esi, esi
mov qword [rbp - 0x70], rsi
mov qword [rsp + 0x40], rsi
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
movups xmmword [rbp + 0xd0], xmm0
call sym.SystemInformer.exe_PhGetApplicationDirectoryWin32
mov rbx, rax
lea edx, [rsi + 2]
mov r8d, 0x104
lea rcx, [rbp + 0xe0]
movups xmm0, xmmword [rax]
lea rax, str.temp_drivers_
mov dword [rbp + 0xe0], 1
mov dword [rbp + 0x100], 1
movups xmmword [rbp + 0xf0], xmm0
mov qword [rbp + 0x110], 0x1a
mov qword [rbp + 0x118], rax
call sym.SystemInformer.exe_PhFormat
mov r14, 0xffffffffffffffff
mov qword [rsp + 0x78], rax
mov rdi, rax
lea rcx, [rbx - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004fac5
nop dword [rax + rax]
call fcn.14013d2a0
test rdi, rdi
je 0x14004fad2
mov rcx, rdi
call sym.SystemInformer.exe_PhDeleteDirectoryWin32
lea r8, [rsp + 0x68]
mov qword [rsp + 0x70], rsi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x50], rsi
lea rcx, str.ksidyn.bin
mov rdi, rsi
mov r12, rsi
mov r13, rsi
call fcn.14004f700
mov r15, qword [rsp + 0x70]
mov ebx, eax
test eax, eax
js 0x14004fb54
mov eax, dword [rsp + 0x68]
mov rcx, r15
mov edx, eax
mov dword [rsp + 0x4c], eax
call fcn.14004f860
mov ebx, eax
test eax, eax
js 0x14004fb54
lea r8, [rsp + 0x6c]
lea rdx, [rsp + 0x50]
lea rcx, str.ksidyn.sig
call fcn.14004f700
mov ebx, eax
test eax, eax
js 0x14004fb4f
mov eax, dword [rsp + 0x6c]
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x14004fbcf
mov ebx, 0xe0020004
mov rdi, qword [rsp + 0x50]
test r15, r15
je 0x14004fb6b
mov rcx, qword [0x1402bfe50]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rdi, rdi
je 0x14004fb86
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov dword [rsp + 0x4c], esi
mov r15, rsi
mov dword [rsp + 0x34], esi
cmp ebx, 0xe0020001
jne 0x14004fc6f
mov rcx, qword [rsp + 0x38]
lea rax, str.The_kernel_driver_is_not_yet_supported_on_this_kernel_version._Request_support_by_submitting_a_GitHub_issue_with_the_Windows_Kernel_version.
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, str.Unable_to_load_kernel_driver
xor r8d, r8d
mov edx, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.14004f250
jmp 0x1400506b4
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x70], rsi
mov qword [rsp + 0x50], rsi
call fcn.14004f560
mov qword [rbp - 0x78], rax
test rax, rax
je 0x140050665
call sym.SystemInformer.exe_PhGetApplicationFileNameWin32
mov qword [rbp - 0x70], rax
test rax, rax
je 0x14005064a
lea rdx, [0x1402b6f40]
mov rcx, rax
call fcn.140134400
mov qword [rsp + 0x40], rax
mov rbx, rax
test rax, rax
je 0x14005064a
mov rcx, qword [rax + 8]
call sym.SystemInformer.exe_PhDoesFileExistWin32
test al, al
jne 0x14004fcfd
mov rcx, qword [rsp + 0x38]
lea rax, str.The_kernel_driver_was_not_found.
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, str.Unable_to_load_kernel_driver
xor r8d, r8d
mov edx, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.14004f250
jmp 0x14005064a
mov qword ds:[rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
cmp ebx, 0xc000000f
jne 0x14004fcba
mov rcx, qword [rsp + 0x38]
lea rax, str.The_dynamic_configuration_was_not_found.
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, str.Unable_to_load_kernel_driver
xor r8d, r8d
mov edx, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.14004f250
jmp 0x1400506b4
nop word [rax + rax]
test ebx, ebx
jns 0x14004fbe8
lfence
mov rcx, qword [rsp + 0x38]
lea rax, str.Failed_to_access_the_dynamic_configuration.
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, str.Unable_to_load_kernel_driver
mov r8d, ebx
mov edx, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.14004f250
jmp 0x1400506b4
lea rdi, str.KsiObjectName
mov qword [rbp - 0x68], 0x1a
lea rcx, [rbp - 0x68]
mov qword [rbp - 0x60], rdi
call sym.SystemInformer.exe_PhGetStringRefSetting
mov r15, rax
test rax, rax
je 0x14004fd4a
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x58], 0x1a
mov qword [rbp - 0x50], rdi
call sym.SystemInformer.exe_PhGetStringRefSetting
mov r15, rax
mov qword [rbp - 0x80], rax
cmp qword [rax], rsi
jne 0x14004fe2a
lea r12, str.DriverKSystemInformer
xorps xmm1, xmm1
mov rbx, r12
mov rcx, r12
and rbx, 0xfffffffffffffff1
and ecx, 0xf
je 0x14004fd87
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x48], ecx
je 0x14004fd83
mov ebx, ecx
shr rbx, 1
jmp 0x14004fdc8
add rbx, 0x10
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x48], ecx
jne 0x14004fdba
nop dword [rax]
movdqu xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x48], ecx
je 0x14004fda0
sub rbx, r12
mov eax, ecx
sar rbx, 1
shr rax, 1
add rbx, rax
mov rdx, qword [0x1402bfcf8]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_PhCreateObject
mov r8, rbx
mov rdx, r12
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rbx + rcx], si
mov rcx, qword [rax + 8]
call fcn.1401e3aa0
mov rcx, r15
mov qword [rbp - 0x80], rdi
mov r15, rdi
test rcx, rcx
je 0x14004fe25
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004fe25
nop dword [rax]
call fcn.14013d2a0
mov rbx, qword [rsp + 0x40]
lea rdi, str.KsiPortName
mov qword [rbp - 0x48], 0x16
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x40], rdi
call sym.SystemInformer.exe_PhGetStringRefSetting
mov r12, rax
test rax, rax
je 0x14004fe6d
lea rcx, ds:[rbp - 0x38]
mov qword [rbp - 0x38], 0x16
mov qword [rbp - 0x30], rdi
call sym.SystemInformer.exe_PhGetStringRefSetting
mov r12, rax
cmp qword [rax], rsi
jne 0x14004fe8e
mov rcx, r12
mov r12, rsi
test rcx, rcx
je 0x14004fe8e
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004fe8e
call fcn.14013d2a0
lea rdi, str.KsiAltitude
mov qword [rbp - 0x28], 0x16
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x20], rdi
call sym.SystemInformer.exe_PhGetStringRefSetting
mov r13, rax
test rax, rax
je 0x14004fecf
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x18], 0x16
mov qword [rbp - 0x10], rdi
call sym.SystemInformer.exe_PhGetStringRefSetting
mov r13, rax
cmp qword [rax], rsi
jne 0x14004fef0
mov rcx, r13
mov r13, rsi
test rcx, rcx
je 0x14004fef0
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004fef0
call fcn.14013d2a0
mov rax, qword [rbp - 0x78]
lea rcx, [rbp - 8]
mov qword [rbp + 0xa8], rax
lea rax, str.KsiDisableImageLoadProtection
mov qword [rbp], rax
mov qword [rbp + 0xa0], rbx
mov qword [rbp + 0xb0], r15
mov qword [rbp + 0xb8], r12
mov qword [rbp + 0xc0], r13
mov dword [rbp + 0xc8], esi
mov qword [rbp - 8], 0x3a
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
mov qword [rbp + 8], 0x28
mov eax, dword [rbp + 0xc8]
mov ecx, esi
setne cl
and eax, 0xfffffffe
or eax, ecx
lea rcx, [rbp + 8]
mov dword [rbp + 0xc8], eax
lea rax, str.KsiRandomizedPoolTag
mov qword [rbp + 0x10], rax
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
neg eax
mov qword [rbp + 0x18], 0x28
mov eax, dword [rbp + 0xc8]
sbb ecx, ecx
and eax, 0xfffffffd
and ecx, 2
or eax, ecx
lea rcx, [rbp + 0x18]
mov dword [rbp + 0xc8], eax
lea rax, str.KsiDynDataNoEmbedded
mov qword [rbp + 0x20], rax
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
neg eax
mov eax, dword [rbp + 0xc8]
sbb ecx, ecx
and eax, 0xfffffffb
and ecx, 4
or eax, ecx
lea rcx, [rbp + 0xa0]
mov dword [rbp + 0xc8], eax
lea rax, [0x14004f6a0]
mov qword [rbp + 0xd0], rax
movzx eax, byte [0x1402be9a5]
mov byte [rbp + 0xd8], al
movzx eax, byte [0x1402be9a4]
mov byte [rbp + 0xd9], al
call fcn.14016d120
mov edi, eax
cmp eax, 0xc000000f
jne 0x1400501d0
lea rax, str.KsiPreviousTemporaryDriverFile
mov qword [rbp + 0x28], 0x3c
lea rcx, [rbp + 0x28]
mov qword [rbp + 0x30], rax
call sym.SystemInformer.exe_PhGetStringRefSetting
mov rbx, rax
test rax, rax
je 0x140050068
mov rcx, qword [rax + 8]
call sym.SystemInformer.exe_PhDoesFileExistWin32
test al, al
je 0x140050047
lea rcx, [rbp + 0xa0]
mov qword [rbp + 0xa0], rbx
call fcn.14016d120
mov edi, eax
lea rcx, [rbx - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005005d
call fcn.14013d2a0
nop dword [rax]
test edi, edi
jns 0x14005020a
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x1400501d4
mov rax, qword [0x7ffe0014]
mov edx, 4
movups xmm0, xmmword [rcx]
lea rcx, str.SystemInformer
mov dword [rbp + 0x120], 1
mov qword [rbp + 0x158], rcx
mov r8d, 0x104
movups xmmword [rbp + 0x130], xmm0
lea rcx, [rbp + 0x120]
movups xmm0, xmmword [0x1402b6f40]
mov r15, rsi
mov dword [rbp + 0x140], 1
mov qword [rbp + 0x150], 0x1c
movups xmmword [rbp + 0x190], xmm0
mov dword [rbp + 0x160], 0x109
mov qword [rbp + 0x170], rax
mov byte [rbp + 0x16a], 0x10
mov dword [rbp + 0x180], 1
call sym.SystemInformer.exe_PhFormat
mov rcx, qword [rsp + 0x78]
mov rbx, rax
call sym.SystemInformer.exe_PhCreateDirectoryWin32
mov edi, eax
test eax, eax
js 0x140050139
test rbx, rbx
je 0x14005011d
mov rdx, qword [rbx + 8]
jmp 0x140050120
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
call fcn.140162f60
mov edi, eax
test eax, eax
js 0x140050139
mov r15, rbx
jmp 0x14005015c
test rbx, rbx
je 0x140050154
lea rcx, [rbx - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140050154
call fcn.14013d2a0
test edi, edi
js 0x1400501d4
nop dword [rax]
test r15, r15
je 0x140050169
mov rsi, qword [r15 + 8]
lea rax, str.KsiPreviousTemporaryDriverFile
mov qword [rbp + 0x48], 0x3c
mov qword [rbp + 0x50], rax
mov rax, r14
nop
inc rax
cmp word [rsi + rax*2], 0
jne 0x140050180
add rax, rax
mov qword [rbp + 0x40], rsi
lea rdx, [rbp + 0x38]
mov qword [rbp + 0x38], rax
lea rcx, [rbp + 0x48]
call sym.SystemInformer.exe_PhSetStringRefSetting
lea rcx, [rbp + 0xa0]
mov qword [rbp + 0xa0], r15
call fcn.14016d120
mov edi, eax
lea rcx, [r15 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400501d0
call fcn.14013d2a0
test edi, edi
jns 0x14005020a
lfence
mov rcx, qword [rsp + 0x38]
lea rax, str.Unable_to_load_the_kernel_driver_service.
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, str.Unable_to_load_kernel_driver
mov r8d, edi
mov edx, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.14004f250
jmp 0x1400505ea
lea rcx, [0x1402c3430]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rsi, rax
test rax, rax
je 0x140050228
lock dec dword [0x1402c3440]
jmp 0x140050249
mov r8, qword [0x1402c3448]
mov edx, 4
mov rcx, qword [0x1402bfe50]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
lea rcx, [rsi + 0x12]
xor edx, edx
mov r8d, 0x15a
call fcn.1401dff50
mov ecx, 0x7ffe0014
mov dword [rsi + 0x10], 0x15c0003
mov dword [rsi + 0x14], 0x22
mov r15d, 0x7ffe0018
lea edx, [rcx + 8]
nop word [rax + rax]
mov eax, dword [r15]
mov dword [rsi + 0x1c], eax
mov eax, dword [rcx]
mov dword [rsi + 0x18], eax
mov eax, dword [rdx]
cmp dword [rsi + 0x1c], eax
jne 0x140050280
mov rax, qword [rsp + 0x58]
lea rcx, [rsi + 0x10]
mov qword [rsi + 0x28], rax
mov eax, dword [rsp + 0x4c]
mov dword [rsi + 0x30], eax
mov rax, qword [rsp + 0x60]
mov qword [rsi + 0x38], rax
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0x40], eax
call fcn.14018ea80
mov eax, dword [0x1402c3444]
cmp dword [0x1402c3440], eax
jae 0x1400502e2
mov rdx, rsi
lea rcx, [0x1402c3430]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c3440]
jmp 0x1400502f4
mov rcx, qword [0x1402bfe50]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, r14
call fcn.14016eb20
mov dword [0x1402c2f94], eax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 0x60]
cmp byte [rdx + 2], 0
jne 0x1400503bd
nop dword [rax]
cmp eax, 5
je 0x1400503c9
cmp eax, 4
jne 0x140050353
test dword [0x1402bec70], 0x2000
jne 0x140050380
lea rax, str.__kx
mov qword [rbp + 0x58], 8
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x58]
jmp 0x140050379
jge 0x140050380
test dword [0x1402bec70], 0x3000
nop
jne 0x140050380
lea rax, str.__kh
mov qword [rbp + 0x68], 8
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x68]
call fcn.14004f2c0
mov edi, eax
test edi, edi
jns 0x1400505ea
lfence
mov rcx, qword [rsp + 0x38]
lea rax, str.Unable_to_restart.
mov qword [rsp + 0x28], rax
xor r9d, r9d
lea rax, str.Unable_to_load_kernel_driver
mov r8d, edi
mov edx, 0xfffe
mov qword [rsp + 0x20], rax
call fcn.14004f250
jmp 0x1400505ea
nop dword [rax]
cmp eax, 5
jne 0x1400505ea
lea rax, str.KsiEnableUnloadProtection
mov qword [rbp + 0x78], 0x32
lea rcx, [rbp + 0x78]
mov qword [rbp + 0x80], rax
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
test eax, eax
je 0x1400504b4
lea rcx, [0x1402c3430]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14005040e
lock dec dword [0x1402c3440]
jmp 0x14005042e
mov r8, qword [0x1402c3448]
mov edx, 4
mov rcx, qword [0x1402bfe50]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
lea rcx, [rdi + 0x12]
xor edx, edx
mov r8d, 0x15a
call fcn.1401dff50
mov ecx, 0x7ffe0014
mov dword [rdi + 0x10], 0x15c0003
mov dword [rdi + 0x14], 0x1f
lea edx, [rcx + 8]
nop word [rax + rax]
mov eax, dword [r15]
mov dword [rdi + 0x1c], eax
mov eax, dword [rcx]
mov dword [rdi + 0x18], eax
mov eax, dword [rdx]
cmp dword [rdi + 0x1c], eax
jne 0x140050460
lea rcx, [rdi + 0x10]
call fcn.14018ea80
mov eax, dword [0x1402c3444]
cmp dword [0x1402c3440], eax
jae 0x1400504a2
mov rdx, rdi
lea rcx, [0x1402c3430]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c3440]
jmp 0x1400504b4
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rax, str.KsiClientProcessProtectionLevel
mov qword [rbp + 0x88], 0x3e
lea rcx, [rbp + 0x88]
mov qword [rbp + 0x90], rax
call sym.SystemInformer.exe_PhGetIntegerStringRefSetting
sub eax, 1
je 0x1400504f6
nop
cmp eax, 1
jne 0x1400505ea
mov esi, 0xc11
mov r15d, 0x104b
jmp 0x140050501
mov esi, 0x801
mov r15d, 0x1003
lea rcx, [0x1402c3430]
mov dword [rsp + 0x34], esi
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140050523
lock dec dword [0x1402c3440]
jmp 0x140050549
mov r8, qword [0x1402c3448]
mov edx, 4
mov rcx, qword [0x1402bfe50]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
lea rcx, [rdi + 0x12]
xor edx, edx
mov r8d, 0x15a
call fcn.1401dff50
mov edx, 0x7ffe0018
mov dword [rdi + 0x10], 0x15c0003
mov dword [rdi + 0x14], 0x28
mov r14d, 0x7ffe0014
lea esi, [rdx + 4]
nop word [rax + rax]
mov eax, dword [rdx]
mov dword [rdi + 0x1c], eax
mov eax, dword [r14]
mov dword [rdi + 0x18], eax
mov eax, dword [rsi]
cmp dword [rdi + 0x1c], eax
jne 0x140050580
mov esi, dword [rsp + 0x34]
lea rcx, [rdi + 0x10]
mov r14, 0xffffffffffffffff
mov dword [rdi + 0x30], esi
mov qword [rdi + 0x28], r14
mov dword [rdi + 0x34], r15d
call fcn.14018ea80
mov eax, dword [0x1402c3444]
cmp dword [0x1402c3440], eax
jae 0x1400505d8
mov rdx, rdi
lea rcx, [0x1402c3430]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c3440]
jmp 0x1400505ea
mov rcx, qword [0x1402bfe50]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14005060a
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005060a
call fcn.14013d2a0
test r12, r12
je 0x14005062a
lea rcx, ds:[r12 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005062a
call fcn.14013d2a0
test r13, r13
je 0x14005064a
lea rcx, ds:[r13 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005064a
call fcn.14013d2a0
mov rcx, qword [rbp - 0x78]
mov eax, r14d
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140050665
nop
call fcn.14013d2a0
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x14005068a
lea rcx, ds:[rax - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005068a
call fcn.14013d2a0
mov rax, qword [rbp - 0x70]
test rax, rax
je 0x1400506aa
lea rcx, ds:[rax - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400506aa
call fcn.14013d2a0
mov r12, qword [rsp + 0x58]
mov r13, qword [rsp + 0x60]
mov rax, qword [rsp + 0x78]
test rax, rax
je 0x1400506d3
lea rcx, [rax - 0x10]
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
jne 0x1400506d3
call fcn.14013d2a0
test r13, r13
je 0x1400506ea
mov rcx, qword [0x1402bfe50]
mov r8, r13
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r12, r12
je 0x140050706
mov rcx, qword [0x1402bfe50]
mov r8, r12
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x1a0]
xor rcx, rsp
call fcn.1401dd6a0
lea r11, [rsp + 0x2b0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret