Function at 0x18008c730
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0xff60]
mov eax, 0x10060
call fcn.180092120
sub rsp, rax
mov rax, qword [0x1800b7040]
xor rax, rsp
mov qword [rbp + 0xff50], rax
mov eax, dword [rcx + 8]
mov rsi, rdx
dec eax
mov rdi, rcx
test eax, 0xfffffffd
jne 0x18008c978
mov rcx, qword [rcx]
lea rdx, [rsp + 0x30]
mov r8d, 8
call fcn.180089610
xor r14d, r14d
test al, al
je 0x18008c8f4
mov ecx, dword [rsp + 0x34]
test ecx, ecx
je 0x18008c7c5
mov r8d, ecx
lea rdx, [rsp + 0x38]
mov rcx, qword [rdi]
call fcn.180089610
test al, al
je 0x18008c9a1
mov eax, dword [rsp + 0x34]
mov byte [rsp + rax + 0x38], r14b
mov ecx, dword [rsp + 0x34]
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x18008c7ed
sub eax, 1
je 0x18008ca95
sub eax, 1
je 0x18008ca06
sub eax, 1
je 0x18008c836
cmp eax, 1
je 0x18008c8d9
lea rdx, str.Bad_ipc_frame
mov dword [rdi + 0x60], 2
mov ecx, 1
lea r8, [rdi + 0x64]
sub rcx, rdx
nop word [rax + rax]
lea rax, [rcx + rdx]
cmp rax, 0x100
jae 0x18008c9dd
movzx eax, byte [rdx]
inc rdx
mov byte [r8], al
inc r8
cmp byte [rdx], r14b
jne 0x18008c810
jmp 0x18008c9dd
mov rax, qword [rdi]
mov ebx, ecx
add rbx, 8
mov dword [rsp + 0x30], 4
test rax, rax
jne 0x18008c866
lea r8d, [rax + 0x4f]
lea rdx, str.C:UsersPCDesktopSourcekieropasto_soso___CopyDllMainmaindiscord_rpcconnection_win.cpp
lea rcx, str.self
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
jmp 0x18008c89e
mov rcx, qword [rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x18008c89e
lea r9, [rbp + 0xff30]
mov dword [rbp + 0xff30], r14d
mov r8d, ebx
mov qword [rsp + 0x20], r14
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18008c89e
cmp dword [rbp + 0xff30], ebx
je 0x18008c8d9
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x18008c8bd
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x18008c8bd
mov ecx, dword [rdi + 0x60]
lea rdx, [rdi + 0x64]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], r14b
mov dword [rdi + 8], r14d
mov rcx, qword [rdi]
lea rdx, [rsp + 0x30]
mov r8d, 8
call fcn.180089610
test al, al
jne 0x18008c798
mov rax, qword [rdi]
cmp byte [rax], r14b
jne 0x18008c978
mov ecx, 1
lea rdx, [rdi + 0x64]
lea r8, str.Pipe_closed
mov dword [rdi + 0x60], ecx
sub rcx, r8
mov r9, rdx
nop word [rax + rax]
lea rax, [rcx + r8]
cmp rax, 0x100
jae 0x18008c93e
movzx eax, byte [r8]
inc r8
mov byte [r9], al
inc r9
cmp byte [r8], r14b
jne 0x18008c920
mov byte [r9], r14b
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x18008c95c
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x18008c95c
mov ecx, dword [rdi + 0x60]
call r8
mov rbx, qword [rdi]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 8], 0xffffffffffffffff
mov byte [rbx], r14b
mov dword [rdi + 8], r14d
xor al, al
mov rcx, qword [rbp + 0xff50]
xor rcx, rsp
call fcn.180090f70
lea r11, [rsp + 0x10060]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
lea rdx, str.Partial_data_in_frame
mov dword [rdi + 0x60], 2
mov ecx, 1
lea r8, [rdi + 0x64]
sub rcx, rdx
nop dword [rax + rax]
lea rax, [rcx + rdx]
cmp rax, 0x100
jae 0x18008c9dd
movzx eax, byte [rdx]
inc rdx
mov byte [r8], al
inc r8
cmp byte [rdx], r14b
jne 0x18008c9c0
mov byte [r8], r14b
mov r8, qword [rdi + 0x18]
test r8, r8
je 0x18008c95c
mov eax, dword [rdi + 8]
dec eax
test eax, 0xfffffffd
jne 0x18008c95c
lea rdx, [rdi + 0x64]
jmp 0x18008c956
lea rax, [rsp + 0x38]
mov qword [rbp + 0xff40], r14
mov qword [rbp + 0xff38], rax
lea rdx, [rbp + 0xff38]
lea rax, [rsp + 0x38]
mov rcx, rsi
mov qword [rbp + 0xff48], rax
call fcn.18008cad0
mov rcx, rsi
call fcn.180089ce0
lea r8, [0x180096ef1]
mov dword [rdi + 0x60], eax
lea rdx, str.message
mov rcx, rsi
call fcn.180089dc0
test rax, rax
je 0x18008c9e0
movzx r8d, byte [rax]
lea rdx, [rdi + 0x64]
test r8b, r8b
je 0x18008ca8d
mov ecx, 1
sub rax, rdx
nop
cmp rcx, 0x100
jae 0x18008ca8d
mov byte [rdx], r8b
inc rcx
movzx r8d, byte [rax + rdx + 1]
inc rdx
test r8b, r8b
jne 0x18008ca70
mov byte [rdx], r14b
jmp 0x18008c9e0
lea rax, [rsp + 0x38]
mov qword [rbp + 0xff40], r14
mov qword [rbp + 0xff38], rax
lea rdx, [rbp + 0xff38]
lea rax, [rsp + 0x38]
mov rcx, rsi
mov qword [rbp + 0xff48], rax
call fcn.18008cad0
mov al, 1
jmp 0x18008c97a