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

Disassembly:
mov rax, rsp
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
mov qword [rbp - 0x21], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov rax, qword [0x1804610b0]
xor rax, rsp
mov qword [rbp + 0x27], rax
movzx r14d, dl
mov rsi, rcx
xor r13d, r13d
mov edi, r13d
mov dword [rbp - 0x45], r13d
test dl, dl
je 0x1802036f7
mov rcx, qword [rcx + 0xe8]
test rcx, rcx
je 0x1802036f7
mov rax, qword [rcx]
mov rdx, qword [rsi + 0xf0]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
mov qword [rbp - 0x29], r13
lea rbx, [rsi + 8]
mov qword [rbp - 0x29], rbx
test rbx, rbx
je 0x180203717
mov rcx, qword [rbx]
test rcx, rcx
je 0x180203717
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
nop
test r14b, r14b
je 0x180203963
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r8d, r8d
xor edx, edx
call fcn.180203ce0
mov rcx, rax
mov qword [rbp - 0x39], rax
lea rdx, [rsi + 0x20]
lea rax, [rbp - 0x39]
cmp rdx, rax
je 0x180203760
mov rax, qword [rdx]
mov qword [rdx], rcx
mov qword [rbp - 0x39], rax
mov rcx, qword [rdx + 8]
mov rax, qword [rbp - 0x31]
mov qword [rdx + 8], rax
mov qword [rbp - 0x31], rcx
lea rcx, [rbp - 0x39]
call fcn.180203bc0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x39]
call fcn.180299904
nop
lea rdx, [rsi + 0x40]
lea rcx, [rbp + 7]
call fcn.180037a20
mov edi, 1
mov dword [rbp - 0x45], edi
cmp dword [rsi + 0x38], 0
jbe 0x180203952
cmp qword [rbp + 0x17], 0
je 0x180203952
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
mov qword [rsp + 0x30], r13
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 r14, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x180203952
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r15d, eax
mov edx, dword [rsi + 0x38]
cmp eax, edx
sete r12b
jbe 0x180203911
xor r9d, r9d
xor r8d, r8d
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
sub r15d, dword [rsi + 0x38]
mov dword [rbp - 0x19], r13d
xor eax, eax
mov qword [rbp - 0x11], rax
mov qword [rbp - 9], rax
mov qword [rbp - 1], rax
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r13
mov byte [rbp - 0x49], al
lea rax, [rbp - 0x11]
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x49]
mov qword [rbp - 0x31], rax
movaps xmm0, xmmword [rbp - 0x39]
movdqa xmmword [rbp - 0x39], xmm0
mov edx, r15d
lea r8, [rbp - 0x39]
lea rcx, [rbp - 0x11]
call fcn.1801e7130
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x19]
mov r8d, r15d
mov rdx, qword [rbp - 0x11]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1802038c8
cmp dword [rbp - 0x19], r15d
jne 0x1802038c8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [rbp - 0x15], r13d
mov qword [rsp + 0x20], r13
lea r9, [rbp - 0x15]
mov r8d, r15d
mov rdx, qword [rbp - 0x11]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1802038c8
cmp dword [rbp - 0x15], r15d
jne 0x1802038cb
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
jmp 0x1802038cb
mov r12b, 1
mov rcx, qword [rbp - 0x11]
test rcx, rcx
je 0x180203911
mov rdx, qword [rbp - 1]
sub rdx, rcx
mov rax, rcx
cmp rdx, 0x1000
jb 0x180203900
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x180203a8e
call fcn.180299904
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x11], xmm0
mov qword [rbp - 1], r13
test r12b, r12b
je 0x180203930
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test r12b, r12b
je 0x180203952
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and edi, 0xfffffffe
mov dword [rbp - 0x45], edi
lea rcx, [rbp + 7]
call fcn.1800338a0
jmp 0x1802039d4
cmp qword [rsi + 0x28], 0
je 0x1802039d4
lea rcx, [rsi + 0x10]
mov rdx, qword [rcx]
lea r14, [rsi + 0x20]
mov r9, qword [r14]
mov r8, qword [r9]
call fcn.180203dd0
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x39], xmm0
xor r8d, r8d
xor edx, edx
call fcn.180203ce0
mov rcx, rax
mov qword [rbp - 0x39], rax
lea rax, [rbp - 0x39]
cmp r14, rax
je 0x1802039bc
mov rax, qword [r14]
mov qword [r14], rcx
mov qword [rbp - 0x39], rax
mov rcx, qword [r14 + 8]
mov rax, qword [rbp - 0x31]
mov qword [r14 + 8], rax
mov qword [rbp - 0x31], rcx
lea rcx, [rbp - 0x39]
call fcn.180203bc0
nop
mov edx, 0x88
mov rcx, qword [rbp - 0x39]
call fcn.180299904
mov rcx, qword [rsi + 0x30]
test rcx, rcx
je 0x180203a46
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsi + 0x30], r13
lea rdx, [rsi + 0x40]
lea rcx, [rbp + 7]
call fcn.180037a20
or edi, 4
mov dword [rbp - 0x45], edi
and edi, 0xfffffffb
mov dword [rbp - 0x45], edi
or edi, 2
mov dword [rbp - 0x45], edi
cmp qword [rbp + 0x17], 0
je 0x180203a23
mov r8d, 5
lea rdx, str..lock
lea rcx, [rbp + 7]
call fcn.180033c20
lea rcx, [rbp + 7]
cmp qword [rbp + 0x1f], 8
cmovae rcx, qword [rbp + 7]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
and edi, 0xfffffffd
mov dword [rbp - 0x45], edi
lea rcx, [rbp + 7]
call fcn.1800338a0
mov dword [rsi + 0x38], r13d
test rbx, rbx
je 0x180203a61
mov rcx, qword [rbx]
test rcx, rcx
je 0x180203a5d
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov qword [rbp - 0x29], r13
mov rcx, qword [rbp + 0x27]
xor rcx, rsp
call fcn.1802994c0
lea r11, [rsp + 0xc0]
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
call fcn.1802a54c4
nop
int3