Function at 0x140196760
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov qword [rsp + 0x30], 0
test rdx, rdx
je 0x140196817
mov r14, r8
mov esi, 0x5a
test r8, r8
je 0x140196819
mov rbx, r9
test r9, r9
je 0x140196819
mov rdi, rdx
mov r15, rcx
lea rdx, str.sha256__
mov r8d, 8
mov rcx, rdi
call sub.msvcrt.dll_strncmp
test eax, eax
je 0x14019682c
lea rdx, [0x14026c039]
mov rcx, rdi
call fcn.1401aa6d0
test rax, rax
je 0x140196819
mov rdi, rax
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8d, 2
call sub.msvcrt.dll_fseek
mov esi, 0x5a
test eax, eax
je 0x140196993
mov rbx, qword [0x1402654c0]
mov rcx, r15
call qword [rbx]
mov rcx, qword [rsp + 0x30]
call qword [rbx]
mov qword [rsp + 0x30], 0
mov rcx, rdi
call sub.msvcrt.dll_fclose
jmp 0x140196819
xor esi, esi
mov eax, esi
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1402d5dc0]
cmp qword [rax + 0xb8], 0
je 0x140196a10
mov r13, qword [0x1402654c8]
mov ecx, 0x20
call qword [r13]
mov esi, 0x1b
test rax, rax
je 0x140196819
mov r12, rax
mov rax, qword [0x1402d5dc0]
mov r9d, 0x20
mov rcx, r14
mov rdx, rbx
mov r8, r12
call qword [rax + 0xb8]
mov esi, eax
test eax, eax
jne 0x140196819
lea r8, [rsp + 0x20]
lea r9, [rsp + 0x28]
mov edx, 0x20
mov rcx, r12
call fcn.1401e9a60
mov esi, eax
mov rbp, qword [0x1402654c0]
mov rcx, r12
call qword [rbp]
test esi, esi
jne 0x140196819
mov r8, qword [rsp + 0x20]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r15
call fcn.1401955d0
mov rcx, rdi
call sub.msvcrt.dll_strlen
mov rsi, rax
inc rsi
mov rcx, rsi
call qword [r13]
test rax, rax
je 0x140196a46
mov rbx, rax
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call sub.msvcrt.dll_memcpy
lea rsi, str._sha256__
lea rdi, str.sha256__
mov r15, rbx
jmp 0x14019691f
mov byte [r14], 0x3b
mov rcx, r14
mov rdx, rdi
call sub.msvcrt.dll_strstr
mov r15, rax
test rax, rax
je 0x140196a22
mov rcx, r15
mov rdx, rsi
call sub.msvcrt.dll_strstr
mov r14, rax
test rax, rax
je 0x14019694e
mov byte [r14], 0
mov r12, qword [rsp + 0x28]
add r15, 8
mov rcx, r15
call sub.msvcrt.dll_strlen
cmp r12, rax
jne 0x140196904
jmp 0x140196968
mov r12, qword [rsp + 0x28]
add r15, 8
mov rcx, r15
call sub.msvcrt.dll_strlen
cmp r12, rax
jne 0x140196a22
mov r13, qword [rsp + 0x20]
mov rcx, r13
mov rdx, r15
mov r8, r12
call sub.msvcrt.dll_memcmp
test r14, r14
je 0x140196984
test eax, eax
jne 0x140196904
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x140196a2c
mov rcx, rdi
call sub.msvcrt.dll_ftell
mov ebp, eax
xor r15d, r15d
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call sub.msvcrt.dll_fseek
cmp ebp, 0x100000
ja 0x1401967f1
test eax, eax
jne 0x1401967f1
mov ecx, ebp
call fcn.1401a1e10
cmp rax, rbx
jb 0x140196a1a
mov r12, rax
mov rax, qword [0x1402654c8]
lea rcx, [r12 + 1]
call qword [rax]
test rax, rax
je 0x140196a1a
mov r15, rax
mov r8d, 1
mov rcx, rax
mov rdx, r12
mov r9, rdi
call sub.msvcrt.dll_fread
cmp eax, 1
jne 0x1401967f1
cmp r12, rbx
jne 0x140196a58
mov rcx, r14
mov rdx, r15
jmp 0x140196a8a
mov esi, 0x5a
jmp 0x140196819
xor r15d, r15d
jmp 0x1401967f1
mov esi, 0x5a
mov r13, qword [rsp + 0x20]
mov rcx, r13
call qword [rbp]
mov qword [rsp + 0x20], 0
mov rcx, rbx
call qword [rbp]
jmp 0x140196819
mov rcx, qword [rsp + 0x20]
call qword [rbp]
mov esi, 0x1b
jmp 0x140196819
mov byte [r15 + r12], 0
lea rdx, [rsp + 0x30]
lea r8, [rsp + 0x28]
mov rcx, r15
call fcn.140196ab0
test eax, eax
jne 0x1401967f1
cmp qword [rsp + 0x28], rbx
jne 0x1401967f1
mov rdx, qword [rsp + 0x30]
mov rcx, r14
mov r8, rbx
call sub.msvcrt.dll_memcmp
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x1401967f1