Function at 0x1800ff1b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
lea rbp, [rsp - 0x47]
sub rsp, 0x100
mov qword [rbp - 0x71], 0xfffffffffffffffe
mov qword [rsp + 0x130], rbx
mov rax, qword [0x18066dcd8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
cmp qword [rcx + 0x10], rsi
je 0x1800ff4ad
mov rdx, rcx
lea rcx, [rbp - 0x69]
call fcn.1800de900
nop
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x1800ff45a
mov r9, qword [rbx + 0x10]
sub r9, rax
xor r8d, r8d
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.18009a010
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 9]
call fcn.1800de780
nop
lea r8, str..log
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.18009a800
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x49]
call fcn.1800dfc30
nop
lea ecx, [rsi + 8]
call fcn.18042ce24
mov qword [rsp + 0x38], rax
mov qword [rax], 0xffffffffffffffff
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov r8d, 0x40000000
lea rdx, [rbp - 0x49]
lea rcx, [rsp + 0x30]
call fcn.1800e41d0
mov rbx, qword [rsp + 0x30]
test al, al
je 0x1800ff2e1
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1800ff2e1
mov dword [rsp + 0x38], esi
cmp qword [rdi + 0x18], 8
jb 0x1800ff2b6
mov rdi, qword [rdi]
lea r8d, [rax + rax]
test rbx, rbx
je 0x1800ff2e1
test rdi, rdi
je 0x1800ff2e1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1800ff2e1
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x1800ff30e
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1800ff2fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov edx, 8
mov rcx, rbx
call fcn.18042ce14
mov qword [rsp + 0x30], rsi
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x1800ff351
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ff34c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ff34c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18042ce14
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], si
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1800ff3a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ff39f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ff39f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18042ce14
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], si
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x1800ff3f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ff3f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ff3f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18042ce14
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], si
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x1800ff44a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ff445
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ff445
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18042ce14
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], si
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x1800ff49d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800ff498
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1800ff498
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.18042ce14
mov qword [rbp - 0x59], rsi
mov qword [rbp - 0x51], 7
mov word [rbp - 0x69], si
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.18042cdf0
mov rbx, qword [rsp + 0x130]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret