Function at 0x18004c090
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, 0x100
mov qword [rbp - 0x59], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x1801bc080]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov rsi, rdx
mov rdi, rcx
xor r14d, r14d
cmp qword [rcx + 0x30], r14
je 0x18004c0dc
xor edx, edx
call fcn.18004c6e0
mov rcx, qword [rdi + 0xe8]
test rcx, rcx
je 0x18004c0f4
mov rax, qword [rcx]
mov rdx, qword [rdi + 0xf0]
call qword [rax]
mov edx, 8
lea rcx, [rbp - 0x69]
call fcn.18001cf90
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x69]
call fcn.18001b990
nop
lea rdx, [rbp - 9]
mov rcx, rdi
call fcn.18004cb30
nop
lea rdx, [rbp - 0x29]
mov rcx, rdi
call fcn.18004cc30
nop
cmp qword [rbp + 7], 0
je 0x18004c5b2
cmp qword [rbp - 0x19], 0
je 0x18004c5b2
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
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 0x18004c5ac
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
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 0x18004c588
mov rcx, qword [rbp - 0x69]
test rcx, rcx
je 0x18004c1e5
mov rcx, qword [rcx]
test rcx, rcx
je 0x18004c1e1
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x69], r14
xor edx, edx
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rbp - 0x51], eax
cmp eax, 0x1400000
jbe 0x18004c26c
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, 8
lea rcx, [rbp - 0x31]
call fcn.18001cf90
lea rdx, [rdi + 8]
lea rcx, [rbp - 0x31]
call fcn.18001b990
nop
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x18004c232
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], r14
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rdi + 0x38], r14d
lea rcx, [rbp - 0x31]
call fcn.18001b9c0
jmp 0x18004c5f9
mov bl, 1
xor r15b, r15b
test eax, eax
je 0x18004c414
mov dword [rbp - 0x31], r14d
xor eax, eax
mov qword [rbp - 0x49], rax
mov qword [rbp - 0x41], rax
mov qword [rbp - 0x39], rax
mov qword [rbp - 0x49], r14
mov qword [rbp - 0x41], r14
mov qword [rbp - 0x39], r14
mov byte [rsp + 0x40], al
mov edx, dword [rbp - 0x51]
lea rax, [rbp - 0x49]
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 - 0x49]
call fcn.18004cf00
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x31]
mov r8d, dword [rbp - 0x51]
mov rdx, qword [rbp - 0x49]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18004c2f0
mov eax, dword [rbp - 0x51]
cmp dword [rbp - 0x31], eax
je 0x18004c365
mov qword [rsp + 0x50], r14
mov qword [rsp + 0x58], r14
mov qword [rbp - 0x79], r14
mov rcx, qword [rbp - 0x49]
mov qword [rbp - 0x49], r14
mov qword [rsp + 0x50], rcx
mov rax, qword [rbp - 0x41]
mov qword [rbp - 0x41], r14
mov qword [rsp + 0x58], rax
mov rdx, qword [rbp - 0x39]
mov qword [rbp - 0x39], r14
mov qword [rbp - 0x79], rdx
test rcx, rcx
je 0x18004c363
sub rdx, rcx
cmp rdx, 0x1000
jb 0x18004c351
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x18004c6d3
mov rcx, r8
call fcn.1800ef5a0
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x50], xmm0
mov qword [rbp - 0x79], r14
xor bl, bl
mov rax, qword [rbp - 0x41]
cmp qword [rbp - 0x49], rax
je 0x18004c3c6
mov rcx, rsi
call fcn.18004ccf0
mov qword [rsp + 0x50], r14
mov rax, qword [rbp - 0x41]
cmp rax, qword [rbp - 0x49]
je 0x18004c3b4
nop word [rax + rax]
mov r8, rsi
lea rdx, [rsp + 0x50]
lea rcx, [rbp - 0x49]
call fcn.1800520a0
test al, al
je 0x18004c3b4
mov rax, qword [rbp - 0x41]
sub rax, qword [rbp - 0x49]
cmp qword [rsp + 0x50], rax
jb 0x18004c390
movzx r15d, r15b
mov eax, 1
cmp qword [rsi + 8], 0
cmove r15d, eax
mov rcx, qword [rbp - 0x49]
test rcx, rcx
je 0x18004c40c
mov rdx, qword [rbp - 0x39]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004c3fb
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004c6cd
call fcn.1800ef5a0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x49], xmm0
mov qword [rbp - 0x39], r14
test bl, bl
je 0x18004c530
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.18001cf90
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x50]
call fcn.18001b990
nop
mov eax, dword [rbp - 0x51]
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 - 0x31], r14d
mov qword [rsp + 0x20], r14
lea r9, [rbp - 0x31]
mov r8d, 4
lea rdx, [rbp - 0x51]
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx ebx, bl
test eax, eax
cmove ebx, r14d
lea rcx, [rsp + 0x50]
call fcn.18001b9c0
test bl, bl
je 0x18004c530
lea rbx, [rdi + 0x20]
mov rcx, rbx
call fcn.18004ccf0
cmp qword [rdi + 0x18], 0
je 0x18004c4d9
lea r14, [rdi + 0x10]
mov r9, qword [r14]
mov qword [rsp + 0x20], r9
mov r9, qword [r9]
mov r8, qword [rsi]
lea rdx, [rsp + 0x50]
mov rcx, rsi
call fcn.18004ce70
cmp rbx, r14
je 0x18004c4d6
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.18001f260
xor r14d, r14d
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r15b, r15b
je 0x18004c5f9
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.18001cf90
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x50]
call fcn.18001b990
nop
mov dword [rdi + 0x38], r14d
lea rcx, [rsp + 0x50]
call fcn.18001b9c0
jmp 0x18004c5f9
mov edx, 8
lea rcx, [rsp + 0x50]
call fcn.18001cf90
lea rdx, [rdi + 8]
lea rcx, [rsp + 0x50]
call fcn.18001b990
nop
mov rcx, qword [rdi + 0x30]
test rcx, rcx
je 0x18004c561
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], r14
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rdi + 0x38], r14d
lea rcx, [rsp + 0x50]
call fcn.18001b9c0
jmp 0x18004c4d9
mov rcx, qword [rdi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rdi + 0x30], r14
lea rcx, [rbp - 0x29]
cmp qword [rbp - 0x11], 8
cmovae rcx, qword [rbp - 0x29]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x18004c5f9
mov qword [rdi + 0x30], r14
jmp 0x18004c5f9
lea rbx, [rdi + 0x20]
mov rcx, rbx
call fcn.18004ccf0
cmp qword [rdi + 0x18], 0
je 0x18004c5f9
mov rdx, qword [rsi]
add rdi, 0x10
mov r9, qword [rdi]
mov r8, qword [r9]
mov rcx, rsi
call fcn.18004d060
cmp rbx, rdi
je 0x18004c5f9
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.18001f260
nop
mov rdx, qword [rbp - 0x11]
cmp rdx, 8
jb 0x18004c639
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x29]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004c634
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004c6d9
call fcn.1800ef5a0
mov qword [rbp - 0x19], r14
mov qword [rbp - 0x11], 7
mov word [rbp - 0x29], r14w
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x18004c686
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x18004c681
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x18004c6c7
call fcn.1800ef5a0
mov qword [rbp + 7], r14
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r14w
lea rcx, [rbp - 0x69]
call fcn.18001b9c0
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.1800ef540
mov rbx, qword [rsp + 0x150]
add rsp, 0x100
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.180111064
nop
call fcn.180111064
nop
call fcn.180111064
nop
call fcn.180111064
int3