Function at 0x140032380
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x390]
sub rsp, 0x490
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x380], rax
xor esi, esi
mov rdi, rcx
cmp byte [rcx + 0x1298], sil
jne 0x1400323d4
mov rcx, qword [rcx + 0x14a8]
test rcx, rcx
je 0x140032432
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x14a8], rsi
jmp 0x140032432
cmp qword [rcx + 0x14a8], rsi
jne 0x140032432
add rcx, 0x129a
cmp word [rcx], si
je 0x140032432
xor r9d, r9d
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], 0x80000080
mov edx, 0xc0000004
mov dword [rsp + 0x20], 4
lea r8d, [r9 + 3]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x14a8], rax
test rax, rax
je 0x140032432
mov r9d, 2
xor r8d, r8d
mov rcx, rax
lea edx, [r9 - 4]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp qword [rdi + 0x14a8], rsi
je 0x1400325ec
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x4a8], rbx
call fcn.140042a18
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140042978
mov rcx, qword [rdi + 0x14a8]
lea r9, [rsp + 0x44]
mov r8d, 2
mov dword [rsp + 0x44], esi
lea rdx, [rsp + 0x40]
mov word [rsp + 0x40], 0xfeff
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, str._r_n
mov edx, 0x200
lea rcx, [rbp - 0x80]
call fcn.140002210
or rbx, 0xffffffffffffffff
lea rcx, [rbp - 0x80]
mov rax, rbx
nop dword [rax]
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x1400324b0
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x64]
lea r8, str.Install_Date:__02d__02d__04d_r_n
mov r9d, dword [rsp + 0x60]
lea rcx, [rbp - 0x80]
add eax, 0x76c
mov edx, 0x200
mov dword [rsp + 0x28], eax
inc r9d
mov eax, dword [rsp + 0x5c]
mov dword [rsp + 0x20], eax
call fcn.140002210
lea rcx, [rbp - 0x80]
mov rax, rbx
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140032513
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [rsp + 0x50]
lea r8, str._02d:_02d:_02d__Started_logging_r_n
mov r9d, dword [rsp + 0x58]
lea rcx, [rbp - 0x80]
mov dword [rsp + 0x28], eax
mov edx, 0x200
mov eax, dword [rsp + 0x54]
mov dword [rsp + 0x20], eax
call fcn.140002210
lea rcx, [rbp - 0x80]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140032570
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rax + rax]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
lea r8, [0x14006e070]
mov edx, 0x200
lea rcx, [rbp - 0x80]
call fcn.140002210
lea rax, [rbp - 0x80]
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1400325b3
mov rcx, qword [rdi + 0x14a8]
lea r8d, [rbx + rbx]
lea r9, [rsp + 0x44]
mov qword [rsp + 0x20], rsi
lea rdx, [rbp - 0x80]
call qword [sym.imp.KERNEL32.dll_WriteFile]
cmp qword [rdi + 0x14a8], rsi
mov rbx, qword [rsp + 0x4a8]
setne al
mov rcx, qword [rbp + 0x380]
xor rcx, rsp
call fcn.14003a3d0
lea r11, [rsp + 0x490]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret