Function at 0x140052bc0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
mov r11, rsp
push rbp
lea rbp, [r11 - 0x98]
sub rsp, 0x190
mov rax, qword [0x1402bb040]
xor rax, rsp
mov qword [rbp + 0x60], rax
mov qword [r11 + 0x10], rbx
xorps xmm0, xmm0
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
mov qword [r11 - 0x10], r12
mov qword [r11 - 0x18], r13
mov r13, rcx
mov qword [r11 - 0x20], r14
xor r14d, r14d
mov qword [r11 - 0x28], r15
mov r12d, r14d
mov qword [rbp - 0x70], r14
mov r15d, r14d
mov qword [rbp - 0x78], r14
mov qword [rsp + 0x78], rcx
movups xmmword [rbp - 0x60], xmm0
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
call sym.SystemInformer.exe_Ordinal_1637
mov rdi, rax
test rax, rax
je 0x140052cad
mov rbx, qword [rax]
mov rdx, qword [0x1402c5ff0]
add rbx, 0x1a
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_Ordinal_1240
mov r15, rax
mov qword [rax], rbx
add rax, 0x10
mov qword [r15 + 8], rax
mov word [rax + rbx], r14w
mov r8, qword [rdi]
mov rdx, qword [rdi + 8]
mov rcx, qword [r15 + 8]
call fcn.14020c7e0
mov rdx, qword ds:[rdi]
movups xmm0, xmmword [str.temp_drivers_]
add rdx, qword [r15 + 8]
movups xmmword [rdx], xmm0
movsd xmm0, qword [0x140273d58]
movsd qword [rdx + 0x10], xmm0
movzx eax, word [0x140273d60]
mov word [rdx + 0x18], ax
lock inc dword [rdi - 8]
test r15, r15
je 0x140052cad
mov rcx, r15
call sym.SystemInformer.exe_Ordinal_1475
lea r9, ds:[rsp + 0x48]
lea r8, [rbp - 0x78]
lea rdx, [rsp + 0x4c]
lea rcx, [rbp - 0x70]
call fcn.140052960
mov r8d, eax
mov rsi, 0xffffffffffffffff
cmp eax, 0xe0020001
jne 0x140052d0a
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.
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, str.Unable_to_load_kernel_driver
mov edx, 0xfffe
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400522e0
jmp 0x14005380a
cmp r8d, 0xc000000f
jne 0x140052d45
lea rax, str.The_dynamic_configuration_was_not_found.
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, str.Unable_to_load_kernel_driver
mov edx, 0xfffe
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400522e0
nop
jmp 0x14005380a
test r8d, r8d
jns 0x140052d7a
lfence
lea rax, str.Failed_to_access_the_dynamic_configuration.
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov edx, 0xfffe
lea rax, str.Unable_to_load_kernel_driver
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400522e0
jmp 0x14005380a
call fcn.1400525e0
mov qword [rbp - 0x68], rax
test rax, rax
je 0x1400537ea
call sym.SystemInformer.exe_Ordinal_1639
lea rdx, [0x1402bcff8]
mov rcx, rax
mov rbx, rax
call fcn.14013b0c0
mov r12, rax
mov qword [rsp + 0x70], rax
lea rcx, [rbx - 0x10]
mov edx, esi
lock xadd dword [rcx + 8], edx
cmp edx, 1
jne 0x140052dc5
nop dword [rax]
call fcn.140143da0
test r12, r12
je 0x1400537d1
mov rcx, qword [r12 + 8]
call sym.SystemInformer.exe_Ordinal_1481
test al, al
jne 0x140052e0c
lea rax, str.The_kernel_driver_was_not_found.
xor r9d, r9d
mov qword [rsp + 0x28], rax
xor r8d, r8d
lea rax, str.Unable_to_load_kernel_driver
mov edx, 0xfffe
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400522e0
jmp 0x1400537d1
lea rbx, str.KsiObjectName
mov qword [rsp + 0x50], 0x1a
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], rbx
call sym.SystemInformer.exe_Ordinal_1889
mov qword [rbp - 0x80], rax
test rax, rax
je 0x140052e5c
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], 0x1a
mov qword [rsp + 0x58], rbx
call sym.SystemInformer.exe_Ordinal_1889
mov rdi, rax
mov qword [rbp - 0x80], rax
cmp qword [rax], r14
jne 0x140052f32
lea r12, str.DriverKSystemInformer
xorps xmm1, xmm1
mov rbx, r12
mov rcx, r12
and rbx, 0xfffffffffffffff1
and ecx, 0xf
je 0x140052e97
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
shr eax, cl
bsf ecx, eax
mov dword [rsp + 0x30], ecx
je 0x140052e93
mov ebx, ecx
shr rbx, 1
jmp 0x140052ed8
add rbx, 0x10
movdqu xmm0, xmmword [rbx]
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x30], ecx
jne 0x140052eca
nop dword [rax]
movdqu xmm0, xmmword [rbx + 0x10]
add rbx, 0x10
pcmpeqw xmm0, xmm1
pmovmskb eax, xmm0
bsf ecx, eax
mov dword [rsp + 0x30], ecx
je 0x140052eb0
sub rbx, r12
mov eax, ecx
sar rbx, 1
shr rax, 1
add rbx, rax
mov rdx, qword [0x1402c5ff0]
add rbx, rbx
lea rcx, [rbx + 0x12]
call sym.SystemInformer.exe_Ordinal_1240
mov r8, rbx
mov rdx, r12
mov rdi, rax
lea rcx, [rax + 0x10]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov word [rcx + rbx], r14w
mov rcx, qword [rax + 8]
call fcn.14020c7e0
mov rax, qword [rbp - 0x80]
mov qword [rbp - 0x80], rdi
mov rcx, rax
test rax, rax
je 0x140052f32
add rcx, 0xfffffffffffffff0
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140052f32
call fcn.140143da0
lea r12, str.KsiPortName
mov qword [rsp + 0x50], 0x16
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x58], r12
call sym.SystemInformer.exe_Ordinal_1889
mov rbx, rax
test rax, rax
je 0x140052f7e
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x50], 0x16
mov qword [rsp + 0x58], r12
call sym.SystemInformer.exe_Ordinal_1889
mov rbx, rax
mov qword [rsp + 0x50], rax
cmp qword [rax], r14
jne 0x140052fa5
mov rcx, rbx
mov rbx, r14
mov qword [rsp + 0x50], rbx
test rcx, rcx
je 0x140052fa5
add rcx, 0xfffffffffffffff0
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140052fa5
nop
call fcn.140143da0
lea rax, str.KsiAltitude
mov qword ds:[rsp + 0x38], 0x16
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1889
mov r12, rax
test rax, rax
je 0x140052ff4
lea rax, str.KsiAltitude
mov qword [rsp + 0x38], 0x16
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1889
mov r12, rax
cmp qword [rax], r14
jne 0x140053014
mov rcx, r12
mov r12, r14
test rcx, rcx
je 0x140053014
add rcx, 0xfffffffffffffff0
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140053014
call fcn.140143da0
mov rax, qword [rsp + 0x70]
lea rcx, [rsp + 0x38]
mov qword [rbp - 0x60], rax
mov rax, qword [rbp - 0x68]
mov qword [rbp - 0x58], rax
lea rax, str.KsiEnableFsFeatureOffloadRead
mov qword [rsp + 0x40], rax
mov qword [rbp - 0x50], rdi
mov qword [rbp - 0x48], rbx
mov qword [rbp - 0x40], r12
mov dword [rbp - 0x38], r14d
mov qword [rsp + 0x38], 0x3a
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
je 0x14005305c
or dword [rbp - 0x38], 1
lea rax, str.KsiEnableFsFeatureOffloadWrite
mov qword [rsp + 0x38], 0x3c
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
je 0x140053083
or dword [rbp - 0x38], 2
lea rax, str.KsiEnableFsFeatureQueryOpen
mov qword ds:[rsp + 0x38], 0x36
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
je 0x1400530ad
or dword [rbp - 0x38], 4
lea rax, str.KsiEnableFsFeatureBypassIO
mov qword [rsp + 0x38], 0x34
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
je 0x1400530d4
or dword [rbp - 0x38], 8
lea rax, str.KsiDisableImageLoadProtection
mov dword [rbp - 0x34], r14d
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0x3a
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
mov qword [rsp + 0x38], 0x28
mov eax, dword [rbp - 0x34]
mov ecx, r14d
setne cl
and eax, 0xfffffffe
or eax, ecx
lea rcx, [rsp + 0x38]
mov dword [rbp - 0x34], eax
lea rax, str.KsiRandomizedPoolTag
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1886
neg eax
mov qword [rsp + 0x38], 0x28
mov eax, dword [rbp - 0x34]
sbb ecx, ecx
and eax, 0xfffffffd
and ecx, 2
or eax, ecx
lea rcx, [rsp + 0x38]
mov dword [rbp - 0x34], eax
lea rax, str.KsiDynDataNoEmbedded
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1886
neg eax
mov eax, dword [rbp - 0x34]
sbb ecx, ecx
and eax, 0xfffffffb
and ecx, 4
or eax, ecx
lea rcx, [rbp - 0x60]
mov dword [rbp - 0x34], eax
lea rax, [0x140052720]
mov qword [rbp - 0x30], rax
movzx eax, byte [0x1402c62ed]
mov byte [rbp - 0x28], al
movzx eax, byte [0x1402c62ee]
mov byte [rbp - 0x27], al
call fcn.1401780e0
mov edi, eax
cmp eax, 0xc000000f
jne 0x14005334b
lea rax, str.KsiPreviousTemporaryDriverFile
mov qword [rsp + 0x38], 0x3c
lea rcx, [rsp + 0x38]
mov qword [rsp + 0x40], rax
call sym.SystemInformer.exe_Ordinal_1889
mov rbx, rax
test rax, rax
je 0x14005320d
mov rcx, qword [rax + 8]
call sym.SystemInformer.exe_Ordinal_1481
test al, al
je 0x1400531ee
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x60], rbx
call fcn.1401780e0
mov edi, eax
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140053205
nop
call fcn.140143da0
test edi, edi
jns 0x140053385
test r15, r15
je 0x14005334f
mov rax, qword [0x7ffe0014]
lea rcx, str.SystemInformer
movups xmm0, xmmword [r15]
mov qword [rbp + 0x18], rcx
mov edx, 4
mov r8d, 0x104
mov dword [rbp - 0x20], 1
movups xmmword [rbp - 0x10], xmm0
lea rcx, [rbp - 0x20]
movups xmm0, xmmword [0x1402bcff8]
mov r13, r14
mov dword [rbp], 1
mov qword [rbp + 0x10], 0x1c
movups xmmword [rbp + 0x50], xmm0
mov dword [rbp + 0x20], 0x109
mov qword [rbp + 0x30], rax
mov byte [rbp + 0x2a], 0x10
mov dword [rbp + 0x40], 1
call sym.SystemInformer.exe_Ordinal_1375
mov rcx, r15
mov rbx, rax
call sym.SystemInformer.exe_Ordinal_1464
mov edi, eax
test eax, eax
js 0x1400532b7
test rbx, rbx
je 0x14005329b
mov rdx, qword [rbx + 8]
jmp 0x14005329e
mov rdx, r14
mov rax, qword [rsp + 0x70]
mov rcx, qword [rax + 8]
call fcn.14016d6e0
mov edi, eax
test eax, eax
js 0x1400532b7
mov r13, rbx
jmp 0x1400532d5
test rbx, rbx
je 0x1400532d1
lea rcx, [rbx - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400532d1
call fcn.140143da0
test edi, edi
js 0x14005334f
test r13, r13
je 0x1400532de
mov r14, qword [r13 + 8]
lea rax, str.KsiPreviousTemporaryDriverFile
mov qword [rsp + 0x60], 0x3c
mov qword [rsp + 0x68], rax
mov rax, rsi
nop word [rax + rax]
inc rax
cmp word [r14 + rax*2], 0
jne 0x140053300
add rax, rax
mov qword [rsp + 0x40], r14
lea rdx, [rsp + 0x38]
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x60]
call sym.SystemInformer.exe_Ordinal_1908
lea rcx, [rbp - 0x60]
mov qword [rbp - 0x60], r13
call fcn.1401780e0
mov edi, eax
lea rcx, [r13 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005334b
call fcn.140143da0
test edi, edi
jns 0x140053385
lfence
mov rcx, qword [rsp + 0x78]
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.1400522e0
nop
jmp 0x140053774
lea rcx, [0x1402c98d0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov r14, rax
test rax, rax
je 0x1400533a3
lock dec dword [0x1402c98e0]
jmp 0x1400533c9
mov r8, qword [0x1402c98e8]
mov edx, 4
mov rcx, qword [0x1402c6140]
add r8, 0x10
call qword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov r14, rax
lea rcx, [r14 + 0x12]
xor edx, edx
mov r8d, 0x162
call fcn.14020c410
mov ecx, 0x7ffe0014
mov dword [r14 + 0x10], 0x1640004
mov edx, 0x7ffe001c
mov dword [r14 + 0x14], 0x22
mov r13d, 0x7ffe0018
nop word [rax + rax]
mov eax, dword [r13]
mov dword [r14 + 0x1c], eax
mov eax, dword [rcx]
mov dword [r14 + 0x18], eax
mov eax, dword [rdx]
cmp dword [r14 + 0x1c], eax
jne 0x140053400
mov rax, qword [rbp - 0x70]
lea rcx, [r14 + 0x10]
mov qword [r14 + 0x28], rax
mov eax, dword [rsp + 0x4c]
mov dword [r14 + 0x30], eax
mov rax, qword [rbp - 0x78]
mov qword [r14 + 0x38], rax
mov eax, dword [rsp + 0x48]
mov dword [r14 + 0x40], eax
call fcn.1401962e0
mov eax, dword [0x1402c98e4]
cmp dword [0x1402c98e0], eax
jae 0x140053466
mov rdx, r14
lea rcx, [0x1402c98d0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c98e0]
jmp 0x140053478
mov rcx, qword [0x1402c6140]
mov r8, r14
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, rsi
call fcn.140179c80
mov r13, qword [rsp + 0x78]
mov dword [0x1402c8fac], eax
mov rcx, qword gs:[0x30]
mov rdx, qword [rcx + 0x60]
cmp byte [rdx + 2], 0
jne 0x14005353b
cmp eax, 5
je 0x140053549
cmp eax, 4
jne 0x1400534cb
test dword [0x1402c4f40], 0x2000
nop
jne 0x1400534fa
lea rax, str.__kx
jmp 0x1400534e0
jge 0x1400534fa
test dword [0x1402c4f40], 0x3000
jne 0x1400534fa
lea rax, str.__kh
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x60], 8
mov qword [rsp + 0x68], rax
call fcn.140052340
mov edi, eax
nop word [rax + rax]
test edi, edi
jns 0x140053774
lfence
lea rax, str.Unable_to_restart.
xor r9d, r9d
mov qword [rsp + 0x28], rax
mov r8d, edi
lea rax, str.Unable_to_load_kernel_driver
mov edx, 0xfffe
mov rcx, r13
mov qword [rsp + 0x20], rax
call fcn.1400522e0
jmp 0x140053774
nop dword [rax + rax]
cmp eax, 5
jne 0x140053774
lea rax, str.KsiEnableUnloadProtection
mov qword [rsp + 0x60], 0x32
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
call sym.SystemInformer.exe_Ordinal_1886
test eax, eax
je 0x140053634
lea rcx, [0x1402c98d0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x14005358e
lock dec dword [0x1402c98e0]
jmp 0x1400535ae
mov r8, qword [0x1402c98e8]
mov edx, 4
mov rcx, qword [0x1402c6140]
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.14020c410
mov ecx, 0x7ffe0018
mov dword [rdi + 0x10], 0x1640004
mov edx, 0x7ffe0014
mov dword [rdi + 0x14], 0x1f
mov r8d, 0x7ffe001c
nop dword [rax]
mov eax, dword [rcx]
mov dword [rdi + 0x1c], eax
mov eax, dword [rdx]
mov dword [rdi + 0x18], eax
mov eax, dword [r8]
cmp dword [rdi + 0x1c], eax
jne 0x1400535e0
lea rcx, [rdi + 0x10]
call fcn.1401962e0
mov eax, dword [0x1402c98e4]
cmp dword [0x1402c98e0], eax
jae 0x140053622
mov rdx, rdi
lea rcx, [0x1402c98d0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c98e0]
jmp 0x140053634
mov rcx, qword [0x1402c6140]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
lea rax, str.KsiClientProcessProtectionLevel
mov qword [rsp + 0x60], 0x3e
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x68], rax
call sym.SystemInformer.exe_Ordinal_1886
sub eax, 1
je 0x140053677
nop dword [rax + rax]
cmp eax, 1
jne 0x140053774
mov r14d, 0xc11
mov r13d, 0x104b
jmp 0x140053683
mov r14d, 0x801
mov r13d, 0x1003
lea rcx, [0x1402c98d0]
mov dword [rsp + 0x4c], r13d
mov dword [rsp + 0x30], r14d
call qword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov rdi, rax
test rax, rax
je 0x1400536ae
lock dec dword [0x1402c98e0]
jmp 0x1400536ce
mov r8, qword [0x1402c98e8]
mov edx, 4
mov rcx, qword [0x1402c6140]
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.14020c410
mov dword [rdi + 0x10], 0x1640004
mov esi, 0x7ffe0018
mov dword [rdi + 0x14], 0x28
mov r14d, 0x7ffe0014
mov r13d, 0x7ffe001c
nop
mov eax, dword [rsi]
mov dword [rdi + 0x1c], eax
mov eax, dword [r14]
mov dword [rdi + 0x18], eax
mov eax, dword [r13]
cmp dword [rdi + 0x1c], eax
jne 0x140053700
mov r14d, dword [rsp + 0x30]
lea rcx, [rdi + 0x10]
mov r13d, dword [rsp + 0x4c]
mov rsi, 0xffffffffffffffff
mov qword [rdi + 0x28], rsi
mov dword [rdi + 0x30], r14d
mov dword [rdi + 0x34], r13d
call fcn.1401962e0
mov eax, dword [0x1402c98e4]
cmp dword [0x1402c98e0], eax
jae 0x140053762
mov rdx, rdi
lea rcx, [0x1402c98d0]
call qword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x1402c98e0]
nop
jmp 0x140053774
mov rcx, qword [0x1402c6140]
mov r8, rdi
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rax, qword [rbp - 0x80]
test rax, rax
je 0x140053792
lea rcx, [rax - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x140053792
call fcn.140143da0
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x1400537b1
add rcx, 0xfffffffffffffff0
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400537b1
call fcn.140143da0
test r12, r12
je 0x1400537cc
lea rcx, [r12 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400537cc
call fcn.140143da0
mov r12, qword [rsp + 0x70]
mov rcx, qword [rbp - 0x68]
mov eax, esi
add rcx, 0xfffffffffffffff0
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x1400537ea
call fcn.140143da0
test r12, r12
je 0x14005380a
lea rcx, ds:[r12 - 0x10]
mov eax, esi
lock xadd dword [rcx + 8], eax
cmp eax, 1
jne 0x14005380a
call fcn.140143da0
mov r14, qword [rsp + 0x178]
mov r13, qword [rsp + 0x180]
mov r12, qword [rsp + 0x188]
mov rdi, qword [rsp + 0x1b8]
mov rbx, qword [rsp + 0x1a8]
test r15, r15
je 0x14005384a
lea rcx, [r15 - 0x10]
lock xadd dword [rcx + 8], esi
cmp esi, 1
jne 0x14005384a
call fcn.140143da0
mov r8, qword ds:[rbp - 0x78]
mov r15, qword [rsp + 0x170]
mov rsi, qword [rsp + 0x1b0]
test r8, r8
je 0x140053874
mov rcx, qword [0x1402c6140]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov r8, qword [rbp - 0x70]
test r8, r8
je 0x14005388c
mov rcx, qword [0x1402c6140]
xor edx, edx
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov rcx, qword [rbp + 0x60]
xor rcx, rsp
call fcn.1401e5e40
add rsp, 0x190
pop rbp
ret