Function at 0x14004f900
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 - 0x160]
sub rsp, 0x260
mov rax, qword [0x1402ba040]
xor rax, rsp
mov qword [rbp + 0x150], rax
xorps xmm0, xmm0
mov qword [rsp + 0x60], rcx
xor esi, esi
mov qword [rsp + 0x40], rsi
mov r12d, esi
movups xmmword [rbp + 0x90], xmm0
movups xmmword [rbp + 0xa0], xmm0
movups xmmword [rbp + 0xb0], xmm0
movups xmmword [rbp + 0xc0], xmm0
call sym.SystemInformer.exe_QiGetApplicationDirectoryWin32
mov rdi, rax
test rax, rax
je 0x14004f9ed
mov rbx, qword [rax]
mov rdx, qword [0x1402c4fb8]
add rbx, 0x1a
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov r12, rax
mov qword [rax], rbx
add rax, 0x10
mov qword [r12 + 8], rax
mov word [rbx + rax], si
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov rcx, qword [r12 + 8]
call fcn.1402074d0
mov rdx, qword ds:[rdi]
movups xmm0, xmmword [str.temp_drivers_]
add rdx, qword [r12 + 8]
movups xmmword [rdx], xmm0
movsd xmm0, qword [0x14026daa0]
movsd qword [rdx + 0x10], xmm0
movzx eax, word [0x14026daa8]
mov word [rdx + 0x18], ax
lock inc dword [rdi - 8]
test r12, r12
je 0x14004f9ed
mov rcx, r12
call sym.SystemInformer.exe_QiDeleteDirectoryWin32
lea r8, [rsp + 0x70]
mov qword [rsp + 0x78], rsi
lea rdx, [rsp + 0x78]
mov qword [rsp + 0x50], rsi
lea rcx, str.ksidyn.bin
mov rdi, rsi
mov r13, rsi
call fcn.14004f620
mov r15, qword [rsp + 0x78]
mov ebx, eax
mov r14, 0xffffffffffffffff
test eax, eax
js 0x14004fa73
mov eax, dword [rsp + 0x70]
mov rcx, r15
mov edx, eax
mov dword [rsp + 0x4c], eax
call fcn.14004f780
mov ebx, eax
test eax, eax
js 0x14004fa73
lea r8, [rsp + 0x74]
lea rdx, [rsp + 0x50]
lea rcx, str.ksidyn.sig
call fcn.14004f620
mov ebx, eax
test eax, eax
js 0x14004fa6e
mov eax, dword [rsp + 0x74]
mov dword [rsp + 0x34], eax
test eax, eax
jne 0x14004faf2
mov ebx, 0xe0020004
mov rdi, qword [rsp + 0x50]
test r15, r15
je 0x14004fa8a
mov rcx, qword [0x1402c5110]
mov r8, r15
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test rdi, rdi
je 0x14004faa6
mov rcx, qword [0x1402c5110]
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 0x14004fba5
mov rcx, qword [rsp + 0x60]
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.14004f180
mov rbx, rsi
jmp 0x1400505d4
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x78], rsi
mov qword [rsp + 0x50], rsi
call fcn.14004f480
mov qword [rbp - 0x70], rax
test rax, rax
je 0x1400505a5
nop dword [rax]
call sym.SystemInformer.exe_QiGetApplicationFileNameWin32
lea rdx, [0x1402bbfa0]
mov rcx, rax
mov rbx, rax
call fcn.140136940
mov rdi, rax
mov qword [rsp + 0x40], rax
lea rcx, [rbx - 0x10]
mov edx, r14d
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x14004fb55
call fcn.14013fb00
test rdi, rdi
je 0x14005058a
mov rcx, qword [rdi + 8]
call sym.SystemInformer.exe_QiDoesFileExistWin32
test al, al
jne 0x14004fc2d
mov rcx, qword [rsp + 0x60]
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.14004f180
nop dword [rax]
jmp 0x14005058a
mov qword [rsp + 0x58], r15
mov qword [rsp + 0x38], rsi
cmp ebx, 0xc000000f
jne 0x14004fbed
mov rcx, qword ds:[rsp + 0x60]
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.14004f180
mov rbx, rsi
jmp 0x1400505d4
test ebx, ebx
jns 0x14004fb0b
lfence
mov rcx, qword [rsp + 0x60]
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.14004f180
mov rbx, rsi
jmp 0x1400505d4
lea rbx, str.KsiObjectName
mov qword [rbp - 0x68], 0x1a
lea rcx, [rbp - 0x68]
mov qword [rbp - 0x60], rbx
call sym.SystemInformer.exe_QiGetStringRefSetting
mov r15, rax
test rax, rax
je 0x14004fc76
lea rcx, [rbp - 0x58]
mov qword [rbp - 0x58], 0x1a
mov qword [rbp - 0x50], rbx
call sym.SystemInformer.exe_QiGetStringRefSetting
mov r15, rax
mov qword [rbp - 0x80], rax
cmp qword [rax], rsi
jne 0x14004fd56
lea r13, str.DriverKSystemInformer
xorps xmm1, xmm1
mov rbx, r13
mov rcx, r13
and rbx, 0xfffffffffffffff1
and ecx, 0xf
je 0x14004fcb1
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x48], ecx
je 0x14004fcad
mov ebx, ecx
shr rbx, 1
jmp 0x14004fcf8
add rbx, 0x10
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x48], ecx
jne 0x14004fcea
nop word [rax + rax]
movdqu xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x48], ecx
je 0x14004fcd0
sub rbx, r13
mov eax, ecx
sar rbx, 1
shr rax, 1
add rbx, rax
mov rdx, qword [0x1402c4fb8]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_QiCreateObject
mov r8, rbx
mov rdx, r13
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], si
mov rcx, qword [rax + 8]
call fcn.1402074d0
mov rcx, r15
mov qword [rbp - 0x80], rdi
mov r15, rdi
test rcx, rcx
je 0x14004fd51
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004fd51
call fcn.14013fb00
mov rdi, qword [rsp + 0x40]
lea r13, str.KsiPortName
mov qword [rbp - 0x48], 0x16
lea rcx, [rbp - 0x48]
mov qword [rbp - 0x40], r13
call sym.SystemInformer.exe_QiGetStringRefSetting
mov rbx, rax
test rax, rax
je 0x14004fd9b
lea rcx, [rbp - 0x38]
mov qword [rbp - 0x38], 0x16
mov qword [rbp - 0x30], r13
call sym.SystemInformer.exe_QiGetStringRefSetting
mov rbx, rax
mov qword [rbp - 0x78], rax
cmp qword [rax], rsi
jne 0x14004fdc5
mov rcx, rbx
mov rbx, rsi
mov qword [rbp - 0x78], rbx
test rcx, rcx
je 0x14004fdc5
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004fdc5
nop dword [rax + rax]
call fcn.14013fb00
lea rax, str.KsiAltitude
mov qword ds:[rbp - 0x28], 0x16
lea rcx, [rbp - 0x28]
mov qword [rbp - 0x20], rax
call sym.SystemInformer.exe_QiGetStringRefSetting
mov r13, rax
test rax, rax
je 0x14004fe11
lea rax, str.KsiAltitude
mov qword [rbp - 0x18], 0x16
lea rcx, [rbp - 0x18]
mov qword [rbp - 0x10], rax
call sym.SystemInformer.exe_QiGetStringRefSetting
mov r13, rax
cmp qword [rax], rsi
jne 0x14004fe32
mov rcx, r13
mov r13, rsi
test rcx, rcx
je 0x14004fe32
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004fe32
call fcn.14013fb00
mov rax, qword [rbp - 0x70]
lea rcx, [rbp - 8]
mov qword [rbp + 0x98], rax
lea rax, str.KsiDisableImageLoadProtection
mov qword [rbp], rax
mov qword [rbp + 0x90], rdi
mov qword [rbp + 0xa0], r15
mov qword [rbp + 0xa8], rbx
mov qword [rbp + 0xb0], r13
mov dword [rbp + 0xb8], esi
mov qword [rbp - 8], 0x3a
call sym.SystemInformer.exe_QiGetIntegerStringRefSetting
test eax, eax
mov qword [rbp + 8], 0x28
mov eax, dword [rbp + 0xb8]
mov ecx, esi
setne cl
and eax, 0xfffffffe
or eax, ecx
lea rcx, [rbp + 8]
mov dword [rbp + 0xb8], eax
lea rax, str.KsiRandomizedPoolTag
mov qword [rbp + 0x10], rax
call sym.SystemInformer.exe_QiGetIntegerStringRefSetting
neg eax
mov qword [rbp + 0x18], 0x28
mov eax, dword [rbp + 0xb8]
sbb ecx, ecx
and eax, 0xfffffffd
and ecx, 2
or eax, ecx
lea rcx, [rbp + 0x18]
mov dword [rbp + 0xb8], eax
lea rax, str.KsiDynDataNoEmbedded
mov qword [rbp + 0x20], rax
call sym.SystemInformer.exe_QiGetIntegerStringRefSetting
neg eax
mov eax, dword [rbp + 0xb8]
sbb ecx, ecx
and eax, 0xfffffffb
and ecx, 4
or eax, ecx
lea rcx, [rbp + 0x90]
mov dword [rbp + 0xb8], eax
lea rax, [0x14004f5c0]
mov qword [rbp + 0xc0], rax
movzx eax, byte [0x1402c3c45]
mov byte [rbp + 0xc8], al
movzx eax, byte [0x1402c3c44]
mov byte [rbp + 0xc9], al
call fcn.140174140
mov edi, eax
mov r15d, 4
cmp eax, 0xc000000f
jne 0x140050123
lea rax, str.KsiPreviousTemporaryDriverFile
mov qword [rbp + 0x28], 0x3c
lea rcx, [rbp + 0x28]
mov qword [rbp + 0x30], rax
call sym.SystemInformer.exe_QiGetStringRefSetting
mov rbx, rax
test rax, rax
je 0x14004ffb2
mov rcx, qword [rax + 8]
call sym.SystemInformer.exe_QiDoesFileExistWin32
test al, al
je 0x14004ff91
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x90], rbx
call fcn.140174140
mov edi, eax
lea rcx, ds:[rbx - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14004ffaa
call fcn.14013fb00
test edi, edi
jns 0x14005015c
test r12, r12
je 0x140050127
mov rax, qword [0x7ffe0014]
lea rcx, str.SystemInformer
movups xmm0, xmmword [r12]
mov qword [rbp + 0x108], rcx
mov edx, 4
mov r8d, 0x104
mov dword [rbp + 0xd0], 1
movups xmmword [rbp + 0xe0], xmm0
lea rcx, [rbp + 0xd0]
movups xmm0, xmmword [0x1402bbfa0]
mov r15, rsi
mov dword [rbp + 0xf0], 1
mov qword [rbp + 0x100], 0x1c
movups xmmword [rbp + 0x140], xmm0
mov dword [rbp + 0x110], 0x109
mov qword [rbp + 0x120], rax
mov byte [rbp + 0x11a], 0x10
mov dword [rbp + 0x130], 1
call sym.SystemInformer.exe_QiFormat
mov rcx, r12
mov rbx, rax
call sym.SystemInformer.exe_QiCreateDirectoryWin32
mov edi, eax
test eax, eax
js 0x14005007e
test rbx, rbx
je 0x140050062
mov rdx, qword [rbx + 8]
jmp 0x140050065
mov rdx, rsi
mov rcx, qword [rsp + 0x40]
mov rcx, qword [rcx + 8]
call fcn.14016a000
mov edi, eax
test eax, eax
js 0x14005007e
mov r15, rbx
jmp 0x1400500a8
nop
test rbx, rbx
je 0x14005009b
lea rcx, [rbx - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005009b
call fcn.14013fb00
nop dword [rax + rax]
test edi, edi
js 0x140050127
test r15, r15
je 0x1400500b1
mov rsi, qword [r15 + 8]
lea rax, str.KsiPreviousTemporaryDriverFile
mov qword [rbp + 0x48], 0x3c
mov qword [rbp + 0x50], rax
mov rax, r14
nop word [rax + rax]
inc rax
cmp word [rsi + rax*2], 0
jne 0x1400500d0
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_QiSetStringRefSetting
lea rcx, [rbp + 0x90]
mov qword [rbp + 0x90], r15
call fcn.140174140
mov edi, eax
lea rcx, [r15 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005011d
call fcn.14013fb00
mov r15d, 4
test edi, edi
jns 0x14005015c
lfence
mov rcx, qword [rsp + 0x60]
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.14004f180
jmp 0x14005052a
lea rcx, [0x1402c86f0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rsi, rax
test rax, rax
je 0x14005017a
lock dec dword [0x1402c8700]
jmp 0x140050198
mov r8, qword [0x1402c8708]
mov edx, r15d
mov rcx, qword [0x1402c5110]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rsi, rax
lea rcx, [rsi + 0x12]
xor edx, edx
mov r8d, 0x162
call fcn.140207110
mov ecx, 0x7ffe0014
mov dword [rsi + 0x10], 0x1640004
mov dword [rsi + 0x14], 0x22
mov r15d, 0x7ffe0018
lea edx, [rcx + 8]
nop word [rax + rax]
mov eax, dword ds:[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 0x1400501d0
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 + 0x38]
mov qword [rsi + 0x38], rax
mov eax, dword [rsp + 0x34]
mov dword [rsi + 0x40], eax
call fcn.140191c00
mov eax, dword [0x1402c8704]
cmp dword [0x1402c8700], eax
jae 0x140050235
mov rdx, rsi
lea rcx, [0x1402c86f0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c8700]
jmp 0x140050247
mov rcx, qword [0x1402c5110]
mov r8, rsi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, r14
call fcn.140175b80
mov dword [0x1402c825c], eax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 0x60]
cmp byte [rdx + 2], 0
jne 0x14005030a
cmp eax, 5
je 0x140050313
cmp eax, 4
jne 0x14005029f
test dword [0x1402c3f10], 0x2000
jne 0x1400502cc
lea rax, str.__kx
mov qword [rbp + 0x58], 8
mov qword [rbp + 0x60], rax
lea rcx, [rbp + 0x58]
jmp 0x1400502c5
nop
jge 0x1400502cc
test dword [0x1402c3f10], 0x3000
jne 0x1400502cc
lea rax, str.__kh
mov qword [rbp + 0x68], 8
mov qword [rbp + 0x70], rax
lea rcx, [rbp + 0x68]
call fcn.14004f1e0
mov edi, eax
test edi, edi
jns 0x14005052a
lfence
mov rcx, qword [rsp + 0x60]
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.14004f180
jmp 0x14005052a
cmp eax, 5
jne 0x14005052a
lea rax, str.KsiEnableUnloadProtection
mov qword [rsp + 0x60], 0x32
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
call sym.SystemInformer.exe_QiGetIntegerStringRefSetting
test eax, eax
je 0x1400503f4
lea rcx, [0x1402c86f0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140050358
lock dec dword [0x1402c8700]
jmp 0x140050378
mov r8, qword [0x1402c8708]
mov edx, 4
mov rcx, qword [0x1402c5110]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
lea rcx, [rdi + 0x12]
xor edx, edx
mov r8d, 0x162
call fcn.140207110
mov ecx, 0x7ffe0014
mov dword [rdi + 0x10], 0x1640004
mov dword [rdi + 0x14], 0x1f
lea edx, [rcx + 8]
nop
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 0x1400503a0
lea rcx, [rdi + 0x10]
call fcn.140191c00
mov eax, dword [0x1402c8704]
cmp dword [0x1402c8700], eax
jae 0x1400503e2
mov rdx, rdi
lea rcx, [0x1402c86f0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c8700]
jmp 0x1400503f4
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rax, str.KsiClientProcessProtectionLevel
mov qword [rbp + 0x78], 0x3e
lea rcx, [rbp + 0x78]
mov qword [rbp + 0x80], rax
call sym.SystemInformer.exe_QiGetIntegerStringRefSetting
sub eax, 1
je 0x140050436
nop dword [rax + rax]
cmp eax, 1
jne 0x14005052a
mov esi, 0xc11
mov r15d, 0x104b
jmp 0x140050441
mov esi, 0x801
mov r15d, 0x1003
lea rcx, [0x1402c86f0]
mov dword [rsp + 0x34], esi
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x140050463
lock dec dword [0x1402c8700]
jmp 0x140050489
mov r8, qword [0x1402c8708]
mov edx, 4
mov rcx, qword [0x1402c5110]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov rdi, rax
lea rcx, [rdi + 0x12]
xor edx, edx
mov r8d, 0x162
call fcn.140207110
mov edx, 0x7ffe0018
mov dword [rdi + 0x10], 0x1640004
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 0x1400504c0
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.140191c00
mov eax, dword [0x1402c8704]
cmp dword [0x1402c8700], eax
jae 0x140050518
mov rdx, rdi
lea rcx, [0x1402c86f0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c8700]
jmp 0x14005052a
mov rcx, qword [0x1402c5110]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x14005054a
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005054a
call fcn.14013fb00
mov rcx, qword [rbp - 0x78]
test rcx, rcx
je 0x14005056a
add rcx, 0xfffffffffffffff0
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005056a
call fcn.14013fb00
test r13, r13
je 0x14005058a
lea rcx, ds:[r13 - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005058a
call fcn.14013fb00
mov rcx, qword [rbp - 0x70]
mov eax, r14d
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400505a5
nop
call fcn.14013fb00
mov rax, qword [rsp + 0x40]
test rax, rax
je 0x1400505ca
lea rcx, ds:[rax - 0x10]
mov eax, r14d
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400505ca
call fcn.14013fb00
mov r13, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x38]
test r12, r12
je 0x1400505ef
lea rcx, [r12 - 0x10]
lock xadd dword [rcx + 8], r14d
cmp r14d, 1
jne 0x1400505ef
call fcn.14013fb00
test rbx, rbx
je 0x140050606
mov rcx, qword [0x1402c5110]
mov r8, rbx
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
test r13, r13
je 0x14005061d
mov rcx, qword [0x1402c5110]
mov r8, r13
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.1401e0100
lea r11, [rsp + 0x260]
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