Function at 0x14003c850
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 [0x140137088]
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.140011c6c
nop
cmp qword [rsi + 0x30], r13
jne 0x14003cb09
lea rdx, [rbp + 7]
mov rcx, rsi
call fcn.14003d3f0
nop
lea rcx, [rbp + 7]
call fcn.140002300
test al, al
jne 0x14003caff
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.14003d6f0
mov r14, rax
mov qword [rbp - 0x49], rax
lea rdi, [rsi + 0x10]
lea rax, [rbp - 0x49]
cmp rax, rdi
je 0x14003c914
mov rax, qword [rdi]
mov qword [rbp - 0x49], rax
mov qword [rdi], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x41]
call fcn.14000a520
mov r14, qword [rbp - 0x49]
cmp qword [rbp - 0x41], 0
je 0x14003cae6
lea rcx, [rbp + 7]
call fcn.140002310
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 0x14003c9b8
cmp rbx, 0xffffffffffffffff
jne 0x14003c9c2
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x14003cac5
lea ecx, [rbx + 0x33]
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rcx, [rbp + 7]
call fcn.140002310
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 0x14003c957
cmp rbx, 0xffffffffffffffff
je 0x14003cac5
test rbx, rbx
je 0x14003cac5
mov rax, qword [rbp - 0x31]
test rax, rax
je 0x14003c9e6
mov rcx, qword [rax]
test rcx, rcx
je 0x14003c9e2
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.140008970
nop
lea rdx, [rbp - 0x29]
lea rcx, [rbp - 0x49]
call fcn.140043580
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
lea rcx, [rbp - 0x11]
call fcn.140008970
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.1400088a0
test al, al
jne 0x14003ca76
mov dword [rbp - 0x39], r13d
lea rcx, [rbp - 0x29]
call fcn.140002370
mov rdx, qword [rax]
lea rcx, [rbp - 0x29]
call fcn.140014d74
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 0x14003caa6
mov qword [rbp - 0x39], r13
lea rdx, [rsi + 8]
lea rcx, [rbp - 0x39]
call fcn.140011c6c
nop
mov rdx, qword [rdi]
mov r9, r14
mov r8, qword [r14]
mov rdx, qword [rdx]
mov rcx, rdi
call fcn.14003d810
nop
lea rcx, [rbp - 0x39]
call fcn.140011c94
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
lea rcx, [rbp - 0x11]
call fcn.140014ec8
nop
lea rcx, [rbp - 0x29]
call fcn.140014ec8
jmp 0x14003cae6
lea rax, [rbp - 0x49]
cmp rdi, rax
je 0x14003cae6
mov rax, qword [rdi]
mov qword [rdi], r14
mov qword [rbp - 0x49], rax
lea rcx, [rdi + 8]
lea rdx, [rbp - 0x41]
call fcn.14000a520
nop
lea rcx, [rbp - 0x49]
call fcn.14003d5e0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x49]
call fcn.1400a930c
nop
lea rcx, [rbp + 7]
call fcn.140002320
nop
lea rcx, [rbp - 0x31]
call fcn.140011c94
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1400a8f20
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