Function at 0x140082658
Capabilities:
Read file on windows

Disassembly:
push rsi
sub rsp, 0x20
mov rsi, rcx
mov rcx, rdx
mov edx, 0xab
call fcn.1400039d3
mov rdx, qword [rax]
cmp byte [rdx], 0
je 0x140082682
mov rcx, rsi
add rsp, 0x20
pop rsi
jmp 0x140082dd2
nop
add rsp, 0x20
pop rsi
ret
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, rdx
mov rdi, rcx
mov rax, qword [0x1400d80e0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp byte [rcx], 0
je 0x140082e06
xor ebx, ebx
jmp 0x140082e11
mov rcx, qword [rdi + 0x20]
call fcn.14007b588
mov ebx, eax
lea rdx, [0x1400c3e83]
mov rcx, rsi
call fcn.140092744
test rax, rax
je 0x140083225
mov rbp, rax
mov qword [rsp + 0x28], rdi
call fcn.14007ca49
mov rdi, rax
xor esi, esi
mov ecx, 0x8000c
mov edx, 1
xor r8d, r8d
call fcn.140012388
mov r13, rax
mov edx, 1
mov r8d, 0x8000c
mov rcx, rax
mov qword [rsp + 0x48], rbp
mov r9, rbp
call fcn.1400928c8
mov rbp, rax
movsxd rax, ebp
lea rcx, [rsp + 0x90]
mov qword [rcx], r13
mov qword [rcx + 0x10], rax
mov qword [rcx + 8], 0
mov dword [rcx + 0x18], 0
mov qword [rcx + 0x20], rcx
mov qword [rsp + 0x38], rdi
test rdi, rdi
setne al
and al, bl
mov byte [rsp + 0x27], al
xor bl, 1
mov dword [rsp + 0x34], ebx
lea rbx, [rsp + 0x80]
lea r15, [0x1400b5430]
xor eax, eax
mov qword [rsp + 0x50], rax
cmp rsi, 0x40005
jbe 0x140082f3c
sub ebp, esi
add rsi, r13
movsxd rbp, ebp
mov rcx, r13
mov rdx, rsi
mov r8, rbp
call fcn.140085190
mov r8d, 0x8000c
sub r8, rbp
mov rcx, r13
add rcx, rbp
mov edx, 1
mov r9, qword [rsp + 0x48]
call fcn.1400928c8
add ebp, eax
movsxd rax, ebp
mov qword [rsp + 0x90], r13
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x98], 0
mov dword [rsp + 0xa8], 0
lea rcx, [rsp + 0x90]
mov qword [rsp + 0xb0], rcx
jmp 0x140082f44
mov rcx, qword [rsp + 0xb0]
call fcn.140012078
mov r12d, eax
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsi + 0x20]
call fcn.140012078
mov r8d, eax
mov rdx, qword [rsi + 0x20]
mov rcx, rbx
call fcn.140011fde
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x40], rax
mov r14, qword [rsp + 0x88]
mov rsi, qword [rsp + 0xb0]
mov rcx, qword [rsi + 0x20]
call fcn.140012078
mov r8d, eax
mov rdx, qword [rsi + 0x20]
lea rsi, [rsp + 0x60]
mov rcx, rsi
call fcn.140011fde
mov rcx, rsi
call fcn.140065274
mov rdi, rax
cmp byte [rax], 0
je 0x140082fc2
mov rcx, rdi
call fcn.140091450
mov esi, eax
jmp 0x140082fc7
mov esi, 0xffffffff
mov rcx, rdi
call fcn.140012402
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rdi + 0x20]
call fcn.140012078
mov r8d, eax
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.140011fde
movdqu xmm0, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x70], xmm0
mov rdi, qword [rsp + 0xb0]
mov rcx, qword [rdi + 0x20]
call fcn.140012078
mov r8d, eax
mov rdx, qword [rdi + 0x20]
mov rcx, rbx
call fcn.140011fde
mov rax, qword [rsp + 0xb0]
cmp dword [rax + 0x18], 0
jne 0x1400831fc
mov rax, qword [rsp + 0x28]
mov eax, dword [rax + 0x10]
test eax, eax
js 0x1400831e8
mov rcx, qword [rsp + 0x80]
mov rdi, qword [rsp + 0x88]
test esi, esi
js 0x14008305c
cmp eax, esi
jne 0x1400831e8
mov qword [rsp + 0x58], rcx
mov esi, 1
mov rdx, qword [r15 + rsi*8]
movdqa xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x80], xmm0
mov rcx, rbx
call fcn.1400651c0
test al, al
jne 0x140083093
inc rsi
cmp rsi, 3
jne 0x140083066
jmp 0x1400831e8
cmp r12d, 0x100
je 0x1400830fb
cmp r12d, 6
je 0x140083112
test r12d, r12d
jne 0x1400831e8
mov r12, qword [rsp + 0x28]
cmp byte [r12], 0
jne 0x1400831e8
mov rcx, qword [r12 + 0x20]
call fcn.14007b792
cmp eax, 1
jne 0x1400831e8
mov rcx, qword [r12 + 0x20]
mov rdx, rbx
call fcn.14007b7c9
cmp r14, 4
jne 0x1400831e8
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
cmp eax, dword [rsp + 0x80]
jne 0x1400831e8
jmp 0x140083169
mov rax, qword [rsp + 0x28]
cmp byte [rax], 0
je 0x140083172
cmp qword [rsp + 0x38], 0
jne 0x140083179
jmp 0x1400831e8
mov r12, qword [rsp + 0x28]
cmp byte [r12], 0
jne 0x1400831e8
mov rcx, qword [r12 + 0x20]
call fcn.14007b792
cmp eax, 2
jne 0x1400831e8
mov rcx, qword [r12 + 0x20]
mov rdx, rbx
call fcn.14007b7c9
cmp r14, 0x10
jne 0x1400831e8
mov rax, qword [rsp + 0x40]
movdqu xmm0, xmmword [rax]
pcmpeqb xmm0, xmmword [rsp + 0x80]
pmovmskb eax, xmm0
cmp eax, 0xffff
jne 0x1400831e8
mov eax, dword [rsp + 0x34]
mov r14d, eax
jmp 0x1400831a2
cmp byte [rsp + 0x27], 0
je 0x1400831e8
mov rax, qword [rsp + 0x40]
mov qword [rsp + 0x80], rax
mov qword [rsp + 0x88], r14
mov rcx, rbx
mov rdx, qword [rsp + 0x38]
call fcn.1400651c0
mov r14b, 1
test al, al
je 0x1400831e8
mov r12, qword [rsp + 0x28]
mov dword [r12 + 0x38], esi
mov rcx, qword [r12 + 0x40]
call fcn.140012402
mov edx, 1
mov rcx, rdi
xor r8d, r8d
call fcn.140012388
mov qword [r12 + 0x40], rax
mov rcx, rax
mov rdx, qword [rsp + 0x58]
mov r8, rdi
call fcn.140085190
mov dword [r12 + 0x48], edi
mov eax, r14d
mov qword [rsp + 0x50], rax
test byte [rsp + 0x50], 1
jne 0x1400831fc
mov rsi, qword [rsp + 0x98]
jmp 0x140082ec1
mov rcx, qword [rsp + 0x48]
call fcn.1400921a0
mov edx, 0x8000c
mov rcx, r13
call fcn.14007a610
mov rcx, r13
call fcn.140012402
mov rcx, qword [rsp + 0x38]
call fcn.140012402
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.140084030
nop
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret