Function at 0x140035e70
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 0x140035ec4
mov rcx, qword [rcx + 0x14a8]
test rcx, rcx
je 0x140035f22
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x14a8], rsi
jmp 0x140035f22
cmp qword [rcx + 0x14a8], rsi
jne 0x140035f22
add rcx, 0x129a
cmp word [rcx], si
je 0x140035f22
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 0x140035f22
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 0x1400360dc
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x4a8], rbx
call fcn.1400470b8
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x50]
call fcn.140047018
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.1400022b0
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 0x140035fa0
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.1400022b0
lea rcx, [rbp - 0x80]
mov rax, rbx
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140036003
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.1400022b0
lea rcx, [rbp - 0x80]
mov rax, rbx
nop
cmp word [rcx + rax*2 + 2], si
lea rax, [rax + 1]
jne 0x140036060
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, [0x1400740e0]
mov edx, 0x200
lea rcx, [rbp - 0x80]
call fcn.1400022b0
lea rax, [rbp - 0x80]
cmp word [rax + rbx*2 + 2], si
lea rbx, [rbx + 1]
jne 0x1400360a3
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.14003d350
lea r11, [rsp + 0x490]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret