Function at 0x18007cd70
Capabilities:
Check if file exists
Write file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbp
push rsi
lea rbp, [rsp - 0x8828]
mov eax, 0x8928
call fcn.18019b150
sub rsp, rax
mov rsi, qword [0x1802b6738]
mov eax, dword [rsi + 8]
cmp eax, 3
je 0x18007d0df
mov qword [rsp + 0x8948], rbx
xor ebx, ebx
mov qword [rsp + 0x8950], rdi
test eax, eax
jne 0x18007ceae
mov eax, dword [0x1801d3780]
lea rcx, [rsp + 0x40]
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov rdi, qword [rsi]
xor r9d, r9d
movups xmm1, xmmword [0x1801d3768]
mov dword [rsp + 0x68], eax
xor r8d, r8d
movzx eax, word [0x1801d3784]
mov edx, 0xc0000000
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x6c], ax
mov eax, Ordinal_50
movsd xmm0, qword [0x1801d3778]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
movsd qword [rsp + 0x60], xmm0
mov word [rsp + 0x6a], ax
movups xmmword [rsp + 0x50], xmm1
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18007ceab
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18007ce57
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x18007d0cf
inc ax
mov word [rsp + 0x6a], ax
jmp 0x18007ce7a
cmp eax, 0xe7
jne 0x18007d0cf
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x18007d0cf
mov qword [rsp + 0x30], rbx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], ebx
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18007ce33
mov byte [rdi], 1
cmp dword [rsi + 8], 1
mov qword [rsp + 0x8918], r14
jne 0x18007d054
lea rcx, [rsp + 0x70]
call fcn.18007abb0
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.18007d200
test al, al
je 0x18007d01a
mov qword [rsp + 0x8920], r12
lea r8, [0x1801d33ec]
lea rdx, [rbp + 0x8840]
mov qword [rsp + 0x8910], r15
lea rcx, [rsp + 0x70]
call fcn.180081070
mov eax, dword [rsp + 0x70]
movabs r15, 0xffffffffffff
mov rcx, qword [rsp + 0x78]
mov r12d, 0x1000
and rcx, r15
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0x8840]
cmp rcx, rax
je 0x18007cf56
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007cf56
test word [rcx + 0x1e], r12w
lea r14, [rcx + 0x10]
jne 0x18007cf59
mov r14, qword [r14 + 8]
and r14, r15
jmp 0x18007cf59
mov r14, rbx
lea r8, [0x1801d350c]
lea rdx, [rbp + 0x8840]
lea rcx, [rsp + 0x70]
call fcn.180081070
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, r15
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0x8840]
cmp rcx, rax
je 0x18007cfb0
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007cfb0
test word [rcx + 0x1e], r12w
lea rdi, [rcx + 0x10]
jne 0x18007cfb3
mov rdi, qword [rdi + 8]
and rdi, r15
jmp 0x18007cfb3
mov rdi, rbx
mov r15, qword [rsp + 0x8910]
mov r12, qword [rsp + 0x8920]
test r14, r14
je 0x18007d01a
test rdi, rdi
je 0x18007d01a
lea rdx, str.DISPATCH
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18007d01a
lea rcx, str.READY
nop word [rax + rax]
movzx eax, byte [rdi + rbx]
inc rbx
cmp al, byte [rcx + rbx - 1]
jne 0x18007d01a
cmp rbx, 6
jne 0x18007cff0
mov rax, qword [rsi + 0x10]
mov dword [rsi + 8], 3
test rax, rax
je 0x18007d01a
lea rcx, [rsp + 0x70]
call rax
lea rcx, [rbp + 0x7fd8]
call fcn.180080e80
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x18007d044
mov rcx, rbx
call fcn.180080e80
mov edx, Ordinal_41
mov rcx, rbx
call fcn.18019aa3c
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.18019aa3c
jmp 0x18007d0c7
lea rdi, [rsi + 0x164]
lea r9, [rsi + 0x20]
mov dword [rdi], ebx
lea rcx, [rsi + 0x16c]
call fcn.18007c4a0
mov rcx, qword [rsi]
mov dword [rsi + 0x168], eax
test rcx, rcx
je 0x18007d0bf
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18007d0bf
test rdi, rdi
je 0x18007d0bf
lea r14d, [rax + 8]
mov dword [rbp + 0x8840], ebx
mov r8d, r14d
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x8840]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18007d0bf
cmp dword [rbp + 0x8840], r14d
jne 0x18007d0bf
mov dword [rsi + 8], eax
jmp 0x18007d0c7
mov rcx, rsi
call fcn.18007d0f0
mov r14, qword [rsp + 0x8918]
mov rdi, qword [rsp + 0x8950]
mov rbx, qword [rsp + 0x8948]
add rsp, 0x8928
pop rsi
pop rbp
ret
push rbp
lea rbp, [rsp - 0xc860]
mov eax, 0xc960
call fcn.18019b150
sub rsp, rax
mov rax, qword [0x1802b6738]
test rax, rax
je 0x18007e31f
cmp dword [rax + 8], 3
je 0x18007d782
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
cmp rax, qword [0x180285f60]
jl 0x18007e31f
call fcn.18007d6a0
add rsp, 0xc960
pop rbp
jmp 0x18007cd70
mov qword [rsp + 0xc958], rbx
mov qword [rsp + 0xc950], rsi
movabs rsi, 0xffffffffffff
mov qword [rsp + 0xc948], rdi
mov qword [rsp + 0xc938], r13
xor r13d, r13d
mov qword [rsp + 0xc930], r14
mov r14d, 0x1000
mov qword [rsp + 0xc940], r12
mov qword [rsp + 0xc928], r15
mov rcx, qword [0x1802b6738]
lea rdx, [rsp + 0x70]
xorps xmm0, xmm0
mov qword [rbp - 0x78], r13
mov eax, 3
mov qword [rbp - 0x68], r13
movups xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x7e], ax
lea rdi, str.ERROR
lea rax, [rbp + 0x7fd8]
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x80], rax
lea rax, [rbp + 0x8000]
mov qword [rbp - 0x70], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 0x7fe8], rax
lea rax, [rbp + 0x7fd0]
mov qword [rbp + 0x7ff0], rax
lea rax, [rbp - 0x30]
mov qword [rbp + 0x7fd8], rax
lea rax, [rbp + 0x8010]
mov qword [rbp + 0x8000], rax
lea rax, [rbp + 0x8810]
mov qword [rbp + 0x8008], rax
mov qword [rbp - 0x50], r13
mov qword [rbp - 0x48], 0x800
mov dword [rbp - 0x40], r13d
mov qword [rbp - 0x38], r13
mov qword [rbp + 0x7fe0], 0x8000
mov qword [rbp + 0x7ff8], r13
mov qword [rbp - 0x30], 0x7fe8
mov qword [rbp - 0x28], r13
mov qword [rbp - 0x20], r13
call fcn.18007d200
test al, al
je 0x18007e0d4
lea r8, [0x1801d350c]
lea rdx, [rbp + 0xc878]
lea rcx, [rsp + 0x70]
call fcn.180081070
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0xc878]
cmp rcx, rax
je 0x18007d8ef
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007d8ef
test word [rcx + 0x1e], r14w
lea rbx, [rcx + 0x10]
jne 0x18007d8f2
mov rbx, qword [rbx + 8]
and rbx, rsi
jmp 0x18007d8f2
mov rbx, r13
lea r8, str.nonce
lea rdx, [rbp + 0xc880]
lea rcx, [rsp + 0x70]
call fcn.180081070
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0xc880]
cmp rcx, rax
je 0x18007da7f
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007da7f
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x18007d94f
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x18007da7f
test rbx, rbx
je 0x18007e04b
mov rcx, r13
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x18007e04b
cmp rcx, 6
jne 0x18007d964
lea r8, [0x1801d3590]
lea rdx, [rbp + 0xc888]
lea rcx, [rsp + 0x70]
call fcn.180081070
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0xc888]
cmp rcx, rax
je 0x18007da2d
cmp word [rcx + 0x1e], 3
jne 0x18007da2d
lea rbx, [rcx + 0x10]
test rbx, rbx
je 0x18007da2d
lea r8, str.code
mov rcx, rbx
lea rdx, [rsp + 0x68]
call fcn.180081070
lea r8, str.message
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.180081070
mov eax, dword [rbx]
mov rcx, qword [rbx + 8]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x18007da2d
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007da2d
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x18007da26
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x18007da6f
jmp 0x18007da34
lea rcx, [0x1801d13da]
cmp byte [rcx], 0
lea rdx, [0x1802ba770]
je 0x18007da6c
mov r8d, 1
sub r8, rcx
nop dword [rax]
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x18007da6c
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x18007da50
mov byte [rdx], 0
mov eax, 1
xchg byte [0x180285af9], al
jmp 0x18007e04b
test rbx, rbx
jne 0x18007db3f
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x18007dac4
cmp rax, qword [rbp + 0x7fe8]
je 0x18007dabb
mov rbx, qword [rax + 0x10]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp + 0x7fd8], rbx
mov rax, rbx
test rbx, rbx
jne 0x18007da94
jmp 0x18007dac4
test rax, rax
je 0x18007dac4
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.18019aa3c
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x18007db2c
cmp qword [rdi], 0
je 0x18007daff
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x18007daff
mov rbx, qword [rcx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
test rbx, rbx
jne 0x18007dae4
mov rax, qword [rdi]
test rax, rax
je 0x18007db11
cmp rax, qword [rdi + 0x10]
jne 0x18007db11
mov qword [rax + 8], r13
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.18019aa3c
mov edx, Ordinal_41
mov rcx, rdi
call fcn.18019aa3c
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.18019aa3c
jmp 0x18007d7cd
lea r8, [0x1801d3590]
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.180081070
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x28]
cmp rcx, rax
je 0x18007db7d
cmp word [rcx + 0x1e], 3
lea rdi, [rcx + 0x10]
je 0x18007db80
mov rdi, r13
lea rdx, str.ACTIVITY_JOIN
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18007dc41
test rdi, rdi
je 0x18007e04b
lea r8, str.secret
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.180081070
mov eax, dword [rdi]
mov rcx, qword [rdi + 8]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x18007e04b
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007e04b
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x18007dbf4
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x18007e04b
cmp byte [rcx], 0
lea rdx, [0x1802b6420]
je 0x18007dc2e
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x18007dc2e
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x18007dc12
mov eax, 1
mov byte [rdx], 0
xchg byte [0x180285a8e], al
jmp 0x18007e04b
lea rdx, str.ACTIVITY_SPECTATE
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18007dd02
test rdi, rdi
je 0x18007e04b
lea r8, str.secret
mov rcx, rdi
lea rdx, [rsp + 0x38]
call fcn.180081070
mov eax, dword [rdi]
mov rcx, qword [rdi + 8]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x18007e04b
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007e04b
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x18007dcb5
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x18007e04b
cmp byte [rcx], 0
lea rdx, [0x1802ba930]
je 0x18007dcef
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x18007dcef
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x18007dcd3
mov eax, 1
mov byte [rdx], 0
xchg byte [0x180285af8], al
jmp 0x18007e04b
lea rdx, str.ACTIVITY_JOIN_REQUEST
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18007e04b
test rdi, rdi
je 0x18007ddb2
lea r8, str.user
mov rcx, rdi
lea rdx, [rsp + 0x40]
call fcn.180081070
mov eax, dword [rdi]
mov rcx, qword [rdi + 8]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x18007ddb2
cmp word [rcx + 0x1e], 3
jne 0x18007ddb2
lea r15, [rcx + 0x10]
test r15, r15
je 0x18007ddb5
lea r8, [0x1801d34ac]
mov rcx, r15
lea rdx, [rsp + 0x48]
call fcn.180081070
mov eax, dword [r15]
mov rcx, qword [r15 + 8]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
je 0x18007ddb5
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007ddb5
test word [rcx + 0x1e], r14w
lea rbx, [rcx + 0x10]
jne 0x18007ddad
mov rbx, qword [rbx + 8]
and rbx, rsi
mov rdi, r15
jmp 0x18007ddc0
mov r15, r13
mov rdi, r15
mov rbx, r13
test r15, r15
je 0x18007de1e
lea r8, str.username
mov rcx, r15
lea rdx, [rsp + 0x50]
call fcn.180081070
mov rcx, qword [r15 + 8]
lea r12, [r15 + 8]
mov eax, dword [r15]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x18007de1e
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007de1e
lea r14, [rcx + 0x10]
mov eax, 0x1000
test word [r14 + 0xe], ax
jne 0x18007de16
mov r14, qword [r14 + 8]
and r14, rsi
mov rsi, r14
mov rdi, r12
jmp 0x18007de30
add rdi, 8
mov rsi, r13
mov r12, rdi
mov r14, r13
test r15, r15
je 0x18007de8c
lea r8, str.avatar
mov rcx, r15
lea rdx, [rsp + 0x58]
call fcn.180081070
mov eax, dword [r15]
movabs rdx, 0xffffffffffff
mov rcx, qword [rdi]
and rcx, rdx
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x18007de8c
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18007de8c
lea rdi, [rcx + 0x10]
mov eax, 0x1000
test word [rdi + 0xe], ax
jne 0x18007de8f
mov rdi, qword [rdi + 8]
and rdi, rdx
jmp 0x18007de8f
mov rdi, r13
mov eax, dword [0x180285a88]
nop
cmp eax, 8
jae 0x18007debc
mov r13d, 1
lock xadd dword [0x180285a80], r13d
and r13d, 7
lea rax, [0x180284a80]
shl r13, 9
add r13, rax
test rbx, rbx
je 0x18007e038
test r14, r14
je 0x18007e038
test r13, r13
je 0x18007e038
cmp byte [rbx], 0
mov rcx, r13
je 0x18007df0a
mov edx, 1
sub rdx, rbx
nop word [rax + rax]
lea rax, [rdx + rbx]
cmp rax, 0x20
jae 0x18007df0a
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x18007def0
mov byte [rcx], 0
lea rcx, [r13 + 0x20]
cmp byte [r14], 0
je 0x18007df3c
mov edx, 1
sub rdx, r14
nop
lea rax, [rdx + rsi]
cmp rax, 0x158
jae 0x18007df3c
movzx eax, byte [rsi]
inc rsi
mov byte [rcx], al
inc rcx
cmp byte [rsi], 0
jne 0x18007df20
mov byte [rcx], 0
test r15, r15
je 0x18007dfdf
lea r8, str.discriminator
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.180081070
mov eax, dword [r15]
movabs rsi, 0xffffffffffff
mov rcx, qword [r12]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x18007dfe9
movzx eax, word [rcx + 0x1e]
mov r14d, 0x1000
shr ax, 0xa
test al, 1
je 0x18007dfef
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x18007dfa5
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x18007dfef
cmp byte [rcx], 0
lea rdx, [r13 + 0x178]
je 0x18007dfda
mov r8d, 1
sub r8, rcx
nop
lea rax, [r8 + rcx]
cmp rax, 8
jae 0x18007dfda
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x18007dfc0
mov byte [rdx], 0
jmp 0x18007dfef
movabs rsi, 0xffffffffffff
mov r14d, 0x1000
lea rcx, [r13 + 0x180]
test rdi, rdi
je 0x18007e02c
cmp byte [rdi], 0
je 0x18007e02c
mov edx, 1
sub rdx, rdi
nop dword [rax + rax]
lea rax, [rdx + rdi]
cmp rax, 0x80
jae 0x18007e02c
movzx eax, byte [rdi]
inc rdi
mov byte [rcx], al
inc rcx
cmp byte [rdi], 0
jne 0x18007e010
mov byte [rcx], 0
lock inc dword [0x180285a88]
jmp 0x18007e048
movabs rsi, 0xffffffffffff
mov r14d, 0x1000
xor r13d, r13d
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x18007e087
cmp rax, qword [rbp + 0x7fe8]
je 0x18007e07e
mov rbx, qword [rax + 0x10]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp + 0x7fd8], rbx
mov rax, rbx
test rbx, rbx
jne 0x18007e057
jmp 0x18007e087
test rax, rax
je 0x18007e087
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.18019aa3c
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x18007db2c
cmp qword [rdi], 0
je 0x18007daff
nop
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x18007daff
mov rbx, qword [rcx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
test rbx, rbx
jne 0x18007e0b0
jmp 0x18007daff
mov rax, qword [rbp + 0x7fd8]
mov r15, qword [rsp + 0xc928]
mov r14, qword [rsp + 0xc930]
mov r12, qword [rsp + 0xc940]
mov rsi, qword [rsp + 0xc950]
test rax, rax
je 0x18007e128
mov rcx, qword [rbp + 0x7fe8]
cmp rax, rcx
je 0x18007e12f
mov rbx, qword [rax + 0x10]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rbp + 0x7fd8], rbx
mov rax, rbx
test rbx, rbx
jne 0x18007e100
mov rcx, qword [rbp + 0x7fe8]
test rax, rax
je 0x18007e13d
cmp rax, rcx
jne 0x18007e13d
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.18019aa3c
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x18007e1a8
cmp qword [rdi], 0
je 0x18007e17b
nop dword [rax]
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x18007e17b
mov rbx, qword [rcx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
test rbx, rbx
jne 0x18007e160
mov rax, qword [rdi]
test rax, rax
je 0x18007e18d
cmp rax, qword [rdi + 0x10]
jne 0x18007e18d
mov qword [rax + 8], r13
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.18019aa3c
mov edx, Ordinal_41
mov rcx, rdi
call fcn.18019aa3c
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.18019aa3c
xchg byte [0x180285a8f], r13b
mov rdi, qword [rsp + 0xc948]
test r13b, r13b
mov r13, qword [rsp + 0xc938]
je 0x18007e2ca
cmp qword [0x1802b6740], 0
je 0x18007e2ca
lea rcx, [0x180285b00]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x18007e328
mov eax, dword [0x180285b4c]
cmp eax, 0x7fffffff
je 0x18007e278
mov rbx, qword [0x1802b6740]
mov qword [rbp + 0x8810], rbx
test rbx, rbx
je 0x18007e236
mov r8, rbx
lea rdx, [0x1802b6748]
lea rcx, [rbp + 0x8818]
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp + 0x8810]
lea rcx, [0x180285b00]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r8, rbx
lea rdx, [rbp + 0x8818]
call fcn.18007d150
test al, al
jne 0x18007e2ca
lea rcx, [0x180285b00]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x18007e328
mov eax, dword [0x180285b4c]
cmp eax, 0x7fffffff
jne 0x18007e28c
dec eax
mov ecx, 6
mov dword [0x180285b4c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov r8, qword [rbp + 0x8810]
mov qword [0x1802b6740], r8
test r8, r8
je 0x18007e2b2
lea rdx, [rbp + 0x8818]
lea rcx, [0x1802b6748]
call sub.VCRUNTIME140.dll_memcpy
mov eax, 1
lea rcx, [0x180285b00]
xchg byte [0x180285a8f], al
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [0x1802a6058]
nop
test eax, eax
je 0x18007e317
lea rbx, [0x180286010]
nop dword [rax]
mov eax, 1
lock xadd dword [0x1802a6054], eax
and eax, 7
lea rdx, [rbx + 8]
imul r8, rax, 0x4008
add rdx, r8
mov r8, qword [r8 + rbx]
call fcn.18007d150
lock dec dword [0x1802a6058]
mov eax, dword [0x1802a6058]
nop
jne 0x18007e2e0
mov rbx, qword [rsp + 0xc958]
add rsp, 0xc960
pop rbp
ret
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3