Function at 0x140102f90
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14039bc30]
xor rax, rsp
mov qword [rbp + 0x4f], rax
mov rdi, rcx
mov rax, qword [rcx + 0x38]
mov rcx, qword [rax]
test rcx, rcx
je 0x140102ff0
mov rdx, qword [rdi + 0x50]
movsxd r8, dword [rdx]
lea rax, [rcx + r8]
cmp rcx, rax
jae 0x140102ff0
lea eax, [r8 - 1]
mov dword [rdx], eax
mov rcx, qword [rdi + 0x38]
mov rdx, qword [rcx]
lea rax, [rdx + 1]
mov qword [rcx], rax
movzx eax, byte [rdx]
jmp 0x140103232
cmp qword [rdi + 0x80], 0
jne 0x140103004
mov eax, 0xffffffff
jmp 0x140103232
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x140103031
mov rdx, qword [rdi + 0x90]
mov rcx, qword [rdi + 0x88]
mov qword [r8], rcx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
sub edx, ecx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov rcx, qword [rdi + 0x80]
cmp qword [rdi + 0x68], 0
jne 0x14010306b
mov r9, rcx
mov edx, 1
mov r8d, edx
lea rcx, [rbp + 0x28]
call fcn.140156ae4
cmp rax, 1
movzx ebx, byte [rbp + 0x28]
je 0x140103230
mov ebx, 0xffffffff
jmp 0x140103230
xor eax, eax
mov qword [rbp + 0x2f], rax
mov qword [rbp + 0x3f], rax
mov qword [rbp + 0x47], 0xf
mov byte [rbp + 0x2f], al
call fcn.140156728
cmp eax, 0xffffffff
mov edx, eax
je 0x1401031f4
mov rcx, qword [rbp + 0x3f]
mov r8, qword [rbp + 0x47]
cmp rcx, r8
jae 0x1401030bc
lea rax, [rcx + 1]
mov qword [rbp + 0x3f], rax
lea rax, [rbp + 0x2f]
cmp r8, 0x10
cmovae rax, qword [rbp + 0x2f]
mov byte [rax + rcx], dl
mov byte [rax + rcx + 1], 0
jmp 0x1401030d0
movzx r9d, dl
xor r8d, r8d
lea edx, [r8 + 1]
lea rcx, [rbp + 0x2f]
call fcn.1400309c0
mov r10, qword [rdi + 0x68]
lea rdx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rdx, qword [rbp + 0x2f]
mov r9, qword [rbp + 0x3f]
add r9, rdx
lea r8, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae r8, qword [rbp + 0x2f]
mov rax, qword [r10]
lea rcx, [rbp + 0x1f]
mov qword [rsp + 0x38], rcx
lea rcx, [rbp + 0x28]
mov qword [rsp + 0x30], rcx
lea rcx, [rbp + 0x27]
mov qword [rsp + 0x28], rcx
lea rcx, [rbp + 0x17]
mov qword [rsp + 0x20], rcx
lea rdx, [rdi + 0x74]
mov rcx, r10
mov rax, qword [rax + 0x30]
call qword [case.0x1400c6d28.0]
test eax, eax
je 0x140103138
sub eax, 1
jne 0x14010318f
lea rax, [rbp + 0x27]
cmp qword [rbp + 0x1f], rax
lea rax, [rbp + 0x2f]
jne 0x1401031a7
cmp qword [rbp + 0x47], 0x10
cmovae rax, qword [rbp + 0x2f]
mov r10, qword [rbp + 0x17]
sub r10, rax
mov r8, qword [rbp + 0x3f]
cmp r8, r10
cmovb r10, r8
lea rcx, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rcx, qword [rbp + 0x2f]
sub r8, r10
mov qword [rbp + 0x3f], r8
inc r8
lea rdx, [rcx + r10]
call fcn.14013d0f0
mov rcx, qword [rdi + 0x80]
jmp 0x140103080
cmp eax, 2
jne 0x1401031f4
lea rax, [rbp + 0x2f]
cmp qword [rbp + 0x47], 0x10
cmovae rax, qword [rbp + 0x2f]
movsx ebx, byte [rax]
jmp 0x1401031f9
cmp qword [rbp + 0x47], 0x10
cmovae rax, qword [rbp + 0x2f]
mov rbx, qword [rbp + 0x3f]
mov rcx, qword [rbp + 0x17]
sub rbx, rcx
add rbx, rax
test rbx, rbx
jle 0x1401031ee
nop dword [rax]
nop dword [rax + rax]
dec rbx
movsx ecx, byte [rbx + rcx]
mov rdx, qword [rdi + 0x80]
call fcn.1401576e8
test rbx, rbx
jle 0x1401031ee
mov rcx, qword [rbp + 0x17]
jmp 0x1401031d0
movzx ebx, byte [rbp + 0x27]
jmp 0x1401031f9
mov ebx, 0xffffffff
mov rdx, qword [rbp + 0x47]
cmp rdx, 0x10
jb 0x140103230
inc rdx
mov rcx, qword [rbp + 0x2f]
mov rax, rcx
cmp rdx, 0x1000
jb 0x14010322b
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140103253
call fcn.14013afa0
mov eax, ebx
mov rcx, qword [rbp + 0x4f]
xor rcx, rsp
call fcn.14013af80
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
call fcn.1401421d8
int3