Function at 0x1400019f0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
lea rbp, [rsp - 0x1fd0]
mov eax, 0x20d0
call fcn.140005fd0
sub rsp, rax
mov rax, qword [0x140031008]
xor rax, rsp
mov qword [rbp + 0x1fc0], rax
mov ebx, r9d
mov qword [rbp - 0x78], r8
mov r12, r8
mov dword [rsp + 0x78], edx
mov edi, edx
mov dword [rsp + 0x7c], ebx
mov r15, rcx
xor edx, edx
mov r8d, 0x1010
lea rcx, [rbp + 0xfb0]
call fcn.140007300
mov eax, dword [r15 + 8]
lea r13, [rbp + 0xfb0]
mov dword [r15 + 0x10], eax
mov ecx, 2
cdq
mov qword [rsp + 0x60], r13
idiv ecx
xor r9d, r9d
mov r14d, 0x1010
add edx, eax
mov qword [rsp + 0x68], r14
add edx, edx
mov dword [rsp + 0x44], r9d
mov rcx, r15
mov dword [r15 + 0x18], edx
xor esi, esi
mov dword [rsp + 0x70], r9d
call fcn.140004020
test rax, rax
jne 0x140001aba
lea ecx, [rsi + 2]
call fcn.140009d00
mov rcx, rax
lea rdx, str.GetVivDir:_Cannot_allocate_memory_n
call fcn.140004e60
xor eax, eax
jmp 0x140002047
mov eax, dword [r15 + 8]
mov dword [r15 + 0x1c], eax
mov dword [r15 + 0x14], 0x10
cmp ebx, 1
jl 0x140001b0d
mov r10d, dword [r15 + 0x18]
lea rcx, str.Directory_Entries__mallocd_:__d__ceil_x_64__d___Bitmap__mallocd_:__d__Padding:__d_n
xor r9d, r9d
mov dword [rsp + 0x20], 0xc
mov eax, r10d
cdq
and edx, 0x3f
add eax, edx
mov r8d, eax
and eax, 0x3f
sub eax, edx
sar r8d, 6
cmp r10d, 0x60
mov edx, r10d
setg r9b
add r8d, eax
call fcn.140005be0
mov ebx, dword [rbp + 0x2030]
cmp ebx, 0xa
jge 0x1400021b5
mov rcx, r12
call fcn.14000b1d0
mov ecx, edi
sub ecx, eax
cmp ecx, 0xa
jl 0x140001bac
mov rcx, r12
mov ebx, 0x100c
call fcn.14000b1d0
mov ecx, edi
mov r9, r12
sub ecx, eax
mov edx, 1
cmp ecx, ebx
cmovl ebx, ecx
lea rcx, [rbp + 0xfb0]
movsxd r8, ebx
call fcn.14000a8dc
mov r8, rax
cmp eax, ebx
jne 0x140001b88
mov eax, 0x7f807f81
imul ebx
sar edx, 0xb
mov ecx, edx
shr ecx, 0x1f
add edx, ecx
imul eax, edx, 0x1010
sub ebx, eax
mov dword [rsp + 0x44], ebx
mov dword [rsp + 0x70], ebx
cmp r8d, 9
jge 0x140001bb0
mov ecx, 2
call fcn.140009d00
mov r8d, dword [r15 + 0x14]
lea rdx, str.GetVivDir:_File_read_error_at__d_n
mov rcx, rax
call fcn.140004e60
xor eax, eax
jmp 0x140002047
mov ebx, dword [rsp + 0x44]
xor eax, eax
mov dword [rsp + 0x48], eax
cmp dword [r15 + 0x10], eax
jle 0x140002042
mov qword [rbp - 0x80], rax
mov edi, ebx
mov rcx, r12
sub edi, esi
js 0x140001bde
call fcn.14000b1d0
mov rcx, r12
call fcn.14000b1d0
mov eax, edi
jmp 0x140001bf2
call fcn.14000b1d0
mov rcx, r12
call fcn.14000b1d0
lea eax, [rdi + r14]
add edi, r14d
xor r8d, r8d
mov dword [rsp + 0x38], eax
mov r12d, r14d
lea rcx, str.cbuf_stats:_buf__p____buf__d__sz__d__rd__d__wr__d__r2e__d__l2r__d_n
sub r12d, esi
mov r9d, r14d
mov dword [rsp + 0x30], r12d
test r13, r13
mov dword [rsp + 0x28], ebx
mov rdx, r13
setne r8b
mov dword [rsp + 0x20], esi
call fcn.140004a60
test edi, edi
jle 0x140001c3e
xor edx, edx
lea rcx, [rsp + 0x60]
mov r9d, edi
lea r8d, [rdx + 8]
call fcn.1400014a0
jmp 0x140001c40
xor eax, eax
mov rdx, rax
lea rcx, str.memchr:__p_n
call fcn.140004a60
xor edx, edx
lea rcx, [rsp + 0x60]
mov r9d, edi
lea r8d, [rdx + 8]
call fcn.1400014a0
mov rdx, rax
lea rcx, str.memchr2:__p_n
call fcn.140004a60
cmp edi, 9
jl 0x140001c92
xor edx, edx
lea rcx, [rsp + 0x60]
mov r9d, edi
lea r8d, [rdx + 8]
call fcn.1400014a0
test rax, rax
jne 0x140001d4c
mov rcx, qword [rbp - 0x78]
mov ebx, 0x1010
sub ebx, edi
call fcn.14000b1d0
mov r8d, dword [rsp + 0x78]
lea rcx, [rsp + 0x60]
mov rdx, qword [rbp - 0x78]
sub r8d, eax
mov r9d, ebx
call fcn.1400013e0
test eax, eax
js 0x140001b88
mov ebx, dword [rsp + 0x70]
mov edi, 0x1010
mov esi, dword [rsp + 0x6c]
mov ecx, ebx
sub ecx, esi
mov r14d, dword [rsp + 0x68]
mov dword [rsp + 0x44], ebx
js 0x140001ce6
test ecx, ecx
cmovg edi, ecx
jmp 0x140001cf2
lea eax, [rcx + r14]
add ecx, r14d
test eax, eax
cmovg edi, eax
mov r13, qword [rsp + 0x60]
xor r8d, r8d
mov dword [rsp + 0x38], ecx
mov r12d, r14d
sub r12d, esi
lea rcx, str.__cbuf_stats:_buf__p____buf__d__sz__d__rd__d__wr__d__r2e__d__l2r__d_n
mov dword [rsp + 0x30], r12d
test r13, r13
mov dword [rsp + 0x28], ebx
mov r9d, r14d
setne r8b
mov dword [rsp + 0x20], esi
mov rdx, r13
call fcn.140004a60
xor edx, edx
lea rcx, [rsp + 0x60]
mov r9d, edi
lea r8d, [rdx + 8]
call fcn.1400014a0
mov rdx, rax
lea rcx, str.__memchr:__p_n
call fcn.140004a60
xor edx, edx
lea rcx, [rsp + 0x60]
mov r9d, edi
lea r8d, [rdx + 8]
call fcn.1400014a0
test rax, rax
je 0x140002188
mov rax, qword [r15 + 0x28]
mov rcx, qword [rbp - 0x80]
shl rcx, 4
mov qword [rsp + 0x58], rcx
mov dword [rcx + rax + 0xc], 0
movsxd rax, dword [rsp + 0x48]
mov rcx, qword [r15 + 0x28]
mov rbx, rax
shl rbx, 4
mov qword [rbp - 0x68], rax
mov qword [rbp - 0x70], rbx
lea rax, [rbx + rcx]
mov qword [rsp + 0x50], rax
test r13, r13
je 0x140001dfc
mov edi, 4
movsxd rdx, esi
cmp r14d, edi
mov rcx, rax
cmovl edi, r14d
add rdx, r13
cmp r12d, edi
jge 0x140001dee
movsxd rbx, r12d
mov r8, rbx
call fcn.140006c50
mov rcx, qword [rsp + 0x50]
mov eax, edi
sub eax, r12d
add rcx, rbx
movsxd r8, eax
mov rdx, r13
call fcn.140006c50
mov rcx, qword [r15 + 0x28]
mov rbx, qword [rbp - 0x70]
jmp 0x140001dfe
movsxd r8, edi
call fcn.140006c50
mov rcx, qword [r15 + 0x28]
jmp 0x140001dfe
xor edi, edi
lea eax, [rdi + rsi]
mov esi, r14d
cdq
lea r12, [rcx + 4]
idiv r14d
cmp edi, 4
movsxd rax, edx
sete byte [rsp + 0x41]
mov dword [rsp + 0x50], eax
sub esi, eax
add r12, rbx
test r13, r13
je 0x140001e76
mov edi, 4
lea rdx, [rax + r13]
cmp r14d, edi
mov rcx, r12
cmovl edi, r14d
cmp esi, edi
jge 0x140001e64
movsxd rbx, esi
mov r8, rbx
call fcn.140006c50
mov eax, edi
lea rcx, [r12 + rbx]
sub eax, esi
mov rdx, r13
movsxd r8, eax
call fcn.140006c50
mov rcx, qword [r15 + 0x28]
mov eax, dword [rsp + 0x50]
jmp 0x140001e78
movsxd r8, edi
call fcn.140006c50
mov rcx, qword [r15 + 0x28]
mov eax, dword [rsp + 0x50]
jmp 0x140001e78
xor edi, edi
add eax, edi
cdq
idiv r14d
cmp edi, 4
mov rdi, qword [rsp + 0x58]
movsxd r12, edx
sete al
mov dword [rsp + 0x50], r12d
and al, byte [rsp + 0x41]
mov byte [rsp + 0x41], al
mov eax, dword [rcx + rdi]
bswap eax
mov dword [rcx + rdi], eax
mov rcx, qword [r15 + 0x28]
mov eax, dword [rcx + rdi + 4]
bswap eax
mov dword [rcx + rdi + 4], eax
add dword [r15 + 0x14], 8
cmp dword [rbp + 0x2038], 0
mov rax, qword [r15 + 0x28]
mov ecx, dword [r15 + 0x14]
mov dword [rdi + rax + 8], ecx
jne 0x140002071
mov esi, r14d
sub esi, r12d
test r13, r13
je 0x140001f16
mov edi, 1
lea rdx, [r12 + r13]
cmp r14d, edi
lea rcx, [rsp + 0x40]
cmovl edi, r14d
cmp esi, edi
jge 0x140001f09
movsxd rbx, esi
mov r8, rbx
call fcn.140006c50
lea rcx, [rsp + 0x40]
sub edi, esi
add rcx, rbx
mov rdx, r13
movsxd r8, edi
call fcn.140006c50
mov rdi, qword [rsp + 0x58]
mov r9d, dword [rsp + 0x44]
sub r9d, r12d
jns 0x140001f23
add r9d, r14d
mov r10d, r14d
xor edx, edx
sub r10d, r12d
xor ecx, ecx
test r13, r13
jne 0x140001f39
xor ebx, ebx
jmp 0x140002002
cmp r9d, r14d
cmovg r9d, r14d
test r9d, r9d
jns 0x140001f4c
xor ebx, ebx
jmp 0x140002002
lea r8, [r12 + r13]
cmp r10d, r9d
jge 0x140001fcb
lea r11, [0x1400233b0]
nop dword [rax]
cmp edx, r10d
jge 0x140001f91
movzx eax, byte [r8]
test al, al
je 0x140001ffb
movzx eax, byte [rax + r11]
inc r8
add eax, 0x100
inc edx
add ecx, eax
movzx ecx, byte [rcx + r11]
cmp ecx, 0xc
jne 0x140001f60
cmp edx, r10d
jl 0x140001ffb
mov r8, r13
cmp ecx, 0xc
je 0x140001ffb
sub r9d, r10d
nop dword [rax]
cmp edx, r9d
jge 0x140001ffb
movzx eax, byte [r8]
test al, al
je 0x140001ffb
movzx eax, byte [rax + r11]
add ecx, 0x100
add ecx, eax
inc r8
inc edx
movzx ecx, byte [rcx + r11]
cmp ecx, 0xc
jne 0x140001fa0
jmp 0x140001ffb
lea r10, [0x1400233b0]
cmp edx, r9d
jge 0x140001ffb
movzx eax, byte [r8]
test al, al
je 0x140001ffb
movzx eax, byte [rax + r10]
add ecx, 0x100
add ecx, eax
inc r8
inc edx
movzx ecx, byte [rcx + r10]
cmp ecx, 0xc
jne 0x140001fd2
xor ebx, ebx
test ecx, ecx
cmove ebx, edx
mov rax, qword [r15 + 0x28]
movsx ecx, byte [rsp + 0x40]
mov dword [rdi + rax + 0xc], ebx
inc ebx
lea eax, [r12 + rbx]
cdq
idiv r14d
mov esi, edx
mov dword [rsp + 0x6c], edx
call fcn.14000f5b0
test eax, eax
jne 0x14000212b
cmp ebx, 2
jge 0x14000212b
add dword [r15 + 0x14], 0xfffffff8
mov eax, dword [rsp + 0x48]
mov dword [r15 + 0x10], eax
mov eax, 1
mov rcx, qword [rbp + 0x1fc0]
xor rcx, rsp
call fcn.140006030
mov rbx, qword [rsp + 0x2128]
add rsp, 0x20d0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
mov edi, dword [rsp + 0x44]
sub edi, r12d
jns 0x14000207d
add edi, r14d
mov eax, r14d
mov esi, 0
sub eax, r12d
cmovns esi, eax
cmp edi, r14d
cmovg edi, r14d
test edi, edi
js 0x140002109
test r13, r13
je 0x140002109
xor edx, edx
cmp esi, edi
jge 0x1400020eb
add r12, r13
movsxd r8, esi
mov rcx, r12
call fcn.140006bb0
mov rbx, rax
test rax, rax
je 0x1400020c5
sub ebx, r12d
cmp ebx, esi
jge 0x1400020c7
mov r12d, dword [rsp + 0x50]
jmp 0x14000210e
mov ebx, esi
sub edi, esi
xor edx, edx
movsxd r8, edi
mov rcx, r13
call fcn.140006bb0
mov r12d, dword [rsp + 0x50]
mov ecx, eax
sub ecx, dword [rsp + 0x60]
test rax, rax
cmovne edi, ecx
add ebx, edi
jmp 0x14000210e
lea rbx, [r12 + r13]
movsxd r8, edi
mov rcx, rbx
call fcn.140006bb0
test rax, rax
je 0x140002105
sub eax, ebx
mov ebx, eax
jmp 0x14000210e
mov ebx, edi
jmp 0x14000210e
mov ebx, 0xffffffff
mov rax, qword [r15 + 0x28]
mov rcx, qword [rsp + 0x58]
mov dword [rcx + rax + 0xc], ebx
inc ebx
lea eax, [r12 + rbx]
cdq
idiv r14d
mov esi, edx
mov dword [rsp + 0x6c], edx
add dword [r15 + 0x14], ebx
xor ecx, ecx
movzx eax, byte [rsp + 0x41]
cmp ebx, 0x400
cmovle ecx, eax
cmp cl, 1
jne 0x140002163
mov rdx, qword [rbp - 0x68]
mov eax, dword [rsp + 0x48]
sar rdx, 3
and eax, 7
add rdx, qword [r15 + 0x20]
movsx ecx, byte [rdx]
bts ecx, eax
mov byte [rdx], cl
dec dword [r15 + 0x1c]
mov eax, dword [rsp + 0x48]
inc qword [rbp - 0x80]
inc eax
mov dword [rsp + 0x48], eax
cmp eax, dword [r15 + 0x10]
jge 0x140002042
mov ebx, dword [rsp + 0x44]
mov r12, qword [rbp - 0x78]
jmp 0x140001bc4
cmp dword [rsp + 0x7c], 1
jl 0x14000203a
mov ecx, 2
call fcn.140009d00
mov r8d, dword [r15 + 0x14]
lea rdx, str.Warning:GetVivDir:_Filename_at__d_not_a_string._Not_a_directory_entry._Stop_parsing_directory._n
mov rcx, rax
call fcn.140004e60
jmp 0x14000203a
cmp ebx, r14d
jl 0x1400021e0
mov ecx, 2
call fcn.140009d00
mov rcx, rax
lea rdx, str.GetVivDir:_fixed_directory_entry_length_too_large_for_buffer_size___d____d__n
mov r9d, r14d
mov r8d, ebx
call fcn.140004e60
xor eax, eax
jmp 0x140002047
mov rcx, r12
call fcn.14000b1d0
mov ecx, edi
sub ecx, eax
cmp ecx, 0xa
jl 0x140002232
mov rcx, r12
call fcn.14000b1d0
mov r8d, edi
lea rcx, [rsp + 0x60]
sub r8d, eax
mov r9d, 0x100c
mov rdx, r12
call fcn.1400013e0
cmp eax, ebx
jl 0x140001b88
mov edx, dword [rsp + 0x70]
mov esi, dword [rsp + 0x6c]
mov r14d, dword [rsp + 0x68]
mov r13, qword [rsp + 0x60]
mov dword [rsp + 0x44], edx
jmp 0x140002236
mov edx, dword [rsp + 0x44]
xor edi, edi
mov dword [rsp + 0x48], edi
cmp dword [r15 + 0x10], edi
jle 0x140002042
xor r8d, r8d
mov qword [rsp + 0x58], r8
nop
mov eax, edx
sub eax, esi
jns 0x140002259
add eax, r14d
cmp eax, ebx
jge 0x1400022c6
mov ebx, 0x1010
mov rcx, r12
sub ebx, eax
call fcn.14000b1d0
mov r8d, dword [rsp + 0x78]
lea rcx, [rsp + 0x60]
sub r8d, eax
mov r9d, ebx
mov rdx, r12
call fcn.1400013e0
test eax, eax
js 0x140001b88
mov edx, dword [rsp + 0x70]
mov ecx, edx
mov esi, dword [rsp + 0x6c]
sub ecx, esi
mov r14d, dword [rsp + 0x68]
mov dword [rsp + 0x44], edx
jns 0x1400022a6
add ecx, r14d
test ecx, ecx
mov eax, 0x1010
cmovg eax, ecx
cmp eax, dword [rbp + 0x2030]
jl 0x14000251b
mov r13, qword [rsp + 0x60]
mov r8, qword [rsp + 0x58]
mov rax, qword [r15 + 0x28]
mov r12d, r14d
sub r12d, esi
mov dword [r8 + rax + 0xc], 0
mov rcx, qword [r15 + 0x28]
movsxd rax, edi
mov rbx, rax
mov qword [rbp - 0x80], rax
shl rbx, 4
mov qword [rbp - 0x70], rbx
lea rax, [rbx + rcx]
mov qword [rbp - 0x68], rax
test r13, r13
je 0x14000235a
mov edi, 4
movsxd rdx, esi
cmp r14d, edi
mov rcx, rax
cmovl edi, r14d
add rdx, r13
cmp r12d, edi
jge 0x140002347
movsxd rbx, r12d
mov r8, rbx
call fcn.140006c50
mov rcx, qword [rbp - 0x68]
mov eax, edi
sub eax, r12d
add rcx, rbx
movsxd r8, eax
mov rdx, r13
call fcn.140006c50
mov rcx, qword [r15 + 0x28]
mov r8, qword [rsp + 0x58]
mov rbx, qword [rbp - 0x70]
jmp 0x14000235c
movsxd r8, edi
call fcn.140006c50
mov rcx, qword [r15 + 0x28]
mov r8, qword [rsp + 0x58]
jmp 0x14000235c
xor edi, edi
lea eax, [rdi + rsi]
mov esi, r14d
cdq
lea r12, [rcx + 4]
idiv r14d
cmp edi, 4
movsxd rax, edx
sete byte [rsp + 0x41]
mov dword [rsp + 0x50], eax
sub esi, eax
add r12, rbx
test r13, r13
je 0x1400023cc
mov edi, 4
lea rdx, [rax + r13]
cmp r14d, edi
mov rcx, r12
cmovl edi, r14d
cmp esi, edi
jge 0x1400023b5
movsxd rbx, esi
mov r8, rbx
call fcn.140006c50
mov eax, edi
lea rcx, [r12 + rbx]
sub eax, esi
mov rdx, r13
movsxd r8, eax
jmp 0x1400023b8
movsxd r8, edi
call fcn.140006c50
mov rcx, qword [r15 + 0x28]
mov eax, dword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
jmp 0x1400023ce
xor edi, edi
add eax, edi
cdq
idiv r14d
mov eax, dword [rcx + r8]
cmp edi, 4
bswap eax
mov dword [rcx + r8], eax
sete r9b
mov rcx, qword [r15 + 0x28]
and r9b, byte [rsp + 0x41]
mov dword [rsp + 0x50], edx
mov byte [rsp + 0x40], r9b
mov eax, dword [rcx + r8 + 4]
bswap eax
mov dword [rcx + r8 + 4], eax
add dword [r15 + 0x14], 8
cmp dword [rbp + 0x2038], 0
mov rax, qword [r15 + 0x28]
mov ecx, dword [r15 + 0x14]
mov dword [r8 + rax + 8], ecx
je 0x140002548
mov ebx, dword [rbp + 0x2030]
mov r12d, r14d
sub r12d, edx
lea edi, [rbx - 8]
test r13, r13
je 0x14000248d
cmp edi, r14d
movsxd rdx, edx
mov esi, edi
lea rcx, [rbp - 0x60]
cmovg esi, r14d
add rdx, r13
cmp r12d, esi
jge 0x140002476
movsxd rbx, r12d
mov r8, rbx
call fcn.140006c50
sub esi, r12d
lea rcx, [rbp - 0x60]
add rcx, rbx
movsxd r8, esi
mov rdx, r13
call fcn.140006c50
mov ebx, dword [rbp + 0x2030]
jmp 0x14000247e
movsxd r8, esi
call fcn.140006c50
movzx r9d, byte [rsp + 0x40]
mov r8, qword [rsp + 0x58]
mov edx, dword [rsp + 0x50]
movsxd rax, ebx
cmp byte [rbp + rax - 0x69], 0
lea rax, [rbp + rax - 0x69]
jne 0x1400024af
nop dword [rax]
lea rax, [rax - 1]
test edi, edi
jle 0x1400024af
dec edi
cmp byte [rax], 0
je 0x1400024a0
mov rax, qword [r15 + 0x28]
mov dword [r8 + rax + 0xc], edi
lea eax, [rbx - 8]
add dword [r15 + 0x14], eax
lea eax, [rdx - 8]
mov edi, dword [rsp + 0x48]
add eax, ebx
cdq
idiv r14d
mov dword [rsp + 0x6c], edx
mov esi, edx
cmp r9b, 1
jne 0x1400024f5
mov rdx, qword [rbp - 0x80]
mov eax, edi
sar rdx, 3
and eax, 7
add rdx, qword [r15 + 0x20]
movsx ecx, byte [rdx]
bts ecx, eax
mov byte [rdx], cl
dec dword [r15 + 0x1c]
inc edi
add r8, 0x10
mov dword [rsp + 0x48], edi
mov qword [rsp + 0x58], r8
cmp edi, dword [r15 + 0x10]
jge 0x140002042
mov edx, dword [rsp + 0x44]
mov r12, qword [rbp - 0x78]
jmp 0x140002250
cmp dword [rsp + 0x7c], 1
jl 0x14000253f
mov ecx, 2
call fcn.140009d00
mov r8d, dword [r15 + 0x14]
lea rdx, str.Warning:GetVivDir:_Filename_at__d_not_a_string._Not_a_directory_entry._Stop_parsing_directory._n
mov rcx, rax
call fcn.140004e60
mov dword [r15 + 0x10], edi
jmp 0x140002042
mov ecx, 2
call fcn.140009d00
mov rcx, rax
lea rdx, str.GetVivDir:_Not_implemented._Try_with_filenames_as_hex._n
call fcn.140004e60
xor eax, eax
jmp 0x140002047