Function at 0x180005b20
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
lea rbp, [rax - 0x698]
sub rsp, 0x790
mov qword [rsp + 0x30], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov rax, qword [0x180038008]
xor rax, rsp
mov qword [rbp + 0x680], rax
mov rdi, rcx
xor edx, edx
mov r8d, 0x400
lea rcx, [rbp + 0x280]
call fcn.18000ce00
mov byte [rbp + 0x118], 0
xor eax, eax
mov qword [rbp + 0x119], rax
mov qword [rbp + 0x121], rax
mov qword [rbp + 0x129], rax
mov byte [rbp + 0x138], al
mov qword [rbp + 0x139], rax
mov qword [rbp + 0x141], rax
mov qword [rbp + 0x149], rax
mov byte [rbp + 0x158], al
mov qword [rbp + 0x159], rax
mov qword [rbp + 0x161], rax
mov qword [rbp + 0x169], rax
lea ebx, [rax + 0xa]
mov r8d, ebx
lea rdx, [rbp + 0x118]
mov ecx, dword [rdi + 0x1a8]
call fcn.1800180e4
mov r8d, ebx
lea rdx, [rbp + 0x138]
mov ecx, dword [rdi + 0x1a0]
call fcn.1800180e4
mov r8d, ebx
lea rdx, [rbp + 0x158]
mov ecx, dword [rdi + 0x1a4]
call fcn.1800180e4
mov qword [rsp + 0x50], shutdown
and qword [rsp + 0x48], 0
mov byte [rsp + 0x38], 0
lea rdx, [rdi + 0xd4]
lea rcx, [rsp + 0x38]
call fcn.1800039b0
nop
lea r8, [rsp + 0x38]
lea rcx, [rbp + 0xf8]
call fcn.18000639c
nop
lea rbx, [rdi + 0x20a]
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0xd8]
call fcn.180003f60
nop
lea r8, [0x180030478]
mov rdx, rax
lea rcx, [rbp + 0xb8]
call fcn.180003f60
nop
lea r8, [rdi + 0x138]
mov rdx, rax
lea rcx, [rbp + 0x98]
call fcn.180003f60
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x78]
call fcn.180003f60
nop
lea r8, [0x180030474]
mov rdx, rax
lea rcx, [rbp + 0x58]
call fcn.180003f60
nop
lea r8, [rbp + 0x118]
mov rdx, rax
lea rcx, [rbp + 0x38]
call fcn.180003f60
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp + 0x18]
call fcn.180003f60
nop
lea r8, [0x180030470]
mov rdx, rax
lea rcx, [rbp - 8]
call fcn.180003f60
nop
lea r8, [rbp + 0x138]
mov rdx, rax
lea rcx, [rbp - 0x28]
call fcn.180003f60
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rbp - 0x48]
call fcn.180003f60
nop
lea r8, [0x18003046c]
mov rdx, rax
lea rcx, [rbp - 0x68]
call fcn.180003f60
nop
lea r8, [rbp + 0x158]
mov rdx, rax
lea rcx, [rsp + 0x78]
call fcn.180003f60
nop
mov r8, rbx
mov rdx, rax
lea rcx, [rsp + 0x58]
call fcn.180003f60
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x78]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x68]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x48]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x28]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 8]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x18]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x38]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x58]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x78]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0x98]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xb8]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xd8]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp + 0xf8]
call fcn.180003904
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x38]
call fcn.180003904
lea rcx, [rdi + 0x218]
cmp qword [rcx + 0x18], 0x10
jb 0x180005e2b
mov rcx, qword [rcx]
lea rdx, [0x180030480]
call fcn.180015278
mov qword [rdi + 0x238], rax
xor edx, edx
mov r8d, 0x100
lea rcx, [rbp + 0x180]
call fcn.18000ce00
lea r8, [rsp + 0x58]
cmp qword [rsp + 0x70], 0x10
cmovae r8, qword [rsp + 0x58]
lea rdx, [0x180030468]
lea rcx, [rbp + 0x280]
call fcn.180001130
lea rdx, [rdi + 0x1cc]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rdx + r8], 0
jne 0x180005e81
mov dword [rsp + 0x20], 0xd0
lea r9, [rbp + 0x280]
lea rcx, [rbp + 0x180]
call fcn.180008240
mov r9, qword [rdi + 0x238]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
lea rcx, [rbp + 0x280]
call fcn.1800155b4
mov rcx, qword [rdi + 0x238]
call fcn.180015308
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x58]
call fcn.180003904
mov rcx, qword [rbp + 0x680]
xor rcx, rsp
call fcn.180009ba0
lea r11, [rsp + 0x790]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret