Function at 0x180262fb0
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 [0x1804cd010]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rdi, rdx
mov rbx, rcx
xor esi, esi
cmp qword [rcx + 0x10], rsi
je 0x1802632ad
mov rdx, rcx
lea rcx, [rbp - 0x69]
call fcn.180157a30
nop
mov rax, qword [rbp - 0x59]
test rax, rax
je 0x18026325a
mov r9, qword [rbx + 0x10]
sub r9, rax
xor r8d, r8d
lea rdx, [rbp + 0x17]
mov rcx, rbx
call fcn.18000eea0
nop
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 9]
call fcn.1801578b0
nop
lea r8, str..log
lea rdx, [rbp - 9]
lea rcx, [rbp - 0x29]
call fcn.18000af60
nop
lea r8, [rbp - 0x29]
lea rdx, [rbp + 0x17]
lea rcx, [rbp - 0x49]
call fcn.18015aff0
nop
lea ecx, [rsi + 8]
call fcn.180388424
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.180174650
mov rbx, qword [rsp + 0x30]
test al, al
je 0x1802630e1
mov rax, qword [rdi + 0x10]
test rax, rax
je 0x1802630e1
mov dword [rsp + 0x38], esi
cmp qword [rdi + 0x18], 8
jb 0x1802630b6
mov rdi, qword [rdi]
lea r8d, [rax + rax]
test rbx, rbx
je 0x1802630e1
test rdi, rdi
je 0x1802630e1
mov rcx, qword [rbx]
cmp rcx, 0xffffffffffffffff
je 0x1802630e1
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x38]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop
test rbx, rbx
je 0x18026310e
mov rcx, qword [rbx]
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1802630fc
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx], rsi
mov edx, 8
mov rcx, rbx
call fcn.180388460
mov qword [rsp + 0x30], rsi
mov rdx, qword [rbp - 0x31]
cmp rdx, 8
jb 0x180263151
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x49]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026314c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026314c
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x39], rsi
mov qword [rbp - 0x31], 7
mov word [rbp - 0x49], si
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x1802631a4
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18026319f
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x18026319f
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp - 0x19], rsi
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], si
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x1802631f7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1802631f2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x1802631f2
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp + 7], rsi
mov qword [rbp + 0xf], 7
mov word [rbp - 9], si
mov rdx, qword [rbp + 0x2f]
cmp rdx, 8
jb 0x18026324a
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp + 0x17]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180263245
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180263245
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
mov qword [rbp + 0x27], rsi
mov qword [rbp + 0x2f], 7
mov word [rbp + 0x17], si
mov rdx, qword [rbp - 0x51]
cmp rdx, 8
jb 0x18026329d
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x69]
mov rax, rcx
cmp rdx, 0x1000
jb 0x180263298
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x180263298
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.180388460
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.180388400
mov rbx, qword [rsp + 0x130]
add rsp, 0x100
pop rdi
pop rsi
pop rbp
ret