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

Disassembly:
push rbp
lea rbp, [rsp - 0xc860]
mov eax, 0xc960
call fcn.1800d7400
sub rsp, rax
mov rax, qword [0x1801676e8]
test rax, rax
je 0x18000640f
cmp dword [rax + 8], 3
je 0x1800058c2
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
cmp rax, qword [0x180141fb8]
jl 0x18000640f
call fcn.1800057e0
add rsp, 0xc960
pop rbp
jmp 0x180007230
mov qword [rsp + 0xc958], rbx
mov qword [rsp + 0xc950], rsi
mov esi, 0x1000
mov qword [rsp + 0xc948], rdi
mov qword [rsp + 0xc940], r12
xor r12d, r12d
mov qword [rsp + 0xc938], r13
movabs r13, 0xffffffffffff
mov qword [rsp + 0xc930], r14
mov qword [rsp + 0xc928], r15
xorps xmm0, xmm0
mov qword [rbp - 0x78], r12
lea rax, [rbp + 0x7fd8]
mov qword [rbp - 0x68], r12
mov qword [rbp - 0x80], rax
lea rdx, [rsp + 0x70]
lea rax, [rbp + 0x8000]
movdqa xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x70], rax
lea rdi, str.ERROR
lea rax, [rbp - 0x30]
mov qword [rbp - 0x50], r12
mov qword [rbp + 0x7fe8], rax
mov ecx, 3
lea rax, [rbp + 0x7fd0]
mov qword [rbp - 0x48], 0x800
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]
movups xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x7e], cx
mov rcx, qword [0x1801676e8]
mov qword [rbp + 0x8008], rax
mov dword [rbp - 0x40], r12d
mov qword [rbp - 0x38], r12
mov qword [rbp + 0x7fe0], 0x8000
mov qword [rbp + 0x7ff8], r12
mov qword [rbp - 0x30], 0x7fe8
mov qword [rbp - 0x28], r12
mov qword [rbp - 0x20], r12
call fcn.180007700
test al, al
je 0x1800061e4
lea r8, [0x180116570]
lea rdx, [rbp + 0xc878]
lea rcx, [rsp + 0x70]
call fcn.180006d10
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0xc878]
cmp rcx, rax
je 0x180005a2d
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005a2d
test word [rcx + 0x1e], si
lea rbx, [rcx + 0x10]
jne 0x180005a30
mov rbx, qword [rbx + 8]
and rbx, r13
jmp 0x180005a30
mov rbx, r12
lea r8, str.nonce
lea rdx, [rbp + 0xc880]
lea rcx, [rsp + 0x70]
call fcn.180006d10
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0xc880]
cmp rcx, rax
je 0x180005bbf
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005bbf
add rcx, 0x10
test word [rcx + 0xe], si
jne 0x180005a8c
mov rcx, qword [rcx + 8]
and rcx, r13
test rcx, rcx
je 0x180005bbf
test rbx, rbx
je 0x180006157
mov rcx, r12
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x180006157
cmp rcx, 6
jne 0x180005aa1
lea r8, str.data
lea rdx, [rbp + 0xc888]
lea rcx, [rsp + 0x70]
call fcn.180006d10
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rbp + 0xc888]
cmp rcx, rax
je 0x180005b69
cmp word [rcx + 0x1e], 3
jne 0x180005b69
lea rbx, [rcx + 0x10]
test rbx, rbx
je 0x180005b69
lea r8, str.code
mov rcx, rbx
lea rdx, [rsp + 0x68]
call fcn.180006d10
lea r8, str.message
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.180006d10
mov eax, dword [rbx]
mov rcx, qword [rbx + 8]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x20]
cmp rcx, rax
je 0x180005b69
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005b69
add rcx, 0x10
test word [rcx + 0xe], si
jne 0x180005b62
mov rcx, qword [rcx + 8]
and rcx, r13
test rcx, rcx
je 0x180005baf
jmp 0x180005b70
lea rcx, [0x18011656f]
lea rdx, [0x1801676f0]
cmp byte [rcx], r12b
je 0x180005bac
mov r8d, 1
sub r8, rcx
nop word [rax + rax]
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x180005bac
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], r12b
jne 0x180005b90
mov byte [rdx], r12b
mov eax, 1
xchg byte [0x1801635ac], al
jmp 0x180006157
test rbx, rbx
jne 0x180005c81
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x180005c04
cmp rax, qword [rbp + 0x7fe8]
je 0x180005bfb
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 0x180005bd4
jmp 0x180005c04
test rax, rax
je 0x180005c04
mov qword [rax + 8], r12
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.1800d6ce0
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x180005c6e
cmp qword [rdi], r12
je 0x180005c41
mov rbx, qword [rdi]
mov rcx, rbx
cmp rbx, qword [rdi + 0x10]
je 0x180005c41
mov rbx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
test rbx, rbx
jne 0x180005c26
mov rax, qword [rdi]
test rax, rax
je 0x180005c53
cmp rax, qword [rdi + 0x10]
jne 0x180005c53
mov qword [rax + 8], r12
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.1800d6ce0
mov edx, 0x28
mov rcx, rdi
call fcn.1800d6ce0
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.1800d6ce0
jmp 0x18000590c
lea r8, str.data
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.180006d10
mov eax, dword [rsp + 0x70]
mov rcx, qword [rsp + 0x78]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x28]
cmp rcx, rax
je 0x180005cbf
cmp word [rcx + 0x1e], 3
lea rdi, [rcx + 0x10]
je 0x180005cc2
mov rdi, r12
lea rdx, str.ACTIVITY_JOIN
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180005d82
test rdi, rdi
je 0x180006157
lea r8, str.secret
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.180006d10
mov eax, dword [rdi]
mov rcx, qword [rdi + 8]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x30]
cmp rcx, rax
je 0x180006157
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180006157
add rcx, 0x10
test word [rcx + 0xe], si
jne 0x180005d35
mov rcx, qword [rcx + 8]
and rcx, r13
test rcx, rcx
je 0x180006157
lea rdx, [0x1801634a0]
cmp byte [rcx], r12b
je 0x180005d6f
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x180005d6f
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], r12b
jne 0x180005d53
mov eax, 1
mov byte [rdx], r12b
xchg byte [0x18014301d], al
jmp 0x180006157
lea rdx, str.ACTIVITY_SPECTATE
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180005e42
test rdi, rdi
je 0x180006157
lea r8, str.secret
mov rcx, rdi
lea rdx, [rsp + 0x38]
call fcn.180006d10
mov eax, dword [rdi]
mov rcx, qword [rdi + 8]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x38]
cmp rcx, rax
je 0x180006157
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180006157
add rcx, 0x10
test word [rcx + 0xe], si
jne 0x180005df5
mov rcx, qword [rcx + 8]
and rcx, r13
test rcx, rcx
je 0x180006157
lea rdx, [0x1801677f0]
cmp byte [rcx], r12b
je 0x180005e2f
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x180005e2f
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], r12b
jne 0x180005e13
mov eax, 1
mov byte [rdx], r12b
xchg byte [0x18014301f], al
jmp 0x180006157
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 0x180006157
test rdi, rdi
je 0x180005eee
lea r8, str.user
mov rcx, rdi
lea rdx, [rsp + 0x40]
call fcn.180006d10
mov eax, dword [rdi]
mov rcx, qword [rdi + 8]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x40]
cmp rcx, rax
je 0x180005eee
cmp word [rcx + 0x1e], 3
jne 0x180005eee
lea r15, [rcx + 0x10]
test r15, r15
je 0x180005ef1
lea r8, [0x1801165f0]
mov rcx, r15
lea rdx, [rsp + 0x48]
call fcn.180006d10
mov eax, dword [r15]
mov rcx, qword [r15 + 8]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x48]
cmp rcx, rax
je 0x180005ef1
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005ef1
test word [rcx + 0x1e], si
lea rbx, [rcx + 0x10]
jne 0x180005ef9
mov rbx, qword [rbx + 8]
and rbx, r13
jmp 0x180005ef9
mov r15, r12
mov rbx, r12
test r15, r15
je 0x180005f4a
lea r8, str.username
mov rcx, r15
lea rdx, [rsp + 0x50]
call fcn.180006d10
mov eax, dword [r15]
mov rcx, qword [r15 + 8]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x50]
cmp rcx, rax
je 0x180005f4a
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005f4a
test word [rcx + 0x1e], si
lea r14, [rcx + 0x10]
jne 0x180005f45
mov r14, qword [r14 + 8]
and r14, r13
mov rsi, r14
jmp 0x180005f55
mov rsi, r12
mov r14, r12
test r15, r15
je 0x180005fa8
lea r8, str.avatar
mov rcx, r15
lea rdx, [rsp + 0x58]
call fcn.180006d10
mov eax, dword [r15]
mov rcx, qword [r15 + 8]
and rcx, r13
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x58]
cmp rcx, rax
je 0x180005fa8
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005fa8
lea rdi, [rcx + 0x10]
mov eax, 0x1000
test word [rdi + 0xe], ax
jne 0x180005fab
mov rdi, qword [rdi + 8]
and rdi, r13
jmp 0x180005fab
mov rdi, r12
mov eax, dword [0x180143018]
nop
cmp eax, 8
jb 0x180005fbc
mov r13, r12
jmp 0x180005fdd
mov r13d, 1
lock xadd dword [0x180143010], r13d
and r13d, 7
lea rax, [0x180142010]
shl r13, 9
add r13, rax
test rbx, rbx
je 0x180006148
test r14, r14
je 0x180006148
test r13, r13
je 0x180006148
mov rcx, r13
cmp byte [rbx], r12b
je 0x18000602a
mov edx, 1
sub rdx, rbx
nop dword [rax + rax]
lea rax, [rdx + rbx]
cmp rax, 0x20
jae 0x18000602a
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], r12b
jne 0x180006010
mov byte [rcx], r12b
lea rcx, [r13 + 0x20]
cmp byte [r14], r12b
je 0x18000605c
mov edx, 1
sub rdx, r14
nop
lea rax, [rdx + rsi]
cmp rax, 0x158
jae 0x18000605c
movzx eax, byte [rsi]
inc rsi
mov byte [rcx], al
inc rcx
cmp byte [rsi], r12b
jne 0x180006040
mov byte [rcx], r12b
test r15, r15
je 0x1800060ff
lea r8, str.discriminator
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.180006d10
mov eax, dword [r15]
movabs rdx, 0xffffffffffff
mov rcx, qword [r15 + 8]
and rcx, rdx
shl rax, 5
add rax, rcx
mov rcx, qword [rsp + 0x60]
cmp rcx, rax
je 0x1800060ff
movzx eax, word [rcx + 0x1e]
mov esi, 0x1000
shr ax, 0xa
test al, 1
je 0x180006104
add rcx, 0x10
test word [rcx + 0xe], si
jne 0x1800060c3
mov rcx, qword [rcx + 8]
and rcx, rdx
test rcx, rcx
je 0x180006104
lea rdx, [r13 + 0x178]
cmp byte [rcx], r12b
je 0x1800060fa
mov r8d, 1
sub r8, rcx
nop dword [rax]
lea rax, [r8 + rcx]
cmp rax, 8
jae 0x1800060fa
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], r12b
jne 0x1800060e0
mov byte [rdx], r12b
jmp 0x180006104
mov esi, 0x1000
lea rcx, [r13 + 0x180]
test rdi, rdi
je 0x18000613c
cmp byte [rdi], r12b
je 0x18000613c
mov edx, 1
sub rdx, rdi
nop dword [rax]
lea rax, [rdx + rdi]
cmp rax, 0x80
jae 0x18000613c
movzx eax, byte [rdi]
inc rdi
mov byte [rcx], al
inc rcx
cmp byte [rdi], r12b
jne 0x180006120
mov byte [rcx], r12b
lock inc dword [0x180143018]
jmp 0x18000614d
mov esi, 0x1000
movabs r13, 0xffffffffffff
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x180006193
cmp rax, qword [rbp + 0x7fe8]
je 0x18000618a
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 0x180006163
jmp 0x180006193
test rax, rax
je 0x180006193
mov qword [rax + 8], r12
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.1800d6ce0
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x180005c6e
cmp qword [rdi], r12
je 0x180005c41
mov rbx, qword [rdi]
nop dword [rax]
mov rcx, rbx
cmp rbx, qword [rdi + 0x10]
je 0x180005c41
mov rbx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
test rbx, rbx
jne 0x1800061c0
jmp 0x180005c41
mov rax, qword [rbp + 0x7fd8]
mov r15, qword [rsp + 0xc928]
mov r14, qword [rsp + 0xc930]
mov r13, qword [rsp + 0xc938]
mov rsi, qword [rsp + 0xc950]
test rax, rax
je 0x180006248
mov rcx, qword [rbp + 0x7fe8]
cmp rax, rcx
je 0x18000623a
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 0x180006210
jmp 0x180006248
test rax, rax
je 0x180006248
cmp rax, rcx
jne 0x180006248
mov qword [rax + 8], r12
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.1800d6ce0
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x1800062b8
cmp qword [rdi], r12
je 0x18000628b
mov rbx, qword [rdi]
nop word [rax + rax]
mov rcx, rbx
cmp rbx, qword [rdi + 0x10]
je 0x18000628b
mov rbx, qword [rbx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
test rbx, rbx
jne 0x180006270
mov rax, qword [rdi]
test rax, rax
je 0x18000629d
cmp rax, qword [rdi + 0x10]
jne 0x18000629d
mov qword [rax + 8], r12
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.1800d6ce0
mov edx, 0x28
mov rcx, rdi
call fcn.1800d6ce0
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.1800d6ce0
xchg byte [0x18014301e], r12b
mov rdi, qword [rsp + 0xc948]
test r12b, r12b
mov r12, qword [rsp + 0xc940]
je 0x1800063b6
cmp qword [0x1801636e0], 0
je 0x1800063b6
lea rcx, [0x180143020]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18000630e
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov rbx, qword [0x1801636e0]
mov qword [rbp + 0x8810], rbx
test rbx, rbx
je 0x18000633e
mov r8, rbx
lea rdx, [0x1801636e8]
lea rcx, [rbp + 0x8818]
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp + 0x8810]
lea rcx, [0x180143020]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r8, rbx
lea rdx, [rbp + 0x8818]
call fcn.180007610
test al, al
jne 0x1800063b6
lea rcx, [0x180143020]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x180006378
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov r8, qword [rbp + 0x8810]
mov qword [0x1801636e0], r8
test r8, r8
je 0x18000639e
lea rdx, [rbp + 0x8818]
lea rcx, [0x1801636e8]
call sub.VCRUNTIME140.dll_memcpy
mov eax, 1
lea rcx, [0x180143020]
xchg byte [0x18014301e], al
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [0x1801630b8]
nop
test eax, eax
je 0x180006407
lea rbx, [0x180143070]
nop dword [rax + rax]
mov eax, 1
lock xadd dword [0x1801630b4], eax
and eax, 7
lea rdx, [rbx + 8]
imul r8, rax, 0x4008
add rdx, r8
mov r8, qword [r8 + rbx]
call fcn.180007610
lock dec dword [0x1801630b8]
mov eax, dword [0x1801630b8]
nop
jne 0x1800063d0
mov rbx, qword [rsp + 0xc958]
add rsp, 0xc960
pop rbp
ret
mov qword [rsp + 8], rcx
push rbp
push rsi
lea rbp, [rsp - 0x8828]
mov eax, 0x8928
call fcn.1800d7400
sub rsp, rax
mov rsi, qword [0x1801676e8]
mov eax, dword [rsi + 8]
cmp eax, 3
je 0x18000759f
mov qword [rsp + 0x8948], rbx
xor ebx, ebx
mov qword [rsp + 0x8950], rdi
test eax, eax
jne 0x180007371
mov eax, dword [0x180116420]
lea rcx, [rsp + 0x40]
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov rdi, qword [rsi]
xor r9d, r9d
movups xmm1, xmmword [0x180116408]
mov dword [rsp + 0x68], eax
xor r8d, r8d
movzx eax, word [0x180116424]
mov edx, 0xc0000000
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x6c], ax
mov eax, 0x30
movsd xmm0, qword [0x180116418]
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 0x18000736b
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x180007317
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x18000758f
inc ax
mov word [rsp + 0x6a], ax
jmp 0x18000733a
cmp eax, 0xe7
jne 0x18000758f
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x18000758f
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 0x1800072f3
mov byte [rdi], 1
mov eax, dword [rsi + 8]
mov qword [rsp + 0x8918], r14
cmp eax, 1
jne 0x180007514
lea rcx, [rsp + 0x70]
call fcn.1800056f0
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.180007700
test al, al
je 0x1800074da
mov qword [rsp + 0x8920], r12
lea r8, [0x180116620]
lea rdx, [rbp + 0x8840]
mov qword [rsp + 0x8910], r15
lea rcx, [rsp + 0x70]
call fcn.180006d10
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 0x180007418
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180007418
test word [rcx + 0x1e], r12w
lea r14, [rcx + 0x10]
jne 0x18000741b
mov r14, qword [r14 + 8]
and r14, r15
jmp 0x18000741b
mov r14, rbx
lea r8, [0x180116570]
lea rdx, [rbp + 0x8840]
lea rcx, [rsp + 0x70]
call fcn.180006d10
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 0x180007472
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180007472
test word [rcx + 0x1e], r12w
lea rdi, [rcx + 0x10]
jne 0x180007475
mov rdi, qword [rdi + 8]
and rdi, r15
jmp 0x180007475
mov rdi, rbx
mov r15, qword [rsp + 0x8910]
mov r12, qword [rsp + 0x8920]
test r14, r14
je 0x1800074da
test rdi, rdi
je 0x1800074da
lea rdx, str.DISPATCH
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x1800074da
lea rcx, str.READY
nop dword [rax]
movzx eax, byte [rdi + rbx]
inc rbx
cmp al, byte [rcx + rbx - 1]
jne 0x1800074da
cmp rbx, 6
jne 0x1800074b0
mov rax, qword [rsi + 0x10]
mov dword [rsi + 8], 3
test rax, rax
je 0x1800074da
lea rcx, [rsp + 0x70]
call rax
lea rcx, [rbp + 0x7fd8]
call fcn.180006ca0
mov rbx, qword [rbp - 0x78]
test rbx, rbx
je 0x180007504
mov rcx, rbx
call fcn.180006ca0
mov edx, 0x28
mov rcx, rbx
call fcn.1800d6ce0
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.1800d6ce0
jmp 0x180007587
lea rdi, [rsi + 0x164]
lea r9, [rsi + 0x20]
mov dword [rdi], ebx
lea rcx, [rsi + 0x16c]
call fcn.18000b580
mov rcx, qword [rsi]
mov dword [rsi + 0x168], eax
test rcx, rcx
je 0x18000757f
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000757f
test rdi, rdi
je 0x18000757f
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 0x18000757f
cmp dword [rbp + 0x8840], r14d
jne 0x18000757f
mov dword [rsi + 8], eax
jmp 0x180007587
mov rcx, rsi
call fcn.1800075b0
mov r14, qword [rsp + 0x8918]
mov rbx, qword [rsp + 0x8948]
mov rdi, qword [rsp + 0x8950]
add rsp, 0x8928
pop rsi
pop rbp
ret