Function at 0x14003c770
Capabilities:
Delete file
Get file size
Read file on windows
Write file on windows

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x27]
sub rsp, 0xf0
mov qword [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x140], rbx
mov rax, qword [0x140132088]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
cmp qword [rcx + 0x30], r14
je 0x14003c7bd
xor edx, edx
call fcn.14003cc60
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x14003c7d5
mov rax, qword [rcx]
mov rdx, qword [rdi + 0xf0]
call qword [rax]
mov qword [rbp - 0x49], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x49]
call fcn.140011c6c
nop
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.14003d020
nop
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.14003d0e0
nop
lea rcx, [rbp - 9]
call fcn.140002300
test al, al
jne 0x14003cbc6
lea rcx, [rbp - 0x29]
call fcn.140002300
test al, al
jne 0x14003cbc6
lea rcx, [rbp - 0x29]
call fcn.140002310
mov rcx, rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rdi + 0x30], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x14003cbc0
lea rcx, [rbp - 9]
call fcn.140002310
mov rcx, rax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 4
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x14003cb9e
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x14003c8c4
mov rcx, qword [rcx]
test rcx, rcx
je 0x14003c8c0
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x49], r14
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp - 0x79], eax
cmp eax, 0x1400000
jbe 0x14003c93d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x71], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x71]
call fcn.140011c6c
nop
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14003c907
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], r14
lea rcx, [rbp - 9]
call fcn.140002310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x29]
call fcn.140002310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rdi + 0x38], r14d
lea rcx, [rbp - 0x71]
call fcn.140011c94
jmp 0x14003cc0d
mov bl, 1
xor r15b, r15b
test eax, eax
je 0x14003ca56
mov dword [rbp - 0x71], r14d
xor eax, eax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x31], rax
lea rcx, [rbp - 0x41]
call fcn.140008970
nop
mov byte [rsp + 0x40], r15b
mov edx, dword [rbp - 0x79]
lea rax, [rbp - 0x41]
mov qword [rbp - 0x69], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x61], rax
movaps xmm0, xmmword [rbp - 0x69]
movdqa xmmword [rbp - 0x69], xmm0
lea r8, [rbp - 0x69]
lea rcx, [rbp - 0x41]
call fcn.140015a88
lea rcx, [rbp - 0x41]
call fcn.140002370
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x71]
mov r8d, dword [rbp - 0x79]
mov rdx, qword [rax]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003c9c3
mov eax, dword [rbp - 0x79]
cmp dword [rbp - 0x71], eax
je 0x14003c9e5
lea rcx, [rbp - 0x69]
call fcn.140008970
nop
mov rdx, rax
lea rcx, [rbp - 0x41]
call fcn.140028d10
nop
lea rcx, [rbp - 0x69]
call fcn.140014ec8
xor bl, bl
lea rcx, [rbp - 0x41]
call fcn.1400088a0
test al, al
jne 0x14003ca45
mov rcx, rsi
call fcn.14003d210
mov qword [rbp - 0x69], r14
lea rcx, [rbp - 0x41]
call fcn.140014d74
test rax, rax
je 0x14003ca33
nop dword [rax]
mov r8, rsi
lea rdx, [rbp - 0x69]
lea rcx, [rbp - 0x41]
call fcn.140043510
test al, al
je 0x14003ca33
lea rcx, [rbp - 0x41]
call fcn.140014d74
cmp qword [rbp - 0x69], rax
jb 0x14003ca10
movzx r15d, r15b
mov eax, 1
cmp qword [rsi + 8], 0
cmove r15d, eax
lea rcx, [rbp - 0x41]
call fcn.140014ec8
test bl, bl
je 0x14003cb55
mov qword [rbp - 0x69], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x69]
call fcn.140011c6c
nop
mov eax, dword [rbp - 0x79]
mov dword [rdi + 0x38], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x71], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x71]
mov r8d, 4
lea rdx, [rbp - 0x79]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ebx, bl
test eax, eax
cmove ebx, r14d
lea rcx, [rbp - 0x69]
call fcn.140011c94
test bl, bl
je 0x14003cb55
lea rbx, [rdi + 0x20]
mov rcx, rbx
call fcn.14003d210
cmp qword [rdi + 0x18], 0
je 0x14003cb0d
lea r14, [rdi + 0x10]
mov r9, qword [r14]
mov qword [rsp + 0x20], r9
mov r9, qword [r9]
mov r8, qword [rsi]
lea rdx, [rbp - 0x69]
mov rcx, rsi
call fcn.14003d3b0
cmp rbx, r14
je 0x14003cb0a
mov rcx, qword [rbx]
mov rax, qword [r14]
mov qword [rbx], rax
mov qword [r14], rcx
lea rdx, [r14 + 8]
lea rcx, [rbx + 8]
call fcn.14000a520
xor r14d, r14d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
je 0x14003cc0d
lea rcx, [rbp - 9]
call fcn.140002310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rbp - 0x69], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x69]
call fcn.140011c6c
nop
mov dword [rdi + 0x38], r14d
lea rcx, [rbp - 0x69]
call fcn.140011c94
jmp 0x14003cc0d
mov qword [rbp - 0x69], r14
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x69]
call fcn.140011c6c
nop
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x14003cb7a
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], r14
lea rcx, [rbp - 0x29]
call fcn.140002310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rdi + 0x38], r14d
lea rcx, [rbp - 0x69]
call fcn.140011c94
jmp 0x14003cb0d
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], r14
lea rcx, [rbp - 0x29]
call fcn.140002310
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x14003cc0d
mov qword [rdi + 0x30], r14
jmp 0x14003cc0d
lea rbx, [rdi + 0x20]
mov rcx, rbx
call fcn.14003d210
cmp qword [rdi + 0x18], 0
je 0x14003cc0d
mov rdx, qword [rsi]
add rdi, 0x10
mov r9, qword [rdi]
mov r8, qword [r9]
mov rcx, rsi
call fcn.14003d440
cmp rbx, rdi
je 0x14003cc0d
mov rcx, qword [rbx]
mov rax, qword [rdi]
mov qword [rbx], rax
mov qword [rdi], rcx
lea rdx, [rdi + 8]
lea rcx, [rbx + 8]
call fcn.14000a520
nop
lea rcx, [rbp - 0x29]
call fcn.140002320
nop
lea rcx, [rbp - 9]
call fcn.140002320
nop
lea rcx, [rbp - 0x49]
call fcn.140011c94
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1400a5660
mov rbx, qword [rsp + 0x140]
add rsp, 0xf0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret