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

Disassembly:
mov rax, rsp
push rbp
push r14
push r15
lea rbp, [rax - 0x158]
sub rsp, 0x240
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov rax, qword [0x1801485f0]
xor rax, rsp
mov qword [rbp + 0x130], rax
mov edx, 0xb
lea rcx, [rbp + 0x20]
call fcn.1800096d0
nop
xor r15d, r15d
cmp qword [rbp + 0x30], r15
jne 0x1800328cc
or ebx, 0xffffffff
jmp 0x180032bb7
lea rcx, [rbp - 0x20]
call fcn.180008290
nop
mov r8, rax
lea rdx, [rbp + 0x20]
lea rcx, [rbp - 0x40]
call fcn.1800193e0
nop
cmp qword [rbp - 8], 8
jb 0x1800328f7
mov rcx, qword [rbp - 0x20]
call fcn.1800b5700
mov qword [rbp - 8], 7
mov qword [rbp - 0x10], r15
mov word [rbp - 0x20], r15w
cmp qword [rbp - 0x30], 0
je 0x180032b91
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
call qword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x180032b91
lea rdx, [rbp - 0x40]
lea rcx, [rbp - 0x60]
call fcn.1800259a0
nop
xor edx, edx
lea rcx, [rsp + 0x50]
call fcn.1800a14b0
nop
lea rcx, [rbp + 0x70]
call fcn.1800a5580
nop
mov r9b, 1
lea r8, [rsp + 0x50]
lea rdx, [rbp - 0x60]
lea rcx, [rbp + 0x70]
call fcn.1800ab200
test al, al
jne 0x180032978
mov ebx, 0xfffffffd
jmp 0x180032b5a
lea rax, [rsp + 0x78]
mov qword [rsp + 0x40], rax
mov edx, 1
lea rcx, [rsp + 0x78]
call fcn.1800a12b0
mov rdi, rax
lea rcx, [rbp]
call fcn.180031210
mov rbx, rax
lea rcx, [rbp - 0x20]
call fcn.180030f90
nop
mov rdx, rax
lea rcx, [rsp + 0x50]
call fcn.1800a1a10
mov rcx, rax
mov rdx, rbx
call fcn.1800a1a10
mov rcx, rax
mov rdx, rdi
call fcn.1800a18b0
nop
cmp qword [rbp - 8], 0x10
jb 0x1800329de
mov rcx, qword [rbp - 0x20]
call fcn.1800b5700
mov qword [rbp - 8], 0xf
mov qword [rbp - 0x10], r15
mov byte [rbp - 0x20], 0
cmp qword [rbp + 0x18], 0x10
jb 0x1800329fe
mov rcx, qword [rbp]
call fcn.1800b5700
mov qword [rbp + 0x18], 0xf
mov qword [rbp + 0x10], r15
mov byte [rbp], 0
lea rcx, [rbp + 0x40]
call fcn.1800ad350
nop
lea r8, [rsp + 0x50]
lea rdx, [rbp]
lea rcx, [rbp + 0x40]
call fcn.1800afdf0
mov rbx, rax
lea rax, [rbp - 0x60]
cmp rax, rbx
je 0x180032a63
cmp qword [rbp - 0x48], 0x10
jb 0x180032a46
mov rcx, qword [rbp - 0x60]
call fcn.1800b5700
mov qword [rbp - 0x48], 0xf
mov qword [rbp - 0x50], r15
mov byte [rbp - 0x60], 0
mov rdx, rbx
lea rcx, [rbp - 0x60]
call fcn.180015910
nop
cmp qword [rbp + 0x18], 0x10
jb 0x180032a73
mov rcx, qword [rbp]
call fcn.1800b5700
mov qword [rbp + 0x18], 0xf
mov qword [rbp + 0x10], r15
mov byte [rbp], 0
mov rdi, qword [rbp - 0x50]
test rdi, rdi
jne 0x180032a94
lea ebx, [rdi - 4]
jmp 0x180032b25
lea rbx, [rbp - 0x60]
cmp qword [rbp - 0x48], 0x10
cmovae rbx, qword [rbp - 0x60]
cmp qword [rbp - 0x30], 0
jne 0x180032aad
xor bl, bl
jmp 0x180032b22
lea rcx, [rbp - 0x40]
cmp qword [rbp - 0x28], 8
cmovae rcx, qword [rbp - 0x40]
mov qword [rsp + 0x30], r15
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x180032aee
xor bl, bl
jmp 0x180032b22
mov r14b, 1
mov dword [rsp + 0x40], r15d
mov qword [rsp + 0x20], r15
lea r9, [rsp + 0x40]
mov r8d, edi
mov rdx, rbx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ebx, r14b
test eax, eax
cmove ebx, r15d
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
movzx ebx, bl
lea rax, vtable.Json::FastWriter.0
mov qword [rbp + 0x40], rax
cmp qword [rbp + 0x60], 0x10
jb 0x180032b40
mov rcx, qword [rbp + 0x48]
call fcn.1800b5700
mov qword [rbp + 0x60], 0xf
mov qword [rbp + 0x58], r15
mov byte [rbp + 0x48], 0
lea rcx, [rbp + 0x40]
call fcn.1800ad3a0
nop
lea rcx, [rbp + 0x70]
call fcn.180008ec0
nop
lea rcx, [rsp + 0x50]
call fcn.1800a17b0
nop
cmp qword [rbp - 0x48], 0x10
jb 0x180032b7f
mov rcx, qword [rbp - 0x60]
call fcn.1800b5700
mov qword [rbp - 0x48], 0xf
mov qword [rbp - 0x50], r15
mov byte [rbp - 0x60], 0
jmp 0x180032b96
mov ebx, 0xfffffffe
cmp qword [rbp - 0x28], 8
jb 0x180032ba6
mov rcx, qword [rbp - 0x40]
call fcn.1800b5700
mov qword [rbp - 0x28], 7
mov qword [rbp - 0x30], r15
mov word [rbp - 0x40], r15w
cmp qword [rbp + 0x38], 8
jb 0x180032bc7
mov rcx, qword [rbp + 0x20]
call fcn.1800b5700
mov qword [rbp + 0x38], 7
mov qword [rbp + 0x30], r15
mov word [rbp + 0x20], r15w
mov eax, ebx
mov rcx, qword [rbp + 0x130]
xor rcx, rsp
call fcn.1800b6c40
lea r11, [rsp + 0x240]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rbp
ret