Function at 0x140051240
Capabilities:
Read file on windows

Disassembly:
push rbp
push rsi
push r12
push r13
lea rbp, [rsp - 0x60d8]
mov eax, 0x61d8
call fcn.1400f9a20
sub rsp, rax
mov rax, qword [0x1401f7280]
xor rax, rsp
mov qword [rbp + 0x60b0], rax
xor eax, eax
mov r13, rdx
mov rsi, rcx
mov edx, 1
mov qword [rsp + 0x38], rcx
mov r9, rcx
mov r12, r8
lea rcx, [rsp + 0x50]
mov r8d, edx
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rax
call fcn.1400fabdc
mov edx, dword [rsp + 0x50]
mov r8d, 1
mov dword [rsp + 0x4c], 0x1000
mov ecx, edx
shl r8d, cl
lea ecx, [rdx + 1]
lea eax, [r8 + 1]
mov dword [rsp + 0x54], r8d
mov dword [rsp + 0x40], ecx
mov dword [rsp + 0x28], eax
lea eax, [r8 + 2]
mov dword [rsp + 0x48], eax
mov eax, 1
shl eax, cl
dec eax
mov dword [rsp + 0x44], eax
cmp edx, 0xc
ja 0x140051640
cmp r8d, 0x1000
jae 0x140051640
mov qword [rsp + 0x6210], rbx
xor ecx, ecx
mov qword [rsp + 0x61d0], rdi
mov qword [rsp + 0x61c8], r14
test r8d, r8d
je 0x14005133e
cmp ecx, 0x1000
jae 0x14005133e
mov dword [rsp + rcx*4 + 0x70], 0x1000
mov byte [rbp + rcx + 0x4090], cl
inc ecx
cmp ecx, r8d
jb 0x140051320
mov edx, 1
xor ebx, ebx
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, edx
mov qword [rsp + 0x61c0], r15
xor edi, edi
mov dword [rsp + 0x24], ebx
xor r14d, r14d
mov dword [rsp + 0x20], ebx
call fcn.1400fabdc
mov eax, dword [rsp + 0x20]
test eax, eax
jle 0x140051601
nop word [rax + rax]
lea rcx, [rbp + 0x3f90]
mov edx, eax
mov r9, rsi
mov r8d, 1
call fcn.1400fabdc
mov rcx, rsi
call fcn.1400fa96c
test eax, eax
jne 0x140051601
mov rcx, rsi
call fcn.1400fa994
test eax, eax
jne 0x140051601
mov eax, dword [rsp + 0x20]
lea rcx, [rbp + 0x3f90]
mov qword [rsp + 0x30], rcx
test eax, eax
je 0x1400515d8
mov r15d, dword [rsp + 0x54]
movzx r8d, byte [rsp + 0x58]
mov r10d, dword [rsp + 0x4c]
mov r9d, dword [rsp + 0x48]
mov r11d, dword [rsp + 0x44]
mov esi, dword [rsp + 0x40]
mov edx, dword [rsp + 0x24]
dec eax
mov dword [rsp + 0x2c], eax
movzx eax, byte [rcx]
mov ecx, r14d
shl eax, cl
add r14d, 8
add edx, eax
mov dword [rsp + 0x24], edx
cmp r14d, esi
jb 0x1400515ba
mov eax, edx
sub r14d, esi
mov ecx, esi
shr edx, cl
and eax, r11d
mov dword [rsp + 0x20], r14d
mov dword [rsp + 0x24], edx
cmp eax, dword [rsp + 0x28]
je 0x140051601
lea rdx, [rbp + 0x50a0]
cmp eax, r15d
jne 0x140051473
mov esi, dword [rsp + 0x50]
mov r11d, 1
lea r9d, [r15 + 2]
inc esi
mov r10d, 0x1000
mov dword [rsp + 0x48], r9d
mov ecx, esi
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x4c], r10d
shl r11d, cl
dec r11d
mov dword [rsp + 0x44], r11d
jmp 0x1400515ad
cmp eax, r9d
cmova eax, r9d
cmp r10d, 0x1000
jne 0x1400514b7
cmp eax, r10d
jae 0x140051601
movzx r8d, byte [rbp + rax + 0x4090]
mov byte [rsp + 0x58], r8b
cmp rdi, r12
jae 0x140051601
mov byte [r13 + rdi], r8b
inc rdi
mov r10d, eax
mov dword [rsp + 0x4c], eax
jmp 0x1400515ad
mov r14d, eax
cmp eax, r9d
jne 0x1400514de
cmp ebx, 0x1000
jge 0x140051601
mov byte [rbp + 0x50a0], r8b
lea rdx, [rbp + 0x50a1]
inc ebx
mov eax, r10d
cmp eax, r15d
jbe 0x140051511
cmp ebx, 0x1000
jge 0x140051511
cmp eax, 0x1000
jae 0x140051601
mov ecx, eax
inc rdx
inc ebx
movzx eax, byte [rbp + rcx + 0x4090]
mov byte [rdx - 1], al
mov eax, dword [rsp + rcx*4 + 0x70]
cmp eax, r15d
ja 0x1400514e3
cmp eax, 0x1000
jae 0x140051601
cmp ebx, 0x1000
jge 0x140051601
mov ecx, eax
inc rdx
inc ebx
movzx r8d, byte [rbp + rcx + 0x4090]
mov byte [rdx - 1], r8b
mov byte [rsp + 0x58], r8b
cmp r9d, 0x1000
jae 0x14005157e
mov eax, r9d
inc r9d
mov dword [rsp + rax*4 + 0x70], r10d
mov byte [rbp + rax + 0x4090], r8b
mov dword [rsp + 0x48], r9d
test r9d, r11d
jne 0x14005157e
cmp r9d, 0x1000
jae 0x14005157e
inc esi
add r11d, r9d
mov dword [rsp + 0x44], r11d
mov dword [rsp + 0x40], esi
mov r10d, r14d
mov dword [rsp + 0x4c], r14d
cmp rdi, r12
jae 0x140051601
movzx eax, byte [rdx - 1]
dec rdx
inc rdi
mov byte [r13 + rdi - 1], al
lea rax, [rbp + 0x50a0]
dec ebx
cmp rdx, rax
ja 0x140051586
mov r14d, dword [rsp + 0x20]
mov edx, dword [rsp + 0x24]
cmp r14d, esi
jae 0x140051412
mov rcx, qword [rsp + 0x30]
mov eax, dword [rsp + 0x2c]
inc rcx
mov qword [rsp + 0x30], rcx
test eax, eax
jne 0x1400513f1
mov rsi, qword [rsp + 0x38]
mov edx, 1
lea rcx, [rsp + 0x20]
mov r9, rsi
mov r8d, edx
mov dword [rsp + 0x20], 0
call fcn.1400fabdc
mov eax, dword [rsp + 0x20]
test eax, eax
jg 0x140051380
mov r15, qword [rsp + 0x61c0]
mov rdi, qword [rsp + 0x61d0]
mov rbx, qword [rsp + 0x6210]
mov r14, qword [rsp + 0x61c8]
xor eax, eax
mov rcx, qword [rbp + 0x60b0]
xor rcx, rsp
call fcn.1400f9a80
add rsp, 0x61d8
pop r13
pop r12
pop rsi
pop rbp
ret
or eax, 0xffffffff
jmp 0x140051623