Function at 0x140024a70
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x10330]
mov eax, 0x10430
call fcn.1401514a0
sub rsp, rax
mov r13, rdx
mov rbx, rcx
xor r15d, r15d
cmp dword [rcx + 0x10], r15d
jne 0x140024ab6
mov ecx, 0xffffffff
call qword [sym.imp.USER32.dll_MessageBeep]
xor eax, eax
jmp 0x140024f07
lea rax, [rbp + 0x10380]
mov qword [rbp + 0x10370], rax
call fcn.140121d48
mov rcx, rax
test rax, rax
je 0x140024f22
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rbp + 0x10380], rax
lea rdx, str.Undo...
mov r12, 0xffffffffffffffff
cmp rdx, 0x10000
jae 0x140024b0e
movzx edx, dx
lea rcx, [rbp + 0x10380]
call fcn.140017950
jmp 0x140024b29
mov r8, r12
inc r8
cmp word [rdx + r8*2], 0
jne 0x140024b11
lea rcx, [rbp + 0x10380]
call fcn.140017f80
nop
mov byte [rsp + 0x20], 1
xor r8d, r8d
lea rdx, [rbp + 0x10380]
lea rcx, [rsp + 0x30]
call fcn.140035f80
nop
movsxd rax, dword [rbx + 0x10]
lea rdx, [rax + rax*2]
shl rdx, 4
add rdx, qword [rbx + 0x20]
mov r14, qword [rdx - 0x20]
mov ecx, dword [rdx - 0x18]
test ecx, ecx
je 0x140024d18
sub ecx, 1
je 0x140024b95
cmp ecx, 1
jne 0x140024e47
lea r9, [rbp + 0x10370]
mov r8, r14
mov rdx, qword [rdx - 0x10]
mov rcx, r13
call fcn.1400339a0
mov r15, qword [rbp + 0x10370]
neg r15
jmp 0x140024e47
mov rax, qword [rdx - 0x10]
mov qword [r13], rax
movsxd rax, dword [rbx + 0x10]
lea r10, [rax + rax*2]
add r10, r10
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + r10*8 - 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd rax, dword [rbx + 0x10]
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [rbx + 0x20]
mov r15, qword [rax + rcx*8 - 0x20]
mov ecx, 0x100000
call fcn.14015ce04
mov rdx, rax
mov qword [rbp + 0x10388], rax
movsxd r8, dword [rbx + 0x10]
mov r9, qword [rbx + 0x20]
lea rcx, [r8 + r8*2]
add rcx, rcx
cmp qword [r9 + rcx*8 - 0x20], 0
jle 0x140024d0b
movabs rax, 0xa3d70a3d70a3d70b
imul r14
lea rsi, [r14 + rdx]
sar rsi, 6
mov rax, rsi
shr rax, 0x3f
add rsi, rax
mov r12, qword [rbp + 0x10388]
test rsi, rsi
jle 0x140024c54
movsxd rax, r8d
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, r14
sub rax, qword [r9 + rcx*8 - 0x20]
cqo
idiv rsi
mov rdx, rax
mov r8b, 1
lea rcx, [rsp + 0x30]
call fcn.140036290
movsxd rax, dword [rbx + 0x10]
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [rbx + 0x20]
mov r8d, 0x100000
cmp qword [rax + rcx*8 - 0x20], r8
cmovl r8, qword [rax + rcx*8 - 0x20]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x10370]
mov rdx, r12
mov rcx, qword [rax + rcx*8 - 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [rbp + 0x10370]
movsxd rax, dword [rbx + 0x10]
lea rcx, [rax + rax*2]
add rcx, rcx
mov r8, qword [rbx + 0x20]
mov r9d, edi
mov r8, qword [r8 + rcx*8 - 0x10]
mov rdx, r12
mov rcx, r13
call fcn.140033c40
movsxd rax, dword [rbx + 0x10]
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [rbx + 0x20]
sub qword [rax + rcx*8 - 0x20], rdi
movsxd rax, dword [rbx + 0x10]
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [rbx + 0x20]
add qword [rax + rcx*8 - 0x10], rdi
movsxd r8, dword [rbx + 0x10]
mov r9, qword [rbx + 0x20]
lea rcx, [r8 + r8*2]
add rcx, rcx
cmp qword [r9 + rcx*8 - 0x20], 0
jg 0x140024c28
mov r12, 0xffffffffffffffff
mov rdx, qword [rbp + 0x10388]
mov rcx, rdx
call fcn.14015ce0c
jmp 0x140024e47
mov rax, qword [rdx - 0x10]
mov qword [r13], rax
movsxd rax, dword [rbx + 0x10]
lea r10, [rax + rax*2]
add r10, r10
mov rcx, qword [rbx + 0x20]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov rcx, qword [rcx + r10*8 - 0x28]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
movsxd r8, dword [rbx + 0x10]
mov r9, qword [rbx + 0x20]
lea rcx, [r8 + r8*2]
add rcx, rcx
cmp qword [r9 + rcx*8 - 0x20], 0
jle 0x140024e44
movabs rax, 0xa3d70a3d70a3d70b
imul r14
lea rsi, [r14 + rdx]
sar rsi, 6
mov rax, rsi
shr rax, 0x3f
add rsi, rax
nop dword [rax]
test rsi, rsi
jle 0x140024dac
movsxd rax, r8d
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, r14
sub rax, qword [r9 + rcx*8 - 0x20]
cqo
idiv rsi
mov rdx, rax
mov r8b, 1
lea rcx, [rsp + 0x30]
call fcn.140036290
movsxd rax, dword [rbx + 0x10]
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [rbx + 0x20]
mov r8d, 0x10000
cmp qword [rax + rcx*8 - 0x20], r8
cmovl r8, qword [rax + rcx*8 - 0x20]
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x10370]
lea rdx, [rbp + 0x330]
mov rcx, qword [rax + rcx*8 - 0x28]
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov edi, dword [rbp + 0x10370]
lea rax, [rbp + 0x10388]
mov qword [rsp + 0x20], rax
mov r9d, edi
mov r8, r12
lea rdx, [rbp + 0x330]
mov rcx, r13
call fcn.1400335c0
movsxd rax, dword [rbx + 0x10]
lea rcx, [rax + rax*2]
add rcx, rcx
mov rax, qword [rbx + 0x20]
sub qword [rax + rcx*8 - 0x20], rdi
movsxd r8, dword [rbx + 0x10]
mov r9, qword [rbx + 0x20]
lea rcx, [r8 + r8*2]
add rcx, rcx
cmp qword [r9 + rcx*8 - 0x20], 0
jg 0x140024d80
xor r15d, r15d
movsxd rdx, dword [rbx + 0x10]
lea rdi, [rdx + rdx*2]
shl rdi, 4
add rdi, 0xffffffffffffffd0
mov rax, qword [rbx + 0x20]
movzx esi, byte [rdi + rax + 0x28]
lea r14d, [rdx - 1]
mov rcx, qword [rdi + rax + 8]
cmp rcx, 0xffffffffffffffff
je 0x140024e81
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x20]
add rcx, rdi
call fcn.140042440
lea rcx, [rbx + 8]
mov edx, r14d
call fcn.140025720
cmp sil, 1
jne 0x140024ea1
mov rdx, r13
mov rcx, rbx
call fcn.140024a70
add r15, rax
lea rax, vtable.CProgress.0
mov qword [rsp + 0x30], rax
lea rcx, [rsp + 0x30]
call fcn.14011b0fc
mov rdx, qword [rbp + 0x328]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], r12d
sub r12d, 1
jg 0x140024ed8
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rcx, [rbp + 0x240]
call fcn.1401345c0
lea rcx, [rbp + 0x158]
call fcn.14012325c
lea rcx, [rbp + 0x70]
call fcn.14012325c
lea rcx, [rsp + 0x30]
call fcn.140122134
nop
mov rax, r15
mov rbx, qword [rsp + 0x10478]
add rsp, 0x10430
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400180c0
int3