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

Disassembly:
push rbp
lea rbp, [rsp - 0xc860]
mov eax, 0xc960
call fcn.1800fc620
sub rsp, rax
mov rax, qword [0x180234fa0]
test rax, rax
je 0x18000617f
cmp dword [rax + 8], 3
je 0x180005602
call qword [sym.imp.MSVCP140.dll__Xtime_get_ticks]
cmp rax, qword [0x1802107d0]
jl 0x18000617f
call fcn.180005520
add rsp, 0xc960
pop rbp
jmp 0x180006e60
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 [0x180234fa0]
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.1800073d0
test al, al
je 0x180005f54
lea r8, [0x180197cb0]
lea rdx, [rbp + 0xc878]
lea rcx, [rsp + 0x70]
call fcn.1800069f0
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 0x18000576f
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18000576f
test word [rcx + 0x1e], r14w
lea rbx, [rcx + 0x10]
jne 0x180005772
mov rbx, qword [rbx + 8]
and rbx, rsi
jmp 0x180005772
mov rbx, r13
lea r8, str.nonce
lea rdx, [rbp + 0xc880]
lea rcx, [rsp + 0x70]
call fcn.1800069f0
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 0x1800058ff
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x1800058ff
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x1800057cf
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x1800058ff
test rbx, rbx
je 0x180005ecb
mov rcx, r13
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x180005ecb
cmp rcx, 6
jne 0x1800057e4
lea r8, str.data
lea rdx, [rbp + 0xc888]
lea rcx, [rsp + 0x70]
call fcn.1800069f0
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 0x1800058ad
cmp word [rcx + 0x1e], 3
jne 0x1800058ad
lea rbx, [rcx + 0x10]
test rbx, rbx
je 0x1800058ad
lea r8, str.code
mov rcx, rbx
lea rdx, [rsp + 0x68]
call fcn.1800069f0
lea r8, str.message
mov rcx, rbx
lea rdx, [rsp + 0x20]
call fcn.1800069f0
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 0x1800058ad
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x1800058ad
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x1800058a6
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x1800058ef
jmp 0x1800058b4
lea rcx, [0x180197b08]
cmp byte [rcx], 0
lea rdx, [0x180234ea0]
je 0x1800058ec
mov r8d, 1
sub r8, rcx
nop dword [rax]
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x1800058ec
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x1800058d0
mov byte [rdx], 0
mov eax, 1
xchg byte [0x180234e9d], al
jmp 0x180005ecb
test rbx, rbx
jne 0x1800059bf
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x180005944
cmp rax, qword [rbp + 0x7fe8]
je 0x18000593b
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 0x180005914
jmp 0x180005944
test rax, rax
je 0x180005944
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.1800fbf00
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x1800059ac
cmp qword [rdi], 0
je 0x18000597f
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x18000597f
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 0x180005964
mov rax, qword [rdi]
test rax, rax
je 0x180005991
cmp rax, qword [rdi + 0x10]
jne 0x180005991
mov qword [rax + 8], r13
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.1800fbf00
mov edx, 0x28
mov rcx, rdi
call fcn.1800fbf00
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.1800fbf00
jmp 0x18000564d
lea r8, str.data
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x70]
call fcn.1800069f0
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 0x1800059fd
cmp word [rcx + 0x1e], 3
lea rdi, [rcx + 0x10]
je 0x180005a00
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 0x180005ac1
test rdi, rdi
je 0x180005ecb
lea r8, str.secret
mov rcx, rdi
lea rdx, [rsp + 0x30]
call fcn.1800069f0
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 0x180005ecb
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005ecb
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x180005a74
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x180005ecb
cmp byte [rcx], 0
lea rdx, [0x180230c60]
je 0x180005aae
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x180005aae
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x180005a92
mov eax, 1
mov byte [rdx], 0
xchg byte [0x18021077e], al
jmp 0x180005ecb
lea rdx, str.ACTIVITY_SPECTATE
mov rcx, rbx
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x180005b82
test rdi, rdi
je 0x180005ecb
lea r8, str.secret
mov rcx, rdi
lea rdx, [rsp + 0x38]
call fcn.1800069f0
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 0x180005ecb
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005ecb
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x180005b35
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x180005ecb
cmp byte [rcx], 0
lea rdx, [0x180234fc0]
je 0x180005b6f
mov r8d, 1
sub r8, rcx
lea rax, [r8 + rcx]
cmp rax, 0x100
jae 0x180005b6f
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x180005b53
mov eax, 1
mov byte [rdx], 0
xchg byte [0x180234e9c], al
jmp 0x180005ecb
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 0x180005ecb
test rdi, rdi
je 0x180005c32
lea r8, str.user
mov rcx, rdi
lea rdx, [rsp + 0x40]
call fcn.1800069f0
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 0x180005c32
cmp word [rcx + 0x1e], 3
jne 0x180005c32
lea r15, [rcx + 0x10]
test r15, r15
je 0x180005c35
lea r8, [0x180197d30]
mov rcx, r15
lea rdx, [rsp + 0x48]
call fcn.1800069f0
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 0x180005c35
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005c35
test word [rcx + 0x1e], r14w
lea rbx, [rcx + 0x10]
jne 0x180005c2d
mov rbx, qword [rbx + 8]
and rbx, rsi
mov rdi, r15
jmp 0x180005c40
mov r15, r13
mov rdi, r15
mov rbx, r13
test r15, r15
je 0x180005c9e
lea r8, str.username
mov rcx, r15
lea rdx, [rsp + 0x50]
call fcn.1800069f0
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 0x180005c9e
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005c9e
lea r14, [rcx + 0x10]
mov eax, 0x1000
test word [r14 + 0xe], ax
jne 0x180005c96
mov r14, qword [r14 + 8]
and r14, rsi
mov rsi, r14
mov rdi, r12
jmp 0x180005cb0
add rdi, 8
mov rsi, r13
mov r12, rdi
mov r14, r13
test r15, r15
je 0x180005d0c
lea r8, str.avatar
mov rcx, r15
lea rdx, [rsp + 0x58]
call fcn.1800069f0
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 0x180005d0c
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180005d0c
lea rdi, [rcx + 0x10]
mov eax, 0x1000
test word [rdi + 0xe], ax
jne 0x180005d0f
mov rdi, qword [rdi + 8]
and rdi, rdx
jmp 0x180005d0f
mov rdi, r13
mov eax, dword [0x180210778]
nop
cmp eax, 8
jae 0x180005d3c
mov r13d, 1
lock xadd dword [0x180210770], r13d
and r13d, 7
lea rax, [0x18020f770]
shl r13, 9
add r13, rax
test rbx, rbx
je 0x180005eb8
test r14, r14
je 0x180005eb8
test r13, r13
je 0x180005eb8
cmp byte [rbx], 0
mov rcx, r13
je 0x180005d8a
mov edx, 1
sub rdx, rbx
nop word [rax + rax]
lea rax, [rdx + rbx]
cmp rax, 0x20
jae 0x180005d8a
movzx eax, byte [rbx]
inc rbx
mov byte [rcx], al
inc rcx
cmp byte [rbx], 0
jne 0x180005d70
mov byte [rcx], 0
lea rcx, [r13 + 0x20]
cmp byte [r14], 0
je 0x180005dbc
mov edx, 1
sub rdx, r14
nop
lea rax, [rdx + rsi]
cmp rax, 0x158
jae 0x180005dbc
movzx eax, byte [rsi]
inc rsi
mov byte [rcx], al
inc rcx
cmp byte [rsi], 0
jne 0x180005da0
mov byte [rcx], 0
test r15, r15
je 0x180005e5f
lea r8, str.discriminator
mov rcx, r15
lea rdx, [rsp + 0x60]
call fcn.1800069f0
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 0x180005e69
movzx eax, word [rcx + 0x1e]
mov r14d, 0x1000
shr ax, 0xa
test al, 1
je 0x180005e6f
add rcx, 0x10
test word [rcx + 0xe], r14w
jne 0x180005e25
mov rcx, qword [rcx + 8]
and rcx, rsi
test rcx, rcx
je 0x180005e6f
cmp byte [rcx], 0
lea rdx, [r13 + 0x178]
je 0x180005e5a
mov r8d, 1
sub r8, rcx
nop
lea rax, [r8 + rcx]
cmp rax, 8
jae 0x180005e5a
movzx eax, byte [rcx]
inc rcx
mov byte [rdx], al
inc rdx
cmp byte [rcx], 0
jne 0x180005e40
mov byte [rdx], 0
jmp 0x180005e6f
movabs rsi, 0xffffffffffff
mov r14d, 0x1000
lea rcx, [r13 + 0x180]
test rdi, rdi
je 0x180005eac
cmp byte [rdi], 0
je 0x180005eac
mov edx, 1
sub rdx, rdi
nop dword [rax + rax]
lea rax, [rdx + rdi]
cmp rax, 0x80
jae 0x180005eac
movzx eax, byte [rdi]
inc rdi
mov byte [rcx], al
inc rcx
cmp byte [rdi], 0
jne 0x180005e90
mov byte [rcx], 0
lock inc dword [0x180210778]
jmp 0x180005ec8
movabs rsi, 0xffffffffffff
mov r14d, 0x1000
xor r13d, r13d
mov rax, qword [rbp + 0x7fd8]
test rax, rax
je 0x180005f07
cmp rax, qword [rbp + 0x7fe8]
je 0x180005efe
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 0x180005ed7
jmp 0x180005f07
test rax, rax
je 0x180005f07
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.1800fbf00
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x1800059ac
cmp qword [rdi], 0
je 0x18000597f
nop
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x18000597f
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 0x180005f30
jmp 0x18000597f
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 0x180005fa8
mov rcx, qword [rbp + 0x7fe8]
cmp rax, rcx
je 0x180005faf
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 0x180005f80
mov rcx, qword [rbp + 0x7fe8]
test rax, rax
je 0x180005fbd
cmp rax, rcx
jne 0x180005fbd
mov qword [rax + 8], r13
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.1800fbf00
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x180006028
cmp qword [rdi], 0
je 0x180005ffb
nop dword [rax]
mov rcx, qword [rdi]
cmp rcx, qword [rdi + 0x10]
je 0x180005ffb
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 0x180005fe0
mov rax, qword [rdi]
test rax, rax
je 0x18000600d
cmp rax, qword [rdi + 0x10]
jne 0x18000600d
mov qword [rax + 8], r13
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.1800fbf00
mov edx, 0x28
mov rcx, rdi
call fcn.1800fbf00
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.1800fbf00
xchg byte [0x18021077f], r13b
mov rdi, qword [rsp + 0xc948]
test r13b, r13b
mov r13, qword [rsp + 0xc938]
je 0x180006126
cmp qword [0x180230e90], 0
je 0x180006126
lea rcx, [0x180210780]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x18000607e
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov rbx, qword [0x180230e90]
mov qword [rbp + 0x8810], rbx
test rbx, rbx
je 0x1800060ae
mov r8, rbx
lea rdx, [0x180230e98]
lea rcx, [rbp + 0x8818]
call sub.VCRUNTIME140.dll_memcpy
mov rbx, qword [rbp + 0x8810]
lea rcx, [0x180210780]
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov r8, rbx
lea rdx, [rbp + 0x8818]
call fcn.1800072e0
test al, al
jne 0x180006126
lea rcx, [0x180210780]
call qword [sym.imp.MSVCP140.dll__Mtx_lock]
test eax, eax
je 0x1800060e8
mov ecx, eax
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_C_error_int_]
int3
mov r8, qword [rbp + 0x8810]
mov qword [0x180230e90], r8
test r8, r8
je 0x18000610e
lea rdx, [rbp + 0x8818]
lea rcx, [0x180230e98]
call sub.VCRUNTIME140.dll_memcpy
mov eax, 1
lea rcx, [0x180210780]
xchg byte [0x18021077f], al
call qword [sym.imp.MSVCP140.dll__Mtx_unlock]
mov eax, dword [0x180230828]
nop
test eax, eax
je 0x180006177
lea rbx, [0x1802107e0]
nop dword [rax + rax]
mov eax, 1
lock xadd dword [0x180230824], eax
and eax, 7
lea rdx, [rbx + 8]
imul r8, rax, 0x4008
add rdx, r8
mov r8, qword [r8 + rbx]
call fcn.1800072e0
lock dec dword [0x180230828]
mov eax, dword [0x180230828]
nop
jne 0x180006140
mov rbx, qword [rsp + 0xc958]
add rsp, 0xc960
pop rbp
ret
mov qword [rsp + 8], rcx
push rbp
push rdi
lea rbp, [rsp - 0x8828]
mov eax, 0x8928
call fcn.1800fc620
sub rsp, rax
mov rdi, qword [0x180234fa0]
mov eax, dword [rdi + 8]
cmp eax, 3
je 0x180007273
mov qword [rsp + 0x8918], r14
xor r14d, r14d
mov qword [rsp + 0x8948], rbx
test eax, eax
jne 0x180006fa1
mov eax, dword [0x180197b60]
lea rcx, [rsp + 0x40]
movups xmm0, xmmword [str._pipediscord_ipc_0]
mov rbx, qword [rdi]
xor r9d, r9d
movups xmm1, xmmword [0x180197b48]
mov dword [rsp + 0x68], eax
xor r8d, r8d
movzx eax, word [0x180197b64]
mov edx, 0xc0000000
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x6c], ax
mov eax, 0x30
movsd xmm0, qword [0x180197b58]
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 0x180006f9e
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x180006f49
movzx eax, word [rsp + 0x6a]
cmp ax, 0x39
jae 0x180007263
inc ax
mov word [rsp + 0x6a], ax
jmp 0x180006f6c
cmp eax, 0xe7
jne 0x180007263
mov edx, 0x2710
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x180007263
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 0x180006f25
mov byte [rbx], 1
cmp dword [rdi + 8], 1
mov qword [rsp + 0x8950], rsi
jne 0x1800071e8
lea rcx, [rsp + 0x70]
call fcn.1800053b0
lea rdx, [rsp + 0x70]
mov rcx, rdi
call fcn.1800073d0
test al, al
je 0x18000710a
mov qword [rsp + 0x8920], r12
lea r8, [0x180197d60]
lea rdx, [rbp + 0x8840]
mov qword [rsp + 0x8910], r15
lea rcx, [rsp + 0x70]
call fcn.1800069f0
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 0x180007049
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x180007049
test word [rcx + 0x1e], r12w
lea rsi, [rcx + 0x10]
jne 0x18000704c
mov rsi, qword [rsi + 8]
and rsi, r15
jmp 0x18000704c
mov rsi, r14
lea r8, [0x180197cb0]
lea rdx, [rbp + 0x8840]
lea rcx, [rsp + 0x70]
call fcn.1800069f0
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 0x1800070a3
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x1800070a3
test word [rcx + 0x1e], r12w
lea rbx, [rcx + 0x10]
jne 0x1800070a6
mov rbx, qword [rbx + 8]
and rbx, r15
jmp 0x1800070a6
mov rbx, r14
mov r15, qword [rsp + 0x8910]
mov r12, qword [rsp + 0x8920]
test rsi, rsi
je 0x18000710a
test rbx, rbx
je 0x18000710a
lea rdx, str.DISPATCH
mov rcx, rsi
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18000710a
mov rcx, r14
lea rdx, str.READY
nop dword [rax]
movzx eax, byte [rbx + rcx]
inc rcx
cmp al, byte [rdx + rcx - 1]
jne 0x18000710a
cmp rcx, 6
jne 0x1800070e0
mov rax, qword [rdi + 0x10]
mov dword [rdi + 8], 3
test rax, rax
je 0x18000710a
lea rcx, [rsp + 0x70]
call rax
mov rax, qword [rbp + 0x7fd8]
mov rbx, rax
test rax, rax
je 0x180007154
mov rdx, rax
mov rcx, rax
nop
lea r8, [rbx]
mov rbx, rcx
mov rcx, qword [rbp + 0x7fe8]
cmp rdx, rcx
je 0x180007160
mov rbx, qword [r8 + 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 rdx, rbx
mov rcx, rbx
test rbx, rbx
jne 0x180007120
test rbx, rbx
je 0x180007169
mov rcx, qword [rbp + 0x7fe8]
cmp rbx, rcx
jne 0x180007169
mov qword [rbx + 8], r14
mov rcx, qword [rbp + 0x7ff8]
mov edx, 1
call fcn.1800fbf00
mov rdi, qword [rbp - 0x78]
test rdi, rdi
je 0x1800071d8
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800071ab
nop dword [rax + rax]
cmp rcx, qword [rdi + 0x10]
je 0x1800071ab
mov rbx, qword [rcx + 0x10]
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov qword [rdi], rbx
mov rcx, rbx
test rbx, rbx
jne 0x180007190
mov rax, qword [rdi]
test rax, rax
je 0x1800071bd
cmp rax, qword [rdi + 0x10]
jne 0x1800071bd
mov qword [rax + 8], r14
mov rcx, qword [rdi + 0x20]
mov edx, 1
call fcn.1800fbf00
mov edx, 0x28
mov rcx, rdi
call fcn.1800fbf00
mov rcx, qword [rbp - 0x68]
mov edx, 0x810
call fcn.1800fbf00
jmp 0x18000725b
lea rbx, [rdi + 0x164]
lea r9, [rdi + 0x20]
mov dword [rbx], r14d
lea rcx, [rdi + 0x16c]
call fcn.18000ada0
mov rcx, qword [rdi]
mov dword [rdi + 0x168], eax
test rcx, rcx
je 0x180007253
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x180007253
test rbx, rbx
je 0x180007253
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 0x180007253
cmp dword [rbp + 0x8840], esi
jne 0x180007253
mov dword [rdi + 8], eax
jmp 0x18000725b
mov rcx, rdi
call fcn.180007280
mov rsi, qword [rsp + 0x8950]
mov rbx, qword [rsp + 0x8948]
mov r14, qword [rsp + 0x8918]
add rsp, 0x8928
pop rdi
pop rbp
ret