Function at 0x14004bd1c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
xor esi, esi
mov rbx, r9
and qword [rbp - 0x10], rsi
mov r12, r8
mov r14, rdx
mov r15, rcx
lea edi, [rsi + 0x5a]
test rdx, rdx
jne 0x14004bd56
xor eax, eax
jmp 0x14004bfd7
test r12, r12
je 0x14004bfd5
test rbx, rbx
je 0x14004bfd5
mov r8d, 8
lea rdx, str.sha256__
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
test eax, eax
jne 0x14004bedd
mov rax, qword [str.Pt_b_]
cmp qword [rax + 0xb8], rsi
je 0x14004bfd5
mov ecx, 0x20
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
jne 0x14004bdb7
mov eax, 0x1b
jmp 0x14004bfd7
mov rax, qword [str.Pt_b_]
mov r9d, 0x20
mov r8, rsi
mov rdx, rbx
mov rcx, r12
call qword [rax + 0xb8]
test eax, eax
jne 0x14004bfd7
lea rax, [rbp - 8]
mov r8d, 0x20
lea r9, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r15
call fcn.140062654
mov rcx, rsi
mov ebx, eax
call qword [0x1400a0210]
test ebx, ebx
je 0x14004be0f
mov eax, ebx
jmp 0x14004bfd7
mov r8, qword [rbp + 0x38]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r15
call fcn.14005a450
mov rcx, r14
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov rbx, rax
lea rcx, [rax + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov r15, rax
test rax, rax
jne 0x14004be4e
mov rcx, qword [rbp + 0x38]
call qword [0x1400a0210]
jmp 0x14004bdad
lea r8, [rbx + 1]
mov rdx, r14
mov rcx, r15
call sub.VCRUNTIME140.dll_memcpy
mov rsi, r15
lea rdx, str._sha256__
mov rcx, rsi
call sub.VCRUNTIME140.dll_strstr
mov rbx, rax
test rax, rax
je 0x14004be7a
mov byte [rax], 0
lea rcx, [rsi + 8]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
mov r8, qword [rbp - 8]
cmp r8, rax
jne 0x14004be9d
mov rcx, qword [rbp + 0x38]
lea rdx, [rsi + 8]
call fcn.14007b97c
test eax, eax
je 0x14004bebe
test rbx, rbx
je 0x14004bec0
lea rdx, str.sha256__
mov byte [rbx], 0x3b
mov rcx, rbx
call sub.VCRUNTIME140.dll_strstr
mov rsi, rax
test rax, rax
jne 0x14004be60
jmp 0x14004bec0
xor edi, edi
mov rcx, qword [rbp + 0x38]
call qword [0x1400a0210]
and qword [rbp + 0x38], 0
mov rcx, r15
call qword [0x1400a0210]
jmp 0x14004bfd5
lea rdx, [0x1400858d0]
mov rcx, r14
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fopen
mov r15, rax
test rax, rax
je 0x14004bfd5
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14004bfb4
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
xor r8d, r8d
xor edx, edx
mov rcx, r15
movsxd r14, eax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x14004bfb4
cmp r14d, 0x100000
ja 0x14004bfb4
mov rcx, r14
call fcn.14001b7b8
mov r14, rax
cmp rbx, rax
ja 0x14004bfb4
lea rcx, [rax + 1]
call qword [sub.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rsi, rax
test rax, rax
je 0x14004bfb4
mov r9, r15
mov r8d, 1
mov rdx, r14
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
cmp eax, 1
jne 0x14004bfb4
cmp rbx, r14
jne 0x14004bf80
mov rdx, rsi
jmp 0x14004bfa3
lea r8, [rbp + 0x38]
mov byte [r14 + rsi], 0
lea rdx, [rbp - 0x10]
mov rcx, rsi
call fcn.14004cd8c
test eax, eax
jne 0x14004bfb4
cmp rbx, qword [rbp + 0x38]
jne 0x14004bfb4
mov rdx, qword [rbp - 0x10]
mov r8, rbx
mov rcx, r12
call fcn.14007b97c
neg eax
sbb ecx, ecx
and edi, ecx
mov rcx, rsi
call qword [0x1400a0210]
mov rcx, qword [rbp - 0x10]
call qword [0x1400a0210]
and qword [rbp - 0x10], 0
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov eax, edi
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret