Function at 0x1800d0d90
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 [rsp + 0x48], 0xfffffffffffffffe
mov qword [rsp + 0x150], rbx
mov rax, qword [0x18020d020]
xor rax, rsp
mov qword [rbp + 0x17], rax
mov r14, rdx
mov rsi, rcx
xor r12d, r12d
cmp qword [rcx + 0x30], r12
je 0x1800d0ddd
xor edx, edx
call fcn.1800d1450
mov rcx, qword [rsi + 0xe8]
test rcx, rcx
je 0x1800d0df5
mov rax, qword [rcx]
mov rdx, qword [rsi + 0xf0]
call qword [rax]
mov qword [rbp - 0x11], r12
lea rbx, [rsi + 8]
mov rdi, rbx
mov qword [rbp - 0x11], rbx
test rbx, rbx
je 0x1800d0e18
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d0e18
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
lea rdx, [rbp - 9]
mov rcx, rsi
call fcn.1800d18c0
nop
lea rdx, [rbp - 0x31]
mov rcx, rsi
call fcn.1800d19c0
nop
cmp qword [rbp + 7], 0
je 0x1800d130a
cmp qword [rbp - 0x21], 0
je 0x1800d130a
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
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 0x1800d1304
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
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 r15, rax
mov qword [rbp - 0x39], rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1800d12e0
test rbx, rbx
je 0x1800d0ef0
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d0ee9
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rdi, r12
mov qword [rbp - 0x11], r12
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [rsp + 0x50], eax
cmp eax, 0x1400000
jbe 0x1800d0f8e
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x69], r12
mov qword [rbp - 0x69], rbx
test rbx, rbx
je 0x1800d0f2f
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d0f2f
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x1800d0f42
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], r12
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsi + 0x38], r12d
test rbx, rbx
je 0x1800d1353
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d0f85
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x69], r12
jmp 0x1800d1353
mov r15b, 1
xor r13b, r13b
test eax, eax
je 0x1800d1137
mov dword [rbp - 0x69], r12d
xor eax, eax
mov qword [rsp + 0x58], rax
mov qword [rbp - 0x79], rax
mov qword [rbp - 0x71], rax
mov qword [rsp + 0x58], r12
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x71], r12
mov byte [rsp + 0x40], al
mov edx, dword [rsp + 0x50]
lea rax, [rsp + 0x58]
mov qword [rbp - 0x59], rax
lea rax, [rsp + 0x40]
mov qword [rbp - 0x51], rax
movaps xmm0, xmmword [rbp - 0x59]
movdqa xmmword [rbp - 0x59], xmm0
lea r8, [rbp - 0x59]
lea rcx, [rsp + 0x58]
call fcn.18007e1a0
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8d, dword [rsp + 0x50]
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800d1017
mov eax, dword [rsp + 0x50]
cmp dword [rbp - 0x69], eax
je 0x1800d108a
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x51], r12
mov qword [rbp - 0x49], r12
mov rcx, qword [rsp + 0x58]
mov qword [rsp + 0x58], r12
mov qword [rbp - 0x59], rcx
mov rax, qword [rbp - 0x79]
mov qword [rbp - 0x79], r12
mov qword [rbp - 0x51], rax
mov rdx, qword [rbp - 0x71]
mov qword [rbp - 0x71], r12
mov qword [rbp - 0x49], rdx
test rcx, rcx
je 0x1800d1087
sub rdx, rcx
cmp rdx, 0x1000
jb 0x1800d1076
add rdx, 0x27
mov r8, qword [rcx - 8]
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1800d143b
mov rcx, r8
call fcn.18011e794
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x59], xmm0
mov qword [rbp - 0x49], r12
xor r15b, r15b
mov rax, qword [rbp - 0x79]
cmp qword [rsp + 0x58], rax
je 0x1800d10e6
mov rcx, r14
call fcn.1800d1a80
mov qword [rbp - 0x59], r12
mov rax, qword [rbp - 0x79]
cmp rax, qword [rsp + 0x58]
je 0x1800d10d4
nop dword [rax]
mov r8, r14
lea rdx, [rbp - 0x59]
lea rcx, [rsp + 0x58]
call fcn.1800d5260
test al, al
je 0x1800d10d4
mov rax, qword [rbp - 0x79]
sub rax, qword [rsp + 0x58]
cmp qword [rbp - 0x59], rax
jb 0x1800d10b0
movzx r13d, r13b
mov eax, 1
cmp qword [r14 + 8], 0
cmove r13d, eax
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1800d112e
mov rdx, qword [rbp - 0x71]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d111c
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d1435
call fcn.18011e794
xorps xmm0, xmm0
movdqu xmmword [rsp + 0x58], xmm0
mov qword [rbp - 0x71], r12
test r15b, r15b
je 0x1800d1279
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x59], rbx
test rbx, rbx
je 0x1800d1153
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d1153
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov eax, dword [rsp + 0x50]
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 - 0x69], r12d
mov qword [rsp + 0x20], r12
lea r9, [rbp - 0x69]
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_WriteFile]
movzx r15d, r15b
test eax, eax
cmove r15d, r12d
test rbx, rbx
je 0x1800d11af
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d11ab
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x59], r12
test r15b, r15b
je 0x1800d1279
lea r15, [rsi + 0x20]
mov rcx, r15
call fcn.1800d1a80
cmp qword [rsi + 0x18], 0
je 0x1800d1212
lea r12, [rsi + 0x10]
mov r9, qword [r12]
mov qword [rsp + 0x20], r9
mov r9, qword [r9]
mov r8, qword [r14]
lea rdx, [rbp - 0x59]
mov rcx, r14
call fcn.1800d1c00
cmp r15, r12
je 0x1800d120f
mov rcx, qword [r15]
mov rax, qword [r12]
mov qword [r15], rax
mov qword [r12], rcx
mov rcx, qword [r15 + 8]
mov rax, qword [r12 + 8]
mov qword [r15 + 8], rax
mov qword [r12 + 8], rcx
xor r12d, r12d
mov rcx, qword [rbp - 0x39]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r13b, r13b
je 0x1800d1353
lea rcx, [rbp - 9]
cmp qword [rbp + 0xf], 8
cmovae rcx, qword [rbp - 9]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov qword [rbp - 0x39], r12
mov qword [rbp - 0x39], rbx
test rbx, rbx
je 0x1800d1255
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d1255
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov dword [rsi + 0x38], r12d
test rbx, rbx
je 0x1800d1353
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d1270
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x39], r12
jmp 0x1800d1353
mov qword [rbp - 0x59], r12
mov qword [rbp - 0x59], rbx
test rbx, rbx
je 0x1800d1295
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d1295
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x1800d12a8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], r12
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [rsi + 0x38], r12d
test rbx, rbx
je 0x1800d1212
mov rcx, qword [rbx]
test rcx, rcx
je 0x1800d12d7
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x59], r12
jmp 0x1800d1212
mov rcx, qword [rsi + 0x30]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], r12
lea rcx, [rbp - 0x31]
cmp qword [rbp - 0x19], 8
cmovae rcx, qword [rbp - 0x31]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x1800d1353
mov qword [rsi + 0x30], r12
jmp 0x1800d1353
lea rbx, [rsi + 0x20]
mov rcx, rbx
call fcn.1800d1a80
cmp qword [rsi + 0x18], 0
je 0x1800d1353
mov rdx, qword [r14]
add rsi, 0x10
mov r9, qword [rsi]
mov r8, qword [r9]
mov rcx, r14
call fcn.1800d1c90
cmp rbx, rsi
je 0x1800d1353
mov rcx, qword [rbx]
mov rax, qword [rsi]
mov qword [rbx], rax
mov qword [rsi], rcx
mov rcx, qword [rbx + 8]
mov rax, qword [rsi + 8]
mov qword [rbx + 8], rax
mov qword [rsi + 8], rcx
mov rdx, qword [rbp - 0x19]
cmp rdx, 8
jb 0x1800d1393
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x31]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d138e
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d1441
call fcn.18011e794
mov qword [rbp - 0x21], r12
mov qword [rbp - 0x19], 7
mov word [rbp - 0x31], r12w
mov rdx, qword [rbp + 0xf]
cmp rdx, 8
jb 0x1800d13e0
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 9]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1800d13db
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1800d142f
call fcn.18011e794
mov qword [rbp + 7], r12
mov qword [rbp + 0xf], 7
mov word [rbp - 9], r12w
test rdi, rdi
je 0x1800d1408
mov rcx, qword [rdi]
test rcx, rcx
je 0x1800d1404
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x11], r12
mov rcx, qword [rbp + 0x17]
xor rcx, rsp
call fcn.18011e350
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.180146964
nop
call fcn.180146964
nop
call fcn.180146964
nop
call fcn.180146964
int3