Function at 0x180136b50
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 [0x1806c4cd8]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
cmp qword [rcx + 0x10], rsi
je 0x180136e4d
mov rdx, rcx
lea rcx, [rbp - 0x69]
call fcn.18010c370
nop
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x180136dfa
mov r9, qword [rbx + 0x10]
sub r9, rax
xor r8d, r8d
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.1800b3da0
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 9]
call fcn.18010c1f0
nop
lea r8, str..log
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.180099630
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x49]
call fcn.18010e780
nop
lea ecx, [rsi + 8]
call fcn.1804688ec
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.180119790
mov rbx, qword [rsp + 0x30]
test al, al
je 0x180136c81
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x180136c81
mov dword [rsp + 0x38], esi
cmp qword [rdi + 0x18], 8
jb 0x180136c56
mov rdi, qword [rdi]
lea r8d, [rax + rax]
test rbx, rbx
je 0x180136c81
test rdi, rdi
je 0x180136c81
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x180136c81
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x180136cae
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x180136c9c
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov edx, 8
mov rcx, rbx
call fcn.180468ddc
mov qword [rsp + 0x30], rsi
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x180136cf1
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180136cec
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180136cec
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], si
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x180136d44
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180136d3f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180136d3f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], si
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x180136d97
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180136d92
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180136d92
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], si
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x180136dea
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180136de5
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180136de5
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], si
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x180136e3d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180136e38
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180136e38
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180468ddc
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.1804688c0
mov rbx, qword [rsp + 0x130]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret