Function at 0x140058ba0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rcx
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r15
sub rsp, 0x30
xor r13d, r13d
mov rbx, r9
mov qword [rsp + 0x70], r13
mov r15, r8
mov rdi, rdx
mov esi, r13d
mov ebp, r13d
lea r12d, [r13 + 0x5a]
test rdx, rdx
jne 0x140058be4
xor eax, eax
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
mov qword [rsp + 0x80], r14
test r15, r15
je 0x140058e89
test rbx, rbx
je 0x140058e89
mov r8d, 8
lea rdx, str.sha256__
mov rcx, rdi
call fcn.140029650
test eax, eax
jne 0x140058d7d
mov rax, qword [0x1400a7ca8]
cmp qword [rax + 0xb8], rsi
je 0x140058e89
mov ecx, 0x20
call qword [fcn.14002613c]
mov rsi, rax
test rax, rax
je 0x140058ccc
mov r8, rax
mov r9d, 0x20
mov rax, qword [0x1400a7ca8]
mov rdx, rbx
mov rcx, r15
call qword [rax + 0xb8]
test eax, eax
jne 0x140058e8c
lea rax, [rsp + 0x78]
mov r8d, 0x20
lea r9, [rsp + 0x70]
mov qword [rsp + 0x20], rax
mov rdx, rsi
call fcn.140073080
mov rcx, rsi
mov ebx, eax
call qword [fcn.140021cf4]
test ebx, ebx
je 0x140058c9d
mov eax, ebx
jmp 0x140058e8c
mov rbx, 0xffffffffffffffff
cmp byte [rdi + rbx + 1], bpl
lea rbx, [rbx + 1]
jne 0x140058ca4
lea rcx, [rbx + 1]
call qword [fcn.14002613c]
mov r14, rax
test rax, rax
jne 0x140058cd6
mov rcx, qword [rsp + 0x70]
call qword [fcn.140021cf4]
mov eax, 0x1b
jmp 0x140058e8c
lea r8, [rbx + 1]
mov rdx, rdi
mov rcx, r14
call fcn.14001e8d0
mov rsi, qword [rsp + 0x78]
mov rdi, r14
mov rbp, qword [rsp + 0x70]
nop dword [rax]
nop word [rax + rax]
lea rdx, str._sha256__
mov rcx, rdi
call fcn.14001e6a0
mov rbx, rax
test rax, rax
je 0x140058d1a
mov byte [rax], r13b
lea rdx, [rdi + 8]
mov rax, 0xffffffffffffffff
inc rax
cmp byte [rdx + rax], r13b
jne 0x140058d25
cmp rsi, rax
jne 0x140058d42
mov r8, rsi
mov rcx, rbp
call fcn.14001f240
test eax, eax
je 0x140058d63
test rbx, rbx
je 0x140058d66
lea rdx, [0x1400a8e50]
mov byte [rbx], 0x3b
mov rcx, rbx
call fcn.14001e6a0
mov rdi, rax
test rax, rax
jne 0x140058d00
jmp 0x140058d66
mov r12d, r13d
mov rcx, rbp
call qword [fcn.140021cf4]
mov rcx, r14
call qword [fcn.140021cf4]
jmp 0x140058e89
lea rdx, [0x1400a8b8c]
mov rcx, rdi
call fcn.14002897c
mov r14, rax
test rax, rax
je 0x140058e89
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.1400256b0
test eax, eax
jne 0x140058e6f
mov rcx, r14
call fcn.140030718
xor r8d, r8d
movsxd rdi, eax
xor edx, edx
mov rcx, r14
call fcn.1400256b0
test eax, eax
jne 0x140058e6f
cmp edi, 0x100000
ja 0x140058e6f
mov rcx, rdi
call fcn.14004dd10
mov rdi, rax
cmp rbx, rax
ja 0x140058e6f
lea rcx, [rax + 1]
call qword [fcn.14002613c]
mov rsi, rax
test rax, rax
je 0x140058e6f
mov r9, r14
mov r8d, 1
mov rdx, rdi
mov rcx, rax
call fcn.140025c1c
cmp eax, 1
jne 0x140058e6f
cmp rbx, rdi
jne 0x140058e35
mov r8, rbx
mov rdx, rsi
mov rcx, r15
call fcn.14001f240
test eax, eax
jne 0x140058e6f
mov r12d, r13d
jmp 0x140058e6f
lea r8, [rsp + 0x78]
mov byte [rdi + rsi], bpl
lea rdx, [rsp + 0x70]
mov rcx, rsi
call fcn.140058eb0
mov rbp, qword [rsp + 0x70]
test eax, eax
jne 0x140058e6f
cmp rbx, qword [rsp + 0x78]
jne 0x140058e6f
mov r8, rbx
mov rdx, rbp
mov rcx, r15
call fcn.14001f240
test eax, eax
cmove r12d, r13d
mov rcx, rsi
call qword [fcn.140021cf4]
mov rcx, rbp
call qword [fcn.140021cf4]
mov rcx, r14
call fcn.140025f10
mov eax, r12d
mov r14, qword [rsp + 0x80]
add rsp, 0x30
pop r15
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret