Function at 0x14003c290
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xd0
mov qword [rbp - 0x51], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x140133088]
xor rax, rsp
mov qword [rbp + 0x27], rax
mov rsi, rcx
xor r13d, r13d
mov qword [rbp - 0x31], r13
lea rdx, [rcx + 8]
lea rcx, [rbp - 0x31]
call fcn.140011d7c
nop
cmp qword [rsi + 0x30], r13
jne 0x14003c549
lea rdx, [rbp + 7]
mov rcx, rsi
call fcn.14003ce40
nop
lea rcx, [rbp + 7]
call fcn.1400024d0
test al, al
jne 0x14003c53f
xor eax, eax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x49], r13
mov qword [rbp - 0x41], r13
xor r8d, r8d
xor edx, edx
call fcn.14003d140
mov r14, rax
mov qword [rbp - 0x49], rax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x49]
cmp rax, rdi
je 0x14003c354
mov rax, qword [rdi]
mov qword [rbp - 0x49], rax
mov qword [rdi], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x41]
call fcn.14000a630
mov r14, qword [rbp - 0x49]
cmp qword [rbp - 0x41], 0
je 0x14003c526
lea rcx, [rbp + 7]
call fcn.1400024e0
mov rcx, rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
mov r15, r13
cmp byte [rsi], 0
jne 0x14003c3f8
cmp rbx, 0xffffffffffffffff
jne 0x14003c402
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14003c505
lea ecx, [rbx + 0x33]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 7]
call fcn.1400024e0
mov rcx, rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0x40000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
inc r15
cmp r15, 0xa
jb 0x14003c397
cmp rbx, 0xffffffffffffffff
je 0x14003c505
test rbx, rbx
je 0x14003c505
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x14003c426
mov rcx, qword [rax]
test rcx, rcx
je 0x14003c422
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x31], r13
xor eax, eax
mov qword [rbp - 0x29], rax
mov qword [rbp - 0x21], rax
mov qword [rbp - 0x19], rax
lea rcx, [rbp - 0x29]
call fcn.140008a80
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140042fd0
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
lea rcx, [rbp - 0x11]
call fcn.140008a80
nop
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
lea rcx, [rbp - 0x29]
call fcn.1400089b0
test al, al
jne 0x14003c4b6
mov dword [rbp - 0x39], r13d
lea rcx, [rbp - 0x29]
call fcn.140002540
mov rdx, qword [rax]
lea rcx, [rbp - 0x29]
call fcn.140014e84
mov r8, rax
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x39]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x14003c4e6
mov qword [rbp - 0x39], r13
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x39]
call fcn.140011d7c
nop
mov rdx, qword [rdi]
mov r9, r14
mov r8, qword [r14]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.14003d260
nop
lea rcx, [rbp - 0x39]
call fcn.140011da4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x11]
call fcn.140014fd8
nop
lea rcx, [rbp - 0x29]
call fcn.140014fd8
jmp 0x14003c526
lea rax, [rbp - 0x49]
cmp rdi, rax
je 0x14003c526
mov rax, qword [rdi]
mov qword [rdi], r14
mov qword [rbp - 0x49], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x41]
call fcn.14000a630
nop
lea rcx, [rbp - 0x49]
call fcn.14003d030
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x49]
call fcn.1400a6bfc
nop
lea rcx, [rbp + 7]
call fcn.1400024f0
nop
lea rcx, [rbp - 0x31]
call fcn.140011da4
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a6810
lea r11, [rsp + 0xd0]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rdi, qword [r11 + 0x48]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret