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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov qword [rsp + 0x50], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rbx, qword [0x01046b78]
mov r13d, dword [0x01046b68]
mov dword [rsp + 0xb8], r13d
mov rdi, qword [0x01046b88]
mov r8, rbx
mov edx, r13d
lea rcx, [0x010089f0]
call fcn.01011d38
mov r8d, 8
mov qword [rsp + 0x30], r8
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r8
lea edx, [r8 - 4]
mov r9, rdx
lea rcx, [0x01008a70]
call fcn.01011d38
mov rdx, rbx
lea rcx, [rdi + 0x18]
call fcn.010207e0
xor ebx, ebx
lea r14d, [rbx + 1]
cmp eax, ebx
je 0x10158ab
mov r14d, ebx
mov rcx, qword [rdi + 0x78]
cmp qword [rcx - 0x10], rbx
je 0x101589d
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r9 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r13, rax
cmp rax, 0xffffffffffffffff
je 0x101589d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp eax, 0xffffffff
je 0x1015878
lea rax, [rbp + 2]
mov qword [rsp + 0xa0], rax
mov rcx, rax
call fcn.01028e1c
mov rsi, rax
cmp rax, rbx
je 0x1015878
mov r8, qword [rsp + 0xa0]
xor edx, edx
mov rcx, rax
call fcn.01034300
mov dword [rsp + 0xa0], ebx
mov qword [rsp + 0x20], rbx
lea r9, [rsp + 0xa0]
mov r8d, ebp
mov rdx, rsi
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_ReadFile]
cmp eax, ebx
je 0x1015870
cmp dword [rsp + 0xa0], ebp
jne 0x1015870
mov rdx, rsi
lea rcx, [rdi + 0x18]
call fcn.010207e0
mov r14d, eax
mov rcx, rsi
call fcn.01028de4
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rdi + 0x78]
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
lea rcx, [rdi + 0x78]
call fcn.0100f8bc
cmp r14d, ebx
jne 0x10157ac
mov r13d, dword [rsp + 0xb8]
mov r14d, 1
lea rcx, [0x01008b40]
call fcn.01011d38
mov r11, qword [0x01045880]
mov qword [rsp + 0x48], r11
lea rcx, [rsp + 0x48]
call fcn.0100f8bc
lea r15, [0x01008bac]
cmp dword [rdi + 0x20], 4
jne 0x1015933
lea r8, [rdi + 0x30]
lea rdx, [0x01008bb8]
lea rcx, [rsp + 0xb8]
call fcn.0100fd38
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.0100fcd0
mov rdx, qword [rax]
mov r8, rdx
mov rdx, qword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.0100fdac
lea rcx, [rsp + 0xa0]
call fcn.0100f940
lea rcx, [rsp + 0xb8]
call fcn.0100f940
cmp dword [rdi + 0x48], 5
jne 0x1015992
lea r8, [rdi + 0x40]
lea rdx, [0x01008bc8]
lea rcx, [rsp + 0xb8]
call fcn.0100fd38
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.0100fcd0
mov rdx, qword [rax]
mov r8, rdx
mov rdx, qword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.0100fdac
lea rcx, [rsp + 0xa0]
call fcn.0100f940
lea rcx, [rsp + 0xb8]
call fcn.0100f940
mov rax, qword [rdi + 0x28]
cmp qword [rax - 0x10], rbx
je 0x10159f5
lea r8, [rdi + 0x28]
lea rdx, [0x01008bd8]
lea rcx, [rsp + 0xb8]
call fcn.0100fd38
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.0100fcd0
mov rdx, qword [rax]
mov r8, rdx
mov rdx, qword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.0100fdac
lea rcx, [rsp + 0xa0]
call fcn.0100f940
lea rcx, [rsp + 0xb8]
call fcn.0100f940
mov rax, qword [rdi + 0x30]
cmp qword [rax - 0x10], rbx
je 0x1015a58
lea r8, [rdi + 0x30]
lea rdx, [0x01008be8]
lea rcx, [rsp + 0xb8]
call fcn.0100fd38
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.0100fcd0
mov rdx, qword [rax]
mov r8, rdx
mov rdx, qword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.0100fdac
lea rcx, [rsp + 0xa0]
call fcn.0100f940
lea rcx, [rsp + 0xb8]
call fcn.0100f940
mov rax, qword [rdi + 0x50]
cmp qword [rax - 0x10], rbx
je 0x1015abb
lea r8, [rdi + 0x50]
lea rdx, [0x01008bf8]
lea rcx, [rsp + 0xb8]
call fcn.0100fd38
mov r8, r15
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.0100fcd0
mov rdx, qword [rax]
mov r8, rdx
mov rdx, qword [rdx - 0x10]
lea rcx, [rsp + 0x48]
call fcn.0100fdac
lea rcx, [rsp + 0xa0]
call fcn.0100f940
lea rcx, [rsp + 0xb8]
call fcn.0100f940
cmp dword [rdi + 0x5c], r14d
jne 0x1015ad2
lea rdx, [0x01008c08]
lea rcx, [rsp + 0x48]
call fcn.0100fe4c
cmp dword [rdi + 0x60], r14d
jne 0x1015ae9
lea rdx, [0x01008c18]
lea rcx, [rsp + 0x48]
call fcn.0100fe4c
cmp dword [rdi + 0x64], r14d
jne 0x1015b00
lea rdx, [0x01008c28]
lea rcx, [rsp + 0x48]
call fcn.0100fe4c
cmp dword [rdi + 0x70], ebx
je 0x1015b16
lea rdx, [0x01008c38]
lea rcx, [rsp + 0x48]
call fcn.0100fe4c
mov rdx, qword [rsp + 0x48]
lea rcx, [0x010053c4]
call fcn.01011d38
lea rcx, [0x0100d420]
call fcn.01011d38
lea r8, [rsp + 0xa0]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0xb8]
call fcn.0101ffc4
mov r15d, 2
cmp dword [rsp + 0xb8], r14d
jne 0x1015b85
cmp dword [rsp + 0xa0], ebx
jne 0x1015b74
lea rcx, [0x0100d438]
call fcn.01011d38
jmp 0x1015b80
lea rcx, [0x0100d470]
call fcn.01011d38
mov eax, r14d
jmp 0x1015bed
mov eax, dword [rsp + 0x40]
cmp eax, 4
jne 0x1015b9f
lea rcx, [0x0100d4b8]
call fcn.01011d38
mov eax, r15d
jmp 0x1015bed
cmp eax, 3
jne 0x1015bb2
lea rcx, [0x0100d4f8]
call fcn.01011d38
jmp 0x1015be8
cmp eax, 5
jne 0x1015bdc
cmp dword [rsp + 0xa0], ebx
jne 0x1015bce
lea rcx, [0x0100d538]
call fcn.01011d38
jmp 0x1015be8
lea rcx, [0x0100d580]
call fcn.01011d38
jmp 0x1015be8
lea rcx, [0x0100d5d0]
call fcn.01011d38
mov eax, 3
mov dword [rdi + 0xf4], eax
cmp eax, ebx
jne 0x1015c1e
mov dword [0x01046b80], 7
mov dword [0x01046b84], ebx
mov dword [0x01046db4], ebx
lea rcx, [rsp + 0x48]
call fcn.0100f940
xor eax, eax
jmp 0x1015db4
cmp eax, r15d
je 0x1015c31
cmp eax, 3
je 0x1015c31
mov dword [rdi + 0xf8], r14d
jmp 0x1015c3c
call fcn.01020054
mov dword [rdi + 0xf8], eax
mov edx, dword [rdi + 0xf8]
lea rcx, [0x01008c50]
call fcn.01011d38
mov dword [rdi + 0x158], r14d
mov rax, qword [rdi + 0x28]
cmp qword [rax - 0x10], rbx
je 0x1015cc9
mov rax, qword [0x01045880]
mov qword [rsp + 0xa0], rax
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0x40]
call fcn.0100f74c
mov rdx, rax
lea rcx, [rsp + 0xb8]
call fcn.01020600
mov rdx, rax
lea rcx, [rsp + 0xa0]
call fcn.0100faec
lea rcx, [rsp + 0xb8]
call fcn.0100f940
mov rdx, qword [rsp + 0xa0]
mov ecx, r14d
call fcn.01011e6c
nop
lea rcx, [rsp + 0xa0]
call fcn.0100f940
jmp 0x1015cf1
mov rdx, qword [rdi + 0x50]
cmp qword [rdx - 0x10], rbx
je 0x1015cdf
mov ecx, 3
call fcn.01011e6c
jmp 0x1015cf1
mov rdx, qword [rdi + 0x30]
cmp qword [rdx - 0x10], rbx
je 0x1015cf1
mov ecx, r15d
call fcn.01011e6c
cmp dword [rdi + 0x20], 4
jne 0x1015d0b
mov edx, r13d
mov rcx, rdi
call fcn.01015dd4
cmp eax, ebx
jne 0x1015d1c
jmp 0x1015da8
cmp dword [rdi + 0x48], 5
jne 0x1015d1c
mov edx, r13d
mov rcx, rdi
call fcn.01016120
cmp dword [rdi + 0x5c], r14d
jne 0x1015d2d
mov edx, r14d
mov rcx, rdi
call fcn.01018858
cmp dword [rdi + 0x60], r14d
jne 0x1015d3d
xor edx, edx
mov rcx, rdi
call fcn.01018858
cmp dword [rdi + 0x64], r14d
jne 0x1015d5e
mov edx, 4
mov rcx, rdi
call fcn.01018858
mov edx, eax
lea rcx, [0x01008ca0]
call fcn.01011d38
cmp dword [rdi + 0x70], ebx
je 0x1015da5
lea rdx, [rdi + 0x68]
lea rcx, [rsp + 0xa0]
call fcn.0100f74c
mov rbx, rax
lea rdx, [rdi + 0x28]
lea rcx, [rsp + 0xb8]
call fcn.0100f74c
mov r8, rbx
mov rdx, rax
mov rcx, rdi
call fcn.010188f8
mov edx, eax
lea rcx, [0x01008d20]
call fcn.01011d38
nop
mov ebx, r14d
lea rcx, [rsp + 0x48]
call fcn.0100f940
mov eax, ebx
mov rbx, qword [rsp + 0xa8]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret