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

Disassembly:
push rbx
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x8e0
mov rax, qword [0x180185680]
xor rax, rsp
mov qword [rsp + 0x8d0], rax
mov r15d, r9d
mov dword [rsp + 0x50], r8d
mov qword [rsp + 0x70], rdx
mov r13, rcx
mov qword [rsp + 0x78], rcx
xor r14d, r14d
mov edi, r14d
mov qword [rsp + 0x68], r14
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0x4d0]
call fcn.180113150
mov ebx, r14d
mov qword [rsp + 0x48], rbx
mov rcx, r13
call sym.SafeBase64.dll_LngGetFileAttributes
mov ecx, 0x80
cmp eax, 0xffffffff
cmove eax, ecx
mov dword [rsp + 0x64], eax
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r14 + 1]
mov rcx, r13
call sym.SafeBase64.dll_LngCreateFile
mov rsi, rax
mov qword [rsp + 0x58], rax
cmp rax, 0xffffffffffffffff
jne 0x180019ea1
xor eax, eax
mov rcx, qword [rsp + 0x8d0]
xor rcx, rsp
call fcn.18010faf0
add rsp, 0x8e0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbx
ret
lea rdx, [rsp + 0xa0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
mov r12d, eax
mov dword [rsp + 0x40], eax
test eax, eax
je 0x18001a2a0
mov r12d, r14d
mov dword [rsp + 0x40], r14d
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa8]
mov r8d, 0x400
lea rdx, [rsp + 0xb0]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001a2a0
mov edx, 2
lea rcx, [rsp + 0xb0]
call sym.SafeBase64.dll_Ordinal_38
test eax, eax
je 0x180019f1b
mov r12d, 1
mov dword [rsp + 0x40], r12d
jmp 0x18001a2a0
movaps xmm0, xmmword [rsp + 0xb0]
movups xmmword [rsp + 0x90], xmm0
movaps xmm0, xmmword [rsp + 0xc0]
movups xmmword [rsp + 0x4b0], xmm0
xor edx, edx
mov r8d, 0x400
lea rcx, [rsp + 0xb0]
call fcn.180113150
mov edx, 2
lea rcx, [rsp + 0xb0]
call sym.SafeBase64.dll_Ordinal_37
movups xmm0, xmmword [rsp + 0x90]
movaps xmmword [rsp + 0x190], xmm0
movups xmm1, xmmword [rsp + 0x4b0]
movaps xmmword [rsp + 0x1a0], xmm1
movaps xmm0, xmmword [rsp + 0x150]
movups xmmword [rsp + 0x4b0], xmm0
movaps xmm1, xmmword [rsp + 0x160]
movups xmmword [rsp + 0x4c0], xmm1
mov edx, dword [rsp + 0x50]
mov rcx, qword [rsp + 0x70]
call sym.SafeBase64.dll_Ordinal_34
mov dword [rsp + 0x174], eax
mov edx, 0x3fc
lea rcx, [rsp + 0xb0]
call sym.SafeBase64.dll_Ordinal_34
mov dword [rsp + 0x4ac], eax
movzx eax, word [rsp + 0x178]
mov dword [rsp + 0x20], eax
mov r9d, dword [rsp + 0x50]
mov r8, qword [rsp + 0x70]
mov edx, 0x20
lea rcx, [rsp + 0x150]
call sym.SafeBase64.dll_Ordinal_23
mov rax, qword [rsp + 0xa0]
mov ecx, 0x100000
cmp rax, rcx
cmovl ecx, eax
mov qword [rsp + 0x70], rcx
call fcn.180115540
mov rdi, rax
mov qword [rsp + 0x68], rax
test rax, rax
je 0x18001a2a0
mov r8, r13
mov edx, 0x1ff
lea rcx, [rsp + 0x4d0]
call fcn.1801259f0
mov word [rsp + 0x6c4], r14w
lea r8, str.._IX_
mov edx, 0x1ff
lea rcx, [rsp + 0x4d0]
call fcn.180125a58
mov qword [rsp + 0x30], r14
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 3]
lea rcx, [rsp + 0x4d0]
call sym.SafeBase64.dll_LngCreateFile
mov rbx, rax
mov qword [rsp + 0x48], rax
cmp rax, 0xffffffffffffffff
je 0x18001a2a0
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xac]
mov r8d, 0x400
lea rdx, [rsp + 0xb0]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a2a0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
test eax, eax
jne 0x18001a2a0
mov r13, r14
mov qword [rsp + 0x88], r14
mov rbx, qword [rsp + 0xa0]
test rbx, rbx
jle 0x18001a1df
mov rcx, qword [rsp + 0x70]
mov eax, ecx
cmp rbx, rax
cmovg ebx, ecx
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xa8]
mov r8d, ebx
mov rdx, rdi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x18001a29b
mov rsi, rdi
mov qword [rsp + 0x80], rdi
mov edi, ebx
mov dword [rsp + 0x60], ebx
mov dword [rsp + 0x20], r15d
mov r9d, 0x20
lea r8, [rsp + 0x4b0]
mov rcx, rsi
cmp edi, 0x200
jbe 0x18001a183
mov edx, 0x200
call sym.SafeBase64.dll_Ordinal_23
add rsi, 0x200
mov qword [rsp + 0x80], rsi
add edi, 0xfffffe00
mov dword [rsp + 0x60], edi
jmp 0x18001a140
mov edx, edi
call sym.SafeBase64.dll_Ordinal_23
mov qword [rsp + 0x20], r14
lea r9, [rsp + 0xac]
mov r8d, ebx
mov rdi, qword [rsp + 0x68]
mov rdx, rdi
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x18001a296
mov eax, ebx
mov rbx, qword [rsp + 0xa0]
sub rbx, rax
mov qword [rsp + 0xa0], rbx
add r13, rax
mov qword [rsp + 0x88], r13
mov rsi, qword [rsp + 0x58]
jmp 0x18001a0f5
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, r14
mov qword [rsp + 0x58], r14
mov rbx, r14
mov qword [rsp + 0x48], rbx
mov r13d, dword [rsp + 0x64]
mov r15, qword [rsp + 0x78]
test r13b, 1
je 0x18001a221
mov edx, r13d
and edx, 0xfffffffe
mov rcx, r15
call sym.SafeBase64.dll_LngSetFileAttributes
mov r8d, 3
mov rdx, r15
lea rcx, [rsp + 0x4d0]
call sym.SafeBase64.dll_LngMoveFileEx
mov r12d, eax
mov dword [rsp + 0x40], eax
test eax, eax
jne 0x18001a282
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x18001a282
mov rcx, r15
call sym.SafeBase64.dll_LngDeleteFile
test eax, eax
je 0x18001a282
lea r8d, [r12 + 3]
mov rdx, r15
lea rcx, [rsp + 0x4d0]
call sym.SafeBase64.dll_LngMoveFileEx
mov r12d, eax
mov dword [rsp + 0x40], eax
mov edx, r13d
mov rcx, r15
call sym.SafeBase64.dll_LngSetFileAttributes
jmp 0x18001a2a0
test r12d, r12d
jne 0x18001a275
lea rcx, [rsp + 0x4d0]
call sym.SafeBase64.dll_LngDeleteFile
jmp 0x18001a2a0
mov rsi, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x48]
test rdi, rdi
je 0x18001a2ad
mov rcx, rdi
call fcn.180115548
test rsi, rsi
je 0x18001a2bb
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test rbx, rbx
je 0x18001a396
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp r14w, word [rsp + 0x4d0]
je 0x18001a396
lea rdi, [rsp + 0x4d0]
lea rax, [rsp + 0x4d0]
mov r8, 0xffffffffffffffff
mov rbx, r8
inc rbx
cmp word [rax + rbx*2], 0
jne 0x18001a2f6
add ebx, 0x10
cmp ebx, 0x104
jb 0x18001a380
mov rcx, qword [rsp + 0x4d0]
cmp rcx, qword [0x180155dd0]
je 0x18001a380
mov ecx, ebx
mov eax, 2
mul rcx
cmovo rax, r8
lea rdx, [0x1801423a8]
mov rcx, rax
call fcn.18010fb14
mov rdi, rax
test rax, rax
jne 0x18001a352
lea ecx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, r12d
jmp 0x180019e7e
mov r14d, 1
lea eax, [rbx - 1]
mov ebx, eax
lea r8, [0x180155dd0]
mov edx, eax
mov rcx, rdi
call fcn.1801259f0
lea r8, [rsp + 0x4d0]
mov edx, ebx
mov rcx, rdi
call fcn.180125a58
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test r14d, r14d
je 0x18001a396
mov rcx, rdi
call sym.SafeBase64.dll_SafeBase_free
mov eax, r12d
jmp 0x180019e7e