Function at 0x140032d80
Capabilities:
Get file size
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov byte [rsp + 0x20], r9b
mov dword [rsp + 0x18], r8d
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x370]
sub rsp, 0x470
mov r13, rdx
mov rbx, rcx
xor esi, esi
mov qword [rsp + 0x58], rsi
call fcn.1400331b0
mov ecx, 0x100000
call fcn.14015ce04
mov r15, rax
test rax, rax
jne 0x140032dd6
lea rax, [rsi - 1]
jmp 0x140033184
mov rdx, r13
lea rcx, [rsp + 0x38]
call fcn.14000a4d0
nop
lea rdi, vtable.JRPropertyMap.0
mov qword [rsp + 0x40], rdi
mov qword [rsp + 0x48], rsi
mov byte [rsp + 0x50], 1
xor edx, edx
lea rcx, [rsp + 0x38]
call fcn.14004d810
nop
lea r14, [rbx + 0x18]
lea rax, [rsp + 0x38]
cmp rax, r14
je 0x140032e3d
lea rdx, [rsp + 0x38]
mov rcx, r14
call fcn.140037020
lea rcx, [r14 + 8]
mov rax, qword [rcx]
lea rdx, [rsp + 0x40]
call qword [rax + 0x80]
movzx eax, byte [rsp + 0x50]
mov byte [r14 + 0x18], al
mov qword [rsp + 0x40], rdi
mov rcx, qword [rsp + 0x48]
test rcx, rcx
je 0x140032e5b
mov rax, qword [rcx]
mov edx, 1
call qword [rax]
mov qword [rsp + 0x48], rsi
mov rdx, qword [rsp + 0x38]
add rdx, 0xffffffffffffffe8
mov eax, dword [rdx + 0x10]
mov rdi, 0xffffffffffffffff
cmp eax, 0x7ffffc17
je 0x140032e92
mov eax, dword [rdx + 0x10]
cmp eax, edi
je 0x140032e88
mov eax, edi
lock xadd dword [rdx + 0x10], eax
sub eax, 1
jg 0x140032e92
mov rcx, qword [rdx]
mov rax, qword [rcx]
call qword [rax + reloc.OLEAUT32.dll_VariantClear]
nop
mov dword [rbx + 0x38], 1
mov dword [rbx + 0x40], 3
mov rcx, r14
call fcn.140056b10
test al, al
jne 0x140032ebb
mov rcx, r15
call fcn.14015ce0c
mov eax, edi
jmp 0x140033184
cmp byte [r14 + 0x2f], 0
jne 0x140032ed1
mov dl, 1
mov rcx, r14
call fcn.14004fa60
mov r12, rax
jmp 0x140032ef8
mov dword [rbp + 0x3d0], esi
lea rdx, [rbp + 0x3d0]
mov rcx, qword [r14 + 0x38]
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov r12d, dword [rbp + 0x3d0]
shl r12, 0x20
mov eax, eax
add r12, rax
lea rax, [rsp + 0x30]
mov qword [rsp + 0x60], rax
call fcn.140121d48
mov rcx, rax
test rax, rax
je 0x14003319f
mov rax, qword [rax]
call qword [rax + 0x18]
add rax, 0x18
mov qword [rsp + 0x30], rax
lea rdx, str.Opening_file...
cmp rdx, 0x10000
jae 0x140032f41
movzx edx, dx
lea rcx, [rsp + 0x30]
call fcn.140017950
jmp 0x140032f5a
mov r8, rdi
inc r8
cmp word [rdx + r8*2], 0
jne 0x140032f44
lea rcx, [rsp + 0x30]
call fcn.140017f80
nop
mov byte [rsp + 0x20], 1
mov r8b, 1
lea rdx, [rsp + 0x30]
lea rcx, [rsp + 0x70]
call fcn.140035f80
nop
cmp byte [rbx + 0x47], 0
je 0x140032f94
mov dword [rbp + 0x3c0], esi
xor r9d, r9d
lea r8, [rbp + 0x3c0]
xor edx, edx
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
mov qword [rsp + 0x20], rsi
lea r9, [rbp + 0x3c8]
mov r8d, 0x100000
mov rdx, r15
mov rcx, qword [rbx + 0x50]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140033076
mov r14d, dword [rbp + 0x3c8]
test r14, r14
je 0x1400330a6
cmp byte [rbp + 0xa0], 0
jne 0x1400330a6
cmp r12d, 0xc8
jb 0x140033011
mov rcx, rbx
call fcn.140033550
mov r8, rax
mov eax, 0x51eb851f
mul r12d
shr edx, 5
mov ecx, edx
mov rax, r8
cqo
idiv rcx
movsxd rdx, eax
mov r8b, 1
lea rcx, [rsp + 0x70]
call fcn.140036290
mov ecx, 0x60
call fcn.140111d34
mov qword [rsp + 0x60], rax
test rax, rax
je 0x14003302f
mov rcx, rax
call fcn.140032540
jmp 0x140033032
mov rax, rsi
lea rcx, [rbx + 0x58]
mov r8, rax
mov edx, dword [rbx + 0x60]
call fcn.140033de0
movsxd rcx, dword [rbx + 0x60]
mov rax, qword [rbx + 0x70]
lea rdx, [rsp + 0x58]
mov qword [rsp + 0x20], rdx
mov r9, r14
xor r8d, r8d
mov rdx, r15
mov rcx, qword [rax + rcx*8 - 8]
call fcn.140032810
test eax, eax
jne 0x1400330a2
cmp r14, qword [rsp + 0x58]
jne 0x1400330a2
jmp 0x140032f94
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, r15
call fcn.14015ce0c
cmp byte [rbx + 0x47], 0
je 0x14003309e
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x14003309e
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov byte [rbx + 0x47], 0
mov esi, edi
jmp 0x14003311e
mov rcx, r15
call fcn.14015ce0c
cmp byte [rbx + 0x47], 0
je 0x1400330c8
mov rcx, qword [rbx + 0x50]
cmp rcx, 0xffffffffffffffff
je 0x1400330c8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x50], rdi
mov byte [rbx + 0x47], 0
cmp byte [rbp + 0xa0], 1
jne 0x1400330e4
mov rcx, rbx
call fcn.1400331b0
mov esi, 0x3e8
jmp 0x14003311e
lea rcx, [rbx + 8]
test r13, r13
jne 0x1400330f2
mov r8d, esi
jmp 0x14003310c
mov r8, rdi
nop word [rax + rax]
inc r8
cmp word [r13 + r8*2], 0
jne 0x140033100
mov rdx, r13
call fcn.140017f80
mov word [rbx + 0x78], 1
mov byte [rbx + 0x7a], 1
lea rax, vtable.CProgress.0
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0x70]
call fcn.14011b0fc
mov rdx, qword [rbp + 0x368]
add rdx, 0xffffffffffffffe8
lock xadd dword [rdx + 0x10], edi
sub edi, 1
jg 0x140033153
mov rcx, qword [rdx]
mov r8, qword [rcx]
call qword [rreloc.OLEAUT32.dll_VariantClear + 8]
lea rcx, [rbp + 0x280]
call fcn.1401345c0
lea rcx, [rbp + 0x198]
call fcn.14012325c
lea rcx, [rbp + 0xb0]
call fcn.14012325c
lea rcx, [rsp + 0x70]
call fcn.140122134
nop
mov eax, esi
mov rbx, qword [rsp + 0x4b0]
add rsp, 0x470
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, 0x80004005
call fcn.1400180c0
int3