Function at 0x140059070
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0xc8
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x20], 0x5a
cmp qword [rsp + 0xe8], 0
jne 0x1400590bc
xor eax, eax
jmp 0x140059579
cmp qword [rsp + 0xf0], 0
je 0x1400590d2
cmp qword [rsp + 0xf8], 0
jne 0x1400590db
mov eax, dword [rsp + 0x20]
jmp 0x140059579
mov r8d, 8
lea rdx, str.sha256__
mov rcx, qword [rsp + 0xe8]
call fcn.14002b750
test eax, eax
jne 0x140059384
mov rax, qword [0x1400f7cb8]
cmp qword [rax + 0xb8], 0
jne 0x140059117
mov eax, dword [rsp + 0x20]
jmp 0x140059579
mov ecx, 0x20
call qword [fcn.140028e0c]
mov qword [rsp + 0x48], rax
cmp qword [rsp + 0x48], 0
jne 0x140059139
mov eax, 0x1b
jmp 0x140059579
mov r9d, 0x20
mov r8, qword [rsp + 0x48]
mov rdx, qword [rsp + 0xf8]
mov rcx, qword [rsp + 0xf0]
mov rax, qword [0x1400f7cb8]
call qword [rax + 0xb8]
mov dword [rsp + 0x24], eax
cmp dword [rsp + 0x24], 0
je 0x140059175
mov eax, dword [rsp + 0x24]
jmp 0x140059579
lea r9, [rsp + 0x98]
lea r8, [rsp + 0x58]
mov edx, 0x20
mov rcx, qword [rsp + 0x48]
call fcn.140088c90
mov dword [rsp + 0x24], eax
mov rcx, qword [rsp + 0x48]
call qword [fcn.140028bc4]
mov qword [rsp + 0x48], 0
xor eax, eax
test eax, eax
jne 0x140059195
cmp dword [rsp + 0x24], 0
je 0x1400591bf
mov eax, dword [rsp + 0x24]
jmp 0x140059579
xor eax, eax
test eax, eax
jne 0x1400591bf
mov rax, qword [rsp + 0xe8]
mov qword [rsp + 0xa0], rax
mov qword [rsp + 0x70], 0xffffffffffffffff
inc qword [rsp + 0x70]
mov rax, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x70]
cmp byte [rax + rcx], 0
jne 0x1400591de
mov rax, qword [rsp + 0x70]
inc rax
mov qword [rsp + 0x90], rax
mov rcx, qword [rsp + 0x90]
call qword [fcn.140028e0c]
mov qword [rsp + 0x60], rax
cmp qword [rsp + 0x60], 0
jne 0x140059245
mov rcx, qword [rsp + 0x58]
call qword [fcn.140028bc4]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x140059221
mov eax, 0x1b
jmp 0x140059579
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0xe8]
mov rcx, qword [rsp + 0x90]
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x60]
mov qword [rsp + 0x50], rax
lea rdx, str._sha256__
mov rcx, qword [rsp + 0x50]
call fcn.1400202f8
mov qword [rsp + 0x38], rax
cmp qword [rsp + 0x38], 0
je 0x140059296
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0
mov rax, qword [rsp + 0x50]
add rax, 8
mov qword [rsp + 0xa8], rax
mov qword [rsp + 0x78], 0xffffffffffffffff
inc qword [rsp + 0x78]
mov rax, qword [rsp + 0xa8]
mov rcx, qword [rsp + 0x78]
cmp byte [rax + rcx], 0
jne 0x1400592b0
mov rax, qword [rsp + 0x78]
cmp qword [rsp + 0x98], rax
jne 0x140059303
mov rax, qword [rsp + 0x50]
add rax, 8
mov r8, qword [rsp + 0x98]
mov rdx, rax
mov rcx, qword [rsp + 0x58]
call fcn.140020f20
test eax, eax
jne 0x140059303
mov dword [rsp + 0x20], 0
jmp 0x140059347
cmp qword [rsp + 0x38], 0
je 0x140059333
mov eax, 1
imul rax, rax, 0
mov rcx, qword [rsp + 0x38]
mov byte [rcx + rax], 0x3b
lea rdx, [0x1400f8670]
mov rcx, qword [rsp + 0x38]
call fcn.1400202f8
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x38], 0
je 0x140059347
cmp qword [rsp + 0x50], 0
jne 0x140059266
mov rcx, qword [rsp + 0x58]
call qword [fcn.140028bc4]
mov qword [rsp + 0x58], 0
xor eax, eax
test eax, eax
jne 0x140059347
mov rcx, qword [rsp + 0x60]
call qword [fcn.140028bc4]
mov qword [rsp + 0x60], 0
xor eax, eax
test eax, eax
jne 0x140059361
mov eax, dword [rsp + 0x20]
jmp 0x140059579
lea rdx, [0x1400f8614]
mov rcx, qword [rsp + 0xe8]
call fcn.14007ca00
mov qword [rsp + 0x40], rax
cmp qword [rsp + 0x40], 0
jne 0x1400593ae
mov eax, dword [rsp + 0x20]
jmp 0x140059579
mov r8d, 2
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140028300
test eax, eax
je 0x1400593c9
jmp 0x140059531
mov rcx, qword [rsp + 0x40]
call fcn.14002b5b4
mov dword [rsp + 0x30], eax
xor r8d, r8d
xor edx, edx
mov rcx, qword [rsp + 0x40]
call fcn.140028300
test eax, eax
je 0x1400593ef
jmp 0x140059531
cmp dword [rsp + 0x30], 0
jl 0x140059400
cmp dword [rsp + 0x30], 0x100000
jle 0x140059405
jmp 0x140059531
movsxd rax, dword [rsp + 0x30]
mov rcx, rax
call fcn.140063fa0
mov qword [rsp + 0x68], rax
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0xf8], rax
jbe 0x14005942b
jmp 0x140059531
mov rax, qword [rsp + 0x68]
inc rax
mov rcx, rax
call qword [fcn.140028e0c]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x14005944e
jmp 0x140059531
mov r9, qword [rsp + 0x40]
mov r8d, 1
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
call fcn.14002886c
cmp eax, 1
je 0x140059472
jmp 0x140059531
mov rax, qword [rsp + 0x68]
cmp qword [rsp + 0xf8], rax
jne 0x1400594ac
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x28]
mov rcx, qword [rsp + 0xf0]
call fcn.140020f20
test eax, eax
jne 0x1400594a7
mov dword [rsp + 0x20], 0
jmp 0x140059531
mov rax, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov byte [rax], 0
lea r8, [rsp + 0xb0]
lea rdx, [rsp + 0x80]
mov rcx, qword [rsp + 0x28]
call fcn.140059590
mov dword [rsp + 0x88], eax
cmp dword [rsp + 0x88], 0
je 0x1400594ec
jmp 0x140059531
mov rax, qword [rsp + 0xb0]
cmp qword [rsp + 0xf8], rax
jne 0x140059527
mov r8, qword [rsp + 0xf8]
mov rdx, qword [rsp + 0x80]
mov rcx, qword [rsp + 0xf0]
call fcn.140020f20
test eax, eax
jne 0x140059527
mov dword [rsp + 0x20], 0
xor eax, eax
test eax, eax
jne 0x1400593ae
mov rcx, qword [rsp + 0x28]
call qword [fcn.140028bc4]
mov qword [rsp + 0x28], 0
xor eax, eax
test eax, eax
jne 0x140059531
mov rcx, qword [rsp + 0x80]
call qword [fcn.140028bc4]
mov qword [rsp + 0x80], 0
xor eax, eax
test eax, eax
jne 0x14005954b
mov rcx, qword [rsp + 0x40]
call fcn.140028b60
mov eax, dword [rsp + 0x20]
add rsp, 0xc8
pop rdi
pop rsi
ret