Function at 0x18003a450
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 - 0x10]
sub rsp, 0x110
mov qword [rsp + 0x78], 0xfffffffffffffffe
mov qword [rsp + 0x160], rbx
mov rax, qword [0x180208090]
xor rax, rsp
mov qword [rbp], rax
mov r14, rdx
mov rsi, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
je 0x18003a49d
xor edx, edx
call fcn.18003aa70
mov rcx, qword [rsi + 0xe8]
test rcx, rcx
je 0x18003a4b5
mov rax, qword [rcx]
mov rdx, qword [rsi + 0xf0]
call qword [rax]
lea rcx, [rbp - 0x48]
call fcn.18001cb20
lea rdi, [rsi + 8]
mov rdx, rdi
lea rcx, [rbp - 0x48]
call fcn.1800038d0
nop
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.18003aea0
nop
lea rdx, [rbp - 0x40]
mov rcx, rsi
call fcn.18003af50
nop
lea rcx, [rbp - 0x20]
call fcn.180005c00
test al, al
jne 0x18003a97b
lea rcx, [rbp - 0x40]
call fcn.180005c00
test al, al
jne 0x18003a97b
lea rcx, [rbp - 0x40]
call fcn.180003a80
mov rcx, rax
mov qword [rsp + 0x30], r12
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 [rsi + 0x30], rax
dec rax
cmp rax, 0xfffffffffffffffd
ja 0x18003a972
lea rcx, [rbp - 0x20]
call fcn.180003a80
mov rcx, rax
mov qword [rsp + 0x30], r12
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 0x18003a94d
mov rcx, qword [rbp - 0x48]
test rcx, rcx
je 0x18003a5ac
mov rcx, qword [rcx]
test rcx, rcx
je 0x18003a5a8
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x48], r12
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp - 0x78], eax
cmp eax, 0x1400000
jbe 0x18003a629
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [rbp - 0x80]
call fcn.18001cb20
mov rdx, rdi
lea rcx, [rbp - 0x80]
call fcn.1800038d0
nop
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x18003a5f3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], r12
lea rcx, [rbp - 0x20]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x40]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsi + 0x38], r12d
lea rcx, [rbp - 0x80]
call fcn.180003920
jmp 0x18003aa1d
mov bl, 1
xor r15b, r15b
test eax, eax
je 0x18003a7c6
mov dword [rbp - 0x80], r12d
xor eax, eax
mov qword [rbp - 0x60], rax
mov qword [rbp - 0x58], rax
mov qword [rbp - 0x50], rax
mov qword [rbp - 0x60], r12
mov qword [rbp - 0x58], r12
mov qword [rbp - 0x50], r12
mov byte [rsp + 0x40], al
mov edx, dword [rbp - 0x78]
lea rax, [rbp - 0x60]
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
lea r8, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.18003b4a0
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
mov r8d, dword [rbp - 0x78]
mov rdx, qword [rbp - 0x60]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18003a6b1
mov eax, dword [rbp - 0x78]
cmp dword [rbp - 0x80], eax
je 0x18003a735
mov qword [rsp + 0x50], r12
mov qword [rsp + 0x58], r12
mov qword [rsp + 0x60], r12
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x60]
call fcn.180003810
mov rcx, qword [rbp - 0x60]
mov rax, qword [rsp + 0x50]
mov qword [rbp - 0x60], rax
mov qword [rsp + 0x50], rcx
mov rcx, qword [rbp - 0x58]
mov rax, qword [rsp + 0x58]
mov qword [rbp - 0x58], rax
mov qword [rsp + 0x58], rcx
mov rcx, qword [rbp - 0x50]
mov rax, qword [rsp + 0x60]
mov qword [rbp - 0x50], rax
mov qword [rsp + 0x60], rcx
lea rcx, [rsp + 0x50]
call fcn.180003800
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x18003a733
mov rdx, qword [rsp + 0x60]
sub rdx, rcx
call fcn.180005040
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x60], r12
xor bl, bl
mov rax, qword [rbp - 0x58]
cmp qword [rbp - 0x60], rax
je 0x18003a794
mov rcx, r14
call fcn.18003b0b0
mov qword [rbp - 0x70], r12
mov rax, qword [rbp - 0x58]
cmp rax, qword [rbp - 0x60]
je 0x18003a782
nop word [rax + rax]
mov r8, r14
lea rdx, [rbp - 0x70]
lea rcx, [rbp - 0x60]
call fcn.180040050
test al, al
je 0x18003a782
mov rax, qword [rbp - 0x58]
sub rax, qword [rbp - 0x60]
cmp qword [rbp - 0x70], rax
jb 0x18003a760
movzx r15d, r15b
mov eax, 1
cmp qword [r14 + 8], 0
cmove r15d, eax
lea rcx, [rbp - 0x60]
call fcn.180003800
mov rcx, qword [rbp - 0x60]
test rcx, rcx
je 0x18003a7be
mov rdx, qword [rbp - 0x50]
sub rdx, rcx
call fcn.180005040
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x60], xmm0
mov qword [rbp - 0x50], r12
test bl, bl
je 0x18003a900
lea rcx, [rbp - 0x70]
call fcn.18001cb20
mov rdx, rdi
lea rcx, [rbp - 0x70]
call fcn.1800038d0
nop
mov eax, dword [rbp - 0x78]
mov dword [rsi + 0x38], eax
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x80], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x80]
mov r8d, 4
lea rdx, [rbp - 0x78]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ebx, bl
test eax, eax
cmove ebx, r12d
lea rcx, [rbp - 0x70]
call fcn.180003920
test bl, bl
je 0x18003a900
lea rcx, [rsi + 0x20]
call fcn.18003b0b0
cmp qword [rsi + 0x18], 0
je 0x18003a8b1
mov rax, qword [r14]
mov qword [rbp - 0x70], rax
mov rdx, r14
lea rcx, [rbp - 0x70]
call fcn.180003810
mov rbx, qword [rbp - 0x70]
mov rax, qword [rsi + 0x10]
mov qword [rbp - 0x80], rax
lea rdx, [rsi + 0x10]
lea rcx, [rbp - 0x80]
call fcn.180003810
mov rax, qword [rsi + 0x10]
mov rdx, qword [rax]
mov qword [rbp - 0x68], rdx
lea rdx, [rsi + 0x10]
lea rcx, [rbp - 0x68]
call fcn.180003810
mov rax, qword [rbp - 0x80]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x68]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.18003b3a0
lea rdx, [rsi + 0x10]
lea rcx, [rsi + 0x20]
call fcn.18003b070
lea rdi, [rsi + 8]
xor r12d, r12d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
je 0x18003aa1d
lea rcx, [rbp - 0x20]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x68]
call fcn.18001cb20
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.1800038d0
nop
mov dword [rsi + 0x38], r12d
lea rcx, [rbp - 0x68]
call fcn.180003920
jmp 0x18003aa1d
lea rcx, [rbp - 0x68]
call fcn.18001cb20
mov rdx, rdi
lea rcx, [rbp - 0x68]
call fcn.1800038d0
nop
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x18003a929
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], r12
lea rcx, [rbp - 0x40]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsi + 0x38], r12d
lea rcx, [rbp - 0x68]
call fcn.180003920
jmp 0x18003a8b4
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], r12
lea rcx, [rbp - 0x40]
call fcn.180003a80
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18003aa1d
mov qword [rsi + 0x30], r12
jmp 0x18003aa1d
lea rdi, [rsi + 0x20]
mov rcx, rdi
call fcn.18003b0b0
cmp qword [rsi + 0x18], 0
je 0x18003aa1d
mov rax, qword [r14]
mov qword [rbp - 0x68], rax
mov rdx, r14
lea rcx, [rbp - 0x68]
call fcn.180003810
mov rbx, qword [rbp - 0x68]
add rsi, 0x10
mov rax, qword [rsi]
mov qword [rbp - 0x70], rax
mov rdx, rsi
lea rcx, [rbp - 0x70]
call fcn.180003810
mov rax, qword [rsi]
mov rcx, qword [rax]
mov qword [rbp - 0x80], rcx
mov rdx, rsi
lea rcx, [rbp - 0x80]
call fcn.180003810
mov rax, qword [rbp - 0x70]
mov qword [rsp + 0x20], rax
mov r9, qword [rbp - 0x80]
mov r8, rbx
lea rdx, [rsp + 0x50]
mov rcx, r14
call fcn.18003b3a0
cmp rdi, rsi
je 0x18003aa1d
mov rdx, rsi
mov rcx, rdi
call fcn.180003810
mov rcx, qword [rdi]
mov rax, qword [rsi]
mov qword [rdi], rax
mov qword [rsi], rcx
lea rdx, [rsi + 8]
lea rcx, [rdi + 8]
call fcn.18001c6c0
nop
lea rcx, [rbp - 0x40]
call fcn.180003b80
nop
lea rcx, [rbp - 0x20]
call fcn.180003b80
nop
lea rcx, [rbp - 0x48]
call fcn.180003920
mov rcx, qword [rbp]
xor rcx, rsp
call fcn.1800d8050
mov rbx, qword [rsp + 0x160]
add rsp, 0x110
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret