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

Disassembly:
push rbp
lea rbp, [rsp - 0x8850]
mov eax, 0x8950
call fcn.1800e55f0
sub rsp, rax
mov rax, qword [0x18015f098]
test rax, rax
je 0x180006d2f
cmp dword [rax + 8], 3
je 0x1800061a2
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
cmp rax, qword [0x18013a9d0]
jl 0x180006d2f
call fcn.180006090
add rsp, 0x8950
pop rbp
jmp 0x180007a30
mov qword [rsp + 0x8948], rbx
mov qword [rsp + 0x8940], rsi
movabs rsi, 0xffffffffffff
mov qword [rsp + 0x8938], rdi
mov qword [rsp + 0x8928], r13
xor r13d, r13d
mov qword [rsp + 0x8920], r14
mov r14d, 0x1000
mov qword [rsp + 0x8930], r12
mov qword [rsp + 0x8918], r15
mov rcx, qword [0x18015f098]
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.180007f90
test al, al
je 0x180006ae4
lea r8, [0x18010a118]
lea rdx, [rbp + 0x8860]
lea rcx, [rsp + 0x70]
call fcn.1800076d0
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0x8860]
cmp rcx, rax
je 0x18000630f
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18000630f
test word [rcx + 0x1e], r14w
lea rbx, [rcx + 0x10]
jne 0x180006312
mov rbx, qword [rbx + 8]
and rbx, rsi
jmp 0x180006312
mov rbx, r13
lea r8, str.nonce
lea rdx, [rbp + 0x8868]
lea rcx, [rsp + 0x70]
call fcn.1800076d0
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0x8868]
cmp rcx, rax
je 0x1800064a0
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x1800064a0
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x18000636f
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x1800064a0
test rbx, rbx
je 0x180006a5b
mov rcx, r13
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x180006a5b
cmp rcx, 6
jne 0x180006384
lea r8, str.data
lea rdx, [rbp + 0x8870]
lea rcx, [rsp + 0x70]
call fcn.1800076d0
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0x8870]
cmp rcx, rax
je 0x180006455
cmp word [rcx + 0x1e], 3
jne 0x180006455
lea rbx, [rcx + 0x10]
test rbx, rbx
je 0x180006455
lea r8, str.code
mov rcx, rbx
lea rdx, [rsp + 0x68]
call fcn.1800076d0
lea r8, str.message
mov rcx, rbx
lea rdx, [rbp + 0x8878]
call fcn.1800076d0
mov rax, qword [rbx + 8]
mov ecx, dword [rbx]
and rax, rsi
shl rcx, 5
add rax, rcx
mov rcx, qword [rbp + 0x8878]
cmp rcx, rax
je 0x180006455
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180006455
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x18000644e
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x180006490
jmp 0x18000645c
lea rcx, [0x18010a117]
cmp byte [rcx], 0
lea rdx, [0x18015f0a0]
je 0x18000648d
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x18000648d
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x180006471
mov byte [rdx], 0
mov eax, 1
xchg byte [0x18013a9d9], al
jmp 0x180006a5b
test rbx, rbx
jne 0x180006560
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x1800064e5
cmp rax, qword [rbp + 0x7fe8]
je 0x1800064dc
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 0x1800064b5
jmp 0x1800064e5
test rax, rax
je 0x1800064e5
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.18007ac9c
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x18000654d
cmp qword [rdi], 0
je 0x180006520
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x180006520
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 0x180006505
mov rax, qword [rdi]
test rax, rax
je 0x180006532
cmp rax, qword [rdi + 0x10]
jne 0x180006532
mov qword [rax + 8], r13
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.18007ac9c
mov edx, 0x28
mov rcx, rdi
call fcn.18007ac9c
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.18007ac9c
jmp 0x1800061ed
lea r8, str.data
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x70]
call fcn.1800076d0
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x18000659e
cmp word [rcx + 0x1e], 3
lea rdi, [rcx + 0x10]
je 0x1800065a1
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 0x180006662
test rdi, rdi
je 0x180006a5b
lea r8, str.secret
mov rcx, rdi
lea rdx, [rsp + 0x28]
call fcn.1800076d0
mov rax, qword [rdi + 8]
mov ecx, dword [rdi]
and rax, rsi
shl rcx, 5
add rax, rcx
mov rcx, qword [rsp + 0x28]
cmp rcx, rax
je 0x180006a5b
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180006a5b
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x180006615
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x180006a5b
cmp byte [rcx], 0
lea rdx, [0x18015ae50]
je 0x18000664f
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x18000664f
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x180006633
mov eax, 1
mov byte [rdx], 0
xchg byte [0x18013a9ce], al
jmp 0x180006a5b
lea rdx, str.ACTIVITY_SPECTATE
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180006723
test rdi, rdi
je 0x180006a5b
lea r8, str.secret
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.1800076d0
mov rax, qword [rdi + 8]
mov ecx, dword [rdi]
and rax, rsi
shl rcx, 5
add rax, rcx
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x180006a5b
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180006a5b
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x1800066d6
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x180006a5b
cmp byte [rcx], 0
lea rdx, [0x18015f1a0]
je 0x180006710
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x180006710
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x1800066f4
mov eax, 1
mov byte [rdx], 0
xchg byte [0x18013a9d8], al
jmp 0x180006a5b
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 0x180006a5b
test rdi, rdi
je 0x1800067d6
lea r8, str.user
mov rcx, rdi
lea rdx, [rsp + 0x38]
call fcn.1800076d0
mov rax, qword [rdi + 8]
mov ecx, dword [rdi]
and rax, rsi
shl rcx, 5
add rax, rcx
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x1800067d6
cmp word [rcx + 0x1e], 3
jne 0x1800067d6
lea rdi, [rcx + 0x10]
mov r15, rdi
test rdi, rdi
je 0x1800067dc
lea r8, [0x18010a198]
mov rcx, rdi
lea rdx, [rsp + 0x40]
call fcn.1800076d0
mov rcx, qword [rdi + 8]
lea r12, [rdi + 8]
mov eax, dword [rdi]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x1800067dc
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x1800067dc
test word [rcx + 0x1e], r14w
lea rbx, [rcx + 0x10]
jne 0x1800067e8
mov rbx, qword [rbx + 8]
and rbx, rsi
jmp 0x1800067e8
mov r15, r13
mov rdi, r13
lea r12, [rdi + 8]
mov rbx, r13
test r15, r15
je 0x18000683f
lea r8, str.username
mov rcx, r15
lea rdx, [rsp + 0x48]
call fcn.1800076d0
mov eax, dword [r15]
mov rcx, qword [r12]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
je 0x18000683f
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18000683f
lea r14, [rcx + 0x10]
mov eax, 0x1000
test word [r14 + 0xe], ax
jne 0x18000683a
mov r14, qword [r14 + 8]
and r14, rsi
mov rsi, r14
jmp 0x18000684a
mov rsi, r13
mov r14, r13
test r15, r15
je 0x1800068a7
lea r8, str.avatar
mov rcx, r15
lea rdx, [rsp + 0x50]
call fcn.1800076d0
mov eax, dword [r15]
movabs rdx, 0xffffffffffff
mov rcx, qword [r12]
and rcx, rdx
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x1800068a7
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x1800068a7
lea rdi, [rcx + 0x10]
mov eax, 0x1000
test word [rdi + 0xe], ax
jne 0x1800068aa
mov rdi, qword [rdi + 8]
and rdi, rdx
jmp 0x1800068aa
mov rdi, r13
mov eax, dword [0x18013a9c8]
nop
cmp eax, 8
jae 0x1800068d7
mov r13d, 1
lock xadd dword [0x18013a9c0], r13d
and r13d, 7
lea rax, [0x1801399c0]
shl r13, 9
add r13, rax
test rbx, rbx
je 0x180006a48
test r14, r14
je 0x180006a48
test r13, r13
je 0x180006a48
cmp byte [rbx], 0
mov rcx, r13
je 0x18000691c
mov edx, 1
sub rdx, rbx
lea rax, [rdx + rbx]
cmp rax, 0x20
jae 0x18000691c
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x180006902
mov byte [rcx], 0
lea rcx, [r13 + 0x20]
cmp byte [r14], 0
je 0x18000694d
mov edx, 1
sub rdx, r14
lea rax, [rdx + rsi]
cmp rax, 0x158
jae 0x18000694d
movzx eax, byte [rsi]
inc rsi
mov byte [rcx], al
inc rcx
cmp byte [rsi], 0
jne 0x180006931
mov byte [rcx], 0
test r15, r15
je 0x1800069ef
lea r8, str.discriminator
mov rcx, r15
lea rdx, [rsp + 0x58]
call fcn.1800076d0
mov eax, dword [r15]
movabs rsi, 0xffffffffffff
mov rcx, qword [r12]
and rcx, rsi
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x1800069f9
movzx eax, word [rcx + 0x1e]
mov r14d, 0x1000
shr ax, 0xa
test al, 1
je 0x1800069ff
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x1800069b6
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x1800069ff
cmp byte [rcx], 0
lea rdx, [r13 + 0x178]
je 0x1800069ea
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 8
jae 0x1800069ea
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x1800069d0
mov byte [rdx], 0
jmp 0x1800069ff
movabs rsi, 0xffffffffffff
mov r14d, 0x1000
lea rcx, [r13 + 0x180]
test rdi, rdi
je 0x180006a3c
cmp byte [rdi], 0
je 0x180006a3c
mov edx, 1
sub rdx, rdi
nop dword [rax + rax]
lea rax, [rdx + rdi]
cmp rax, 0x80
jae 0x180006a3c
movzx eax, byte [rdi]
inc rdi
mov byte [rcx], al
inc rcx
cmp byte [rdi], 0
jne 0x180006a20
mov byte [rcx], 0
lock inc dword [0x18013a9c8]
jmp 0x180006a58
movabs rsi, 0xffffffffffff
mov r14d, 0x1000
xor r13d, r13d
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x180006a97
cmp rax, qword [rbp + 0x7fe8]
je 0x180006a8e
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 0x180006a67
jmp 0x180006a97
test rax, rax
je 0x180006a97
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.18007ac9c
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x18000654d
cmp qword [rdi], 0
je 0x180006520
nop
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x180006520
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 0x180006ac0
jmp 0x180006520
mov rax, qword [rbp + 0x7fd8]
mov r15, qword [rsp + 0x8918]
mov r14, qword [rsp + 0x8920]
mov r12, qword [rsp + 0x8930]
mov rsi, qword [rsp + 0x8940]
test rax, rax
je 0x180006b38
mov rcx, qword [rbp + 0x7fe8]
cmp rax, rcx
je 0x180006b3f
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 0x180006b10
mov rcx, qword [rbp + 0x7fe8]
test rax, rax
je 0x180006b4d
cmp rax, rcx
jne 0x180006b4d
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.18007ac9c
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x180006bb8
cmp qword [rdi], 0
je 0x180006b8b
nop dword [rax]
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x180006b8b
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 0x180006b70
mov rax, qword [rdi]
test rax, rax
je 0x180006b9d
cmp rax, qword [rdi + 0x10]
jne 0x180006b9d
mov qword [rax + 8], r13
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.18007ac9c
mov edx, 0x28
mov rcx, rdi
call fcn.18007ac9c
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.18007ac9c
xchg byte [0x18013a9cf], r13b
mov rdi, qword [rsp + 0x8938]
test r13b, r13b
mov r13, qword [rsp + 0x8928]
je 0x180006cd2
cmp qword [0x18015b090], 0
je 0x180006cd2
lea rcx, [0x180130220]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x180006d38
mov eax, dword [0x18013026c]
cmp eax, 0x7fffffff
je 0x180006c84
mov rbx, qword [0x18015b090]
mov qword [rsp + 0x70], rbx
test rbx, rbx
je 0x180006c40
mov r8, rbx
lea rdx, [0x18015b098]
lea rcx, [rsp + 0x78]
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rsp + 0x70]
lea rcx, [0x180130220]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r8, rbx
lea rdx, [rsp + 0x78]
call fcn.180007ea0
test al, al
jne 0x180006cd2
lea rcx, [0x180130220]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
jne 0x180006d38
mov eax, dword [0x18013026c]
cmp eax, 0x7fffffff
jne 0x180006c98
dec eax
mov ecx, 6
mov dword [0x18013026c], eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov r8, qword [rsp + 0x70]
mov qword [0x18015b090], r8
test r8, r8
je 0x180006cba
lea rdx, [rsp + 0x78]
lea rcx, [0x18015b098]
call sub.VCRUNTIME140.dll_memcpy
mov eax, 1
lea rcx, [0x180130220]
xchg byte [0x18013a9cf], al
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [0x18015aa28]
nop
test eax, eax
je 0x180006d27
lea rbx, [0x18013a9e0]
nop dword [rax]
nop dword [rax + rax]
mov eax, 1
lock xadd dword [0x18015aa24], eax
and eax, 7
lea rdx, [rbx + 8]
imul r8, rax, 0x4008
add rdx, r8
mov r8, qword [r8 + rbx]
call fcn.180007ea0
lock dec dword [0x18015aa28]
mov eax, dword [0x18015aa28]
nop
jne 0x180006cf0
mov rbx, qword [rsp + 0x8948]
add rsp, 0x8950
pop rbp
ret
mov ecx, 5
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
mov qword [rsp + 8], rcx
push rbp
push rdi
lea rbp, [rsp - 0x8828]
mov eax, 0x8928
call fcn.1800e55f0
sub rsp, rax
mov rdi, qword [0x18015f098]
mov eax, dword [rdi + 8]
cmp eax, 3
je 0x180007e2a
mov qword [rsp + 0x8918], r14
xor r14d, r14d
mov qword [rsp + 0x8948], rbx
test eax, eax
jne 0x180007b71
mov eax, dword [0x180109fc8]
lea rcx, [rsp + 0x40]
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov rbx, qword [rdi]
xor r9d, r9d
movups xmm1, xmmword [0x180109fb0]
mov dword [rsp + 0x68], eax
xor r8d, r8d
movzx eax, word [0x180109fcc]
mov edx, 0xc0000000
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x6c], ax
mov eax, 0x30
movsd xmm0, qword [0x180109fc0]
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], r14d
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 [rbx + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x180007b6e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x180007b19
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x180007e1a
inc ax
mov word [rsp + 0x6a], ax
jmp 0x180007b3c
cmp eax, 0xe7
jne 0x180007e1a
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x180007e1a
mov qword [rsp + 0x30], r14
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x28], r14d
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbx + 8], rax
cmp rax, 0xffffffffffffffff
je 0x180007af5
mov byte [rbx], 1
cmp dword [rdi + 8], 1
mov qword [rsp + 0x8950], rsi
jne 0x180007d9f
lea rcx, [rsp + 0x70]
call fcn.180005c30
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.180007f90
test al, al
je 0x180007cda
mov qword [rsp + 0x8920], r12
lea r8, [0x18010a1c8]
lea rdx, [rbp + 0x8840]
mov qword [rsp + 0x8910], r15
lea rcx, [rsp + 0x70]
call fcn.1800076d0
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 0x180007c19
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180007c19
test word [rcx + 0x1e], r12w
lea rsi, [rcx + 0x10]
jne 0x180007c1c
mov rsi, qword [rsi + 8]
and rsi, r15
jmp 0x180007c1c
mov rsi, r14
lea r8, [0x18010a118]
lea rdx, [rbp + 0x8840]
lea rcx, [rsp + 0x70]
call fcn.1800076d0
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 0x180007c73
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180007c73
test word [rcx + 0x1e], r12w
lea rbx, [rcx + 0x10]
jne 0x180007c76
mov rbx, qword [rbx + 8]
and rbx, r15
jmp 0x180007c76
mov rbx, r14
mov r15, qword [rsp + 0x8910]
mov r12, qword [rsp + 0x8920]
test rsi, rsi
je 0x180007cda
test rbx, rbx
je 0x180007cda
lea rdx, str.DISPATCH
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180007cda
mov rcx, r14
lea rdx, str.READY
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x180007cda
cmp rcx, 6
jne 0x180007cb0
mov rax, qword [rdi + 0x10]
mov dword [rdi + 8], 3
test rax, rax
je 0x180007cda
lea rcx, [rsp + 0x70]
call rax
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x180007d29
mov rbx, rax
mov r8, rax
mov rdx, rax
nop
mov rcx, qword [rbp + 0x7fe8]
cmp rbx, rcx
je 0x180007d20
mov rbx, qword [rdx + 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
mov r8, rbx
mov rdx, rbx
test rbx, rbx
jne 0x180007cf0
jmp 0x180007d29
cmp r8, rcx
jne 0x180007d29
mov qword [r8 + 8], r14
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.18007ac9c
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x180007d8f
mov rax, qword [rdi]
test rax, rax
je 0x180007d74
nop dword [rax + rax]
cmp rax, qword [rdi + 0x10]
je 0x180007d70
mov rbx, qword [rax + 0x10]
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
mov rax, rbx
test rbx, rbx
jne 0x180007d50
jmp 0x180007d74
mov qword [rax + 8], r14
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.18007ac9c
mov edx, 0x28
mov rcx, rdi
call fcn.18007ac9c
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.18007ac9c
jmp 0x180007e12
lea rbx, [rdi + 0x164]
lea r9, [rdi + 0x20]
mov dword [rbx], r14d
lea rcx, [rdi + 0x16c]
call fcn.18000b8c0
mov rcx, qword [rdi]
mov dword [rdi + 0x168], eax
test rcx, rcx
je 0x180007e0a
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x180007e0a
test rbx, rbx
je 0x180007e0a
lea esi, [rax + 8]
mov dword [rbp + 0x8840], r14d
mov r8d, esi
mov qword [rsp + 0x20], r14
lea r9, [rbp + 0x8840]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x180007e0a
cmp dword [rbp + 0x8840], esi
jne 0x180007e0a
mov dword [rdi + 8], eax
jmp 0x180007e12
mov rcx, rdi
call fcn.180007e40
mov rsi, qword [rsp + 0x8950]
mov rbx, qword [rsp + 0x8948]
mov r14, qword [rsp + 0x8918]
add rsp, 0x8928
pop rdi
pop rbp
ret