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

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
mov qword [rsp + 8], rcx
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x8820]
mov eax, 0x8920
call fcn.18008ad20
sub rsp, rax
mov rsi, qword [0x1800fcfb8]
mov eax, dword [rsi + 8]
cmp eax, 3
je 0x18000a8ad
xor ebx, ebx
test eax, eax
jne 0x18000a5fe
mov rdi, qword [rsi]
movups xmm0, xmmword [str._pipediscord_ipc_0]
movups xmmword [rsp + 0x50], xmm0
movups xmm1, xmmword [0x180090308]
movups xmmword [rsp + 0x60], xmm1
movsd xmm0, qword [0x180090318]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [0x180090320]
mov dword [rsp + 0x78], eax
movzx eax, word [0x180090324]
mov word [rsp + 0x7c], ax
mov eax, 0x30
mov word [rsp + 0x7a], ax
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
jne 0x18000a5f8
nop dword [rax]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x18000a5a4
movzx eax, word [rsp + 0x7a]
cmp ax, 0x39
jae 0x18000a8ad
inc ax
mov word [rsp + 0x7a], ax
jmp 0x18000a5c7
cmp eax, 0xe7
jne 0x18000a8ad
mov edx, 0x2710
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeW]
test eax, eax
je 0x18000a8ad
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x20], 3
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 8], rax
cmp rax, 0xffffffffffffffff
je 0x18000a580
mov byte [rdi], 1
mov eax, dword [rsi + 8]
cmp eax, 1
jne 0x18000a866
lea rcx, [rbp - 0x80]
call fcn.180007df0
nop
lea rdx, [rbp - 0x80]
mov rcx, rsi
call fcn.18000aac0
test al, al
je 0x18000a82c
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov edi, 0x405
mov word [rsp + 0x4e], di
mov rax, qword [rsp + 0x48]
movabs r13, 0xffff000000000000
and rax, r13
lea rcx, [0x1800909b4]
or rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 3
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x8850]
lea rcx, [rbp - 0x80]
call fcn.180009db0
cmp word [rbp - 0x72], 3
je 0x18000a696
mov r8d, 0x4b0
lea rdx, str.C:UsersCoderDesktoppandora.ggDllMaindiscord_rapidjsondocument.h
lea rcx, str.IsObject__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [rbp - 0x80]
shl rax, 5
mov rcx, qword [rbp - 0x78]
movabs r15, 0xffffffffffff
and rcx, r15
add rax, rcx
mov rcx, qword [rbp + 0x8850]
cmp rcx, rax
je 0x18000a70c
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18000a70c
lea r14, [rcx + 0x10]
movzx ecx, word [r14 + 0xe]
movzx eax, cx
shr ax, 0xa
test al, 1
jne 0x18000a6fc
mov r8d, 0x70b
lea rdx, str.C:UsersCoderDesktoppandora.ggDllMaindiscord_rapidjsondocument.h
lea rcx, str.IsString__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx ecx, word [r14 + 0xe]
bt cx, 0xc
jb 0x18000a70f
mov r14, qword [r14 + 8]
and r14, r15
jmp 0x18000a70f
mov r14, rbx
xorps xmm0, xmm0
movups xmmword [rsp + 0x40], xmm0
mov word [rsp + 0x4e], di
mov rax, qword [rsp + 0x48]
and rax, r13
lea rcx, [0x18009057c]
or rax, rcx
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x40], 3
lea r8, [rsp + 0x40]
lea rdx, [rbp + 0x8850]
lea rcx, [rbp - 0x80]
call fcn.180009db0
cmp word [rbp - 0x72], 3
je 0x18000a771
mov r8d, 0x4b0
lea rdx, str.C:UsersCoderDesktoppandora.ggDllMaindiscord_rapidjsondocument.h
lea rcx, str.IsObject__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov eax, dword [rbp - 0x80]
shl rax, 5
mov rcx, qword [rbp - 0x78]
and rcx, r15
add rax, rcx
mov rcx, qword [rbp + 0x8850]
cmp rcx, rax
je 0x18000a7db
movzx eax, word [rcx + 0x1e]
shr ax, 0xa
test al, 1
je 0x18000a7db
lea rdi, [rcx + 0x10]
movzx ecx, word [rdi + 0xe]
movzx eax, cx
shr ax, 0xa
test al, 1
jne 0x18000a7cb
mov r8d, 0x70b
lea rdx, str.C:UsersCoderDesktoppandora.ggDllMaindiscord_rapidjsondocument.h
lea rcx, str.IsString__
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
movzx ecx, word [rdi + 0xe]
bt cx, 0xc
jb 0x18000a7de
mov rdi, qword [rdi + 8]
and rdi, r15
jmp 0x18000a7de
mov rdi, rbx
test r14, r14
je 0x18000a82c
test rdi, rdi
je 0x18000a82c
lea rdx, str.DISPATCH
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x18000a82c
lea rcx, str.READY
movzx eax, byte [rdi + rbx]
inc rbx
cmp al, byte [rcx + rbx - 1]
jne 0x18000a82c
cmp rbx, 6
jne 0x18000a802
mov dword [rsi + 8], 3
mov rax, qword [rsi + 0x10]
test rax, rax
je 0x18000a82c
lea rcx, [rbp - 0x80]
call rax
nop
lea rcx, [rbp + 0x7fe8]
call fcn.180009d20
mov rbx, qword [rbp - 0x68]
test rbx, rbx
je 0x18000a856
mov rcx, rbx
call fcn.180009d20
mov edx, 0x28
mov rcx, rbx
call fcn.18008976c
mov edx, 0x810
mov rcx, qword [rbp - 0x58]
call fcn.18008976c
jmp 0x18000a8ad
lea rdi, [rsi + 0x164]
mov dword [rdi], ebx
lea r9, [rsi + 0x20]
lea rcx, [rsi + 0x16c]
call fcn.18000f140
mov dword [rsi + 0x168], eax
mov rcx, qword [rsi]
test rcx, rcx
jne 0x18000a8ce
lea r8d, [rcx + 0x4f]
lea rdx, str.C:UsersCoderDesktoppandora.ggDllMaindiscordconnection_win.cpp
lea rcx, str.self
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__wassert]
mov rcx, rsi
call fcn.18000a930
lea r11, [rsp + 0x8920]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
mov rcx, qword [rcx + 8]
cmp rcx, 0xffffffffffffffff
je 0x18000a8a5
test rdi, rdi
jne 0x18000a8f1
lea r8d, [rdi + 0x56]
lea rdx, str.C:UsersCoderDesktoppandora.ggDllMaindiscordconnection_win.cpp
lea rcx, [0x1800903d0]
jmp 0x18000a89f
lea r14d, [rax + 8]
mov dword [rbp + 0x8850], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rbp + 0x8850]
mov r8d, r14d
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
jne 0x18000a8a5
cmp dword [rbp + 0x8850], r14d
jne 0x18000a8a5
mov dword [rsi + 8], eax
jmp 0x18000a8ad