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

Disassembly:
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x240]
sub rsp, 0x340
mov qword [rsp + 0x58], 0xfffffffffffffffe
mov qword [rsp + 0x390], rbx
mov rax, qword [0x14029e8b8]
xor rax, rsp
mov qword [rbp + 0x230], rax
mov r12d, r8d
mov rbx, rdx
mov rdi, rcx
mov rcx, qword [rcx]
test rcx, rcx
je 0x140102ee3
call fcn.1401b3018
mov rcx, qword [rdi + 8]
test rcx, rcx
je 0x140102ef1
call fcn.1401b3018
xor r13d, r13d
mov qword [rdi], r13
mov qword [rdi + 8], r13
mov dword [rdi + 0x10], r13d
call fcn.1400e34c0
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400df2f0
nop
call fcn.1400e34e0
mov rcx, rax
call fcn.1400e02a0
test al, al
je 0x140103030
mov rdx, rbx
lea rcx, [rbp - 0x80]
call fcn.1400df750
lea rcx, [rbp - 0x80]
call fcn.1400592e0
mov rcx, rax
mov qword [rsp + 0x30], r13
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
xor r9d, r9d
mov edx, 0x80000000
lea r8d, [r13 + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov r15, rax
cmp rax, 0xffffffffffffffff
jne 0x140102f7a
lea rdx, str.Error_opening_file
jmp 0x140103162
xor edx, edx
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test eax, eax
jne 0x140102f97
lea rdx, str.File_is_empty
jmp 0x140103162
cmp esi, 0x400000
jbe 0x140102fab
lea rdx, str.File_too_large
jmp 0x140103162
mov dword [rsp + 0x40], r13d
add eax, 8
mov ebx, eax
lea rdx, [0x1402b83a0]
mov ecx, eax
call fcn.140160c44
mov r14, rax
mov r8d, ebx
xor edx, edx
mov rcx, rax
call fcn.1401afc90
mov qword [rsp + 0x20], r13
lea r9, [rsp + 0x40]
mov r8d, esi
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rsp + 0x40], esi
je 0x140103017
mov rcx, r14
call fcn.1401606e8
mov rcx, rdi
call fcn.140102a20
lea rdx, str.Could_not_read_file
jmp 0x140103162
mov r9d, r12d
mov r8d, esi
mov rdx, r14
mov rcx, rdi
call fcn.140103210
mov rcx, r14
jmp 0x1401031ca
call fcn.1400e34e0
mov rdx, rax
lea rcx, [rbp - 0x80]
call fcn.1400df730
mov qword [rsp + 0x48], r13
mov dword [rsp + 0x40], r13d
call fcn.1400e36b0
test al, al
je 0x14010318e
call fcn.1400e34f0
mov rsi, rax
test rax, rax
jne 0x140103071
lea rdx, str.Error_opening_zip_file
jmp 0x140103162
movdqa xmm0, xmmword [0x1401f5800]
movdqu xmmword [rsp + 0x70], xmm0
mov word [rsp + 0x60], r13w
mov r8, 0xffffffffffffffff
nop dword [rax]
inc r8
cmp word [rbx + r8*2], 0
jne 0x140103090
mov rdx, rbx
lea rcx, [rsp + 0x60]
call fcn.14000d810
nop
lea r9, [rbp + 0x10]
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
mov rcx, rsi
call fcn.1401209a0
test eax, eax
sete bl
mov rdx, qword [rsp + 0x78]
cmp rdx, 8
jb 0x140103106
lea rdx, [rdx*2 + 2]
mov rcx, qword [rsp + 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140103101
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140103209
call fcn.1401606e8
test bl, bl
je 0x140103113
lea rdx, str.Could_not_find_ziped_file
jmp 0x140103162
mov eax, dword [rbp + 0x224]
mov dword [rsp + 0x40], eax
test eax, eax
je 0x140102f8b
cmp eax, 0x400000
ja 0x140102f9f
mov ecx, eax
lea rdx, [0x1402b83a0]
call fcn.140160c44
mov qword [rsp + 0x48], rax
mov r9d, dword [rsp + 0x40]
mov r8, rax
mov edx, dword [rsp + 0x50]
mov rcx, rsi
call fcn.1401207b0
test eax, eax
jne 0x1401031b0
lea rdx, str.Could_not_unzip_file
mov r8d, 0x63
lea rcx, [rdi + 0x18]
call fcn.1401cd648
lea rdx, [0x1401f8430]
mov r8d, 0x31
lea rcx, [rdi + 0xe0]
call fcn.1401cd648
xor bl, bl
jmp 0x1401031d3
lea rcx, [rbp - 0x80]
call fcn.1400592e0
mov rcx, rax
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov rdx, rbx
call fcn.140125380
test eax, eax
js 0x14010315b
mov r9d, r12d
mov r8d, dword [rsp + 0x40]
mov rdx, qword [rsp + 0x48]
mov rcx, rdi
call fcn.140103210
mov rcx, qword [rsp + 0x48]
movzx ebx, al
call fcn.1401606e8
nop
lea rcx, [rbp - 0x80]
call fcn.140028e30
movzx eax, bl
mov rcx, qword [rbp + 0x230]
xor rcx, rsp
call fcn.140160a40
mov rbx, qword [rsp + 0x390]
add rsp, 0x340
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call fcn.1401b3260
nop
int3