Function at 0x14012dde0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x48
mov rax, qword [0x14051d038]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
test rdx, rdx
je 0x14012decc
mov r14, r8
mov esi, 0x5a
test r8, r8
je 0x14012dece
mov rbx, r9
test r9, r9
je 0x14012dece
mov rdi, rdx
mov r15, rcx
lea rdx, str.sha256__
mov r8d, 8
mov rcx, rdi
call fcn.140303610
test eax, eax
je 0x14012def5
lea rdx, [0x14048e461]
mov rcx, rdi
call fcn.1400f7850
test rax, rax
je 0x14012dece
mov rdi, rax
movabs rax, 0xaaaaaaaaaaaaaaaa
mov qword [rsp + 0x30], rax
xor r15d, r15d
mov rcx, rdi
xor edx, edx
mov r8d, 2
call fcn.1403008a0
mov esi, 0x5a
test eax, eax
je 0x14012df72
mov rax, qword [fcn.140225eb0]
mov rcx, r15
call qword [case.0x14012d181.0]
mov rax, qword [fcn.140225eb0]
mov rcx, qword [rsp + 0x38]
call qword [case.0x14012d181.0]
mov qword [rsp + 0x38], 0
mov rcx, rdi
call fcn.1402ff850
jmp 0x14012dece
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1402ddd70
mov eax, esi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov esi, 0x5a
jmp 0x14012dece
xor eax, eax
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rax
mov rcx, qword [0x14052b458]
cmp qword [rcx + 0xb8], rax
je 0x14012deee
mov rax, qword [fcn.140225e50]
mov ecx, 0x20
call qword [case.0x14012d181.0]
mov esi, 0x1b
test rax, rax
je 0x14012dece
mov r12, rax
mov rax, qword [0x14052b458]
mov rax, qword [rax + 0xb8]
mov r9d, 0x20
mov rcx, r14
mov rdx, rbx
mov r8, r12
call qword [case.0x14012d181.0]
test eax, eax
je 0x14012e014
mov esi, eax
mov rax, qword [fcn.140225eb0]
mov rcx, r12
call qword [case.0x14012d181.0]
jmp 0x14012dece
mov rcx, rdi
call fcn.140300bac
mov ebp, eax
xor r15d, r15d
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call fcn.1403008a0
cmp ebp, 0x100000
ja 0x14012de97
test eax, eax
jne 0x14012de97
mov ecx, ebp
call fcn.14004bd20
cmp rax, rbx
jae 0x14012dfb4
xor r15d, r15d
jmp 0x14012de97
mov r12, rax
mov rax, qword [fcn.140225e50]
lea rcx, [r12 + 1]
call qword [case.0x14012d181.0]
test rax, rax
je 0x14012dfac
mov r15, rax
mov r8d, 1
mov rcx, rax
mov rdx, r12
mov r9, rdi
call fcn.140300520
cmp eax, 1
jne 0x14012de97
cmp r12, rbx
jne 0x14012e188
mov rcx, r14
mov rdx, r15
mov r8, rbx
call fcn.1402e0560
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x14012de97
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, 0x20
mov rcx, r12
call fcn.1400ea530
mov esi, eax
mov rax, qword [fcn.140225eb0]
mov rcx, r12
call qword [case.0x14012d181.0]
test esi, esi
jne 0x14012dece
test r15, r15
je 0x14012e068
cmp byte [r15 + 0xa2f], 0
je 0x14012e068
mov r8, qword [rsp + 0x28]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r15
call fcn.1400f8140
mov rcx, rdi
call fcn.140303550
mov rsi, rax
inc rsi
mov rax, qword [fcn.140225e50]
mov rcx, rsi
call qword [case.0x14012d181.0]
test rax, rax
je 0x14012e0b2
mov rbx, rax
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call fcn.1402e0660
lea rsi, str._sha256__
lea rdi, str.sha256__
mov r15, rbx
jmp 0x14012e159
mov rax, qword [fcn.140225eb0]
mov rcx, qword [rsp + 0x28]
call qword [case.0x14012d181.0]
mov esi, 0x1b
jmp 0x14012dece
mov esi, 0x5a
mov r13, qword [rsp + 0x28]
mov rax, qword [fcn.140225eb0]
mov rcx, r13
call qword [case.0x14012d181.0]
mov qword [rsp + 0x28], 0
mov rax, qword [fcn.140225eb0]
mov rcx, rbx
jmp 0x14012df67
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x14012e0d8
mov r12, qword [rsp + 0x30]
add r15, 8
mov rcx, r15
call fcn.140303550
cmp r12, rax
jne 0x14012e0ce
mov r13, qword [rsp + 0x28]
mov rcx, r13
mov rdx, r15
mov r8, r12
call fcn.1402e0560
test r14, r14
je 0x14012e100
test eax, eax
je 0x14012e100
mov byte [r14], 0x3b
mov rcx, r14
mov rdx, rdi
call fcn.1402e1254
mov r15, rax
test rax, rax
je 0x14012e0ce
mov rcx, r15
mov rdx, rsi
call fcn.1402e1254
mov r14, rax
test rax, rax
je 0x14012e10c
mov byte [r14], 0
mov r12, qword [rsp + 0x30]
add r15, 8
mov rcx, r15
call fcn.140303550
cmp r12, rax
je 0x14012e122
jmp 0x14012e13e
mov byte [r15 + r12], 0
lea rdx, str._____BEGIN_PUBLIC_KEY_____
mov rcx, r15
call fcn.1402e1254
test rax, rax
je 0x14012de97
mov r12, rax
mov r13, rax
sub r13, r15
je 0x14012e1bc
cmp byte [r15 + r13 - 1], 0xa
jne 0x14012de97
lea rcx, [r15 + r13]
add rcx, 0x1a
lea rdx, str._n_____END_PUBLIC_KEY_____
call fcn.1402e1254
test rax, rax
je 0x14012de97
mov rbp, rax
mov rcx, rax
sub rcx, r15
mov rax, qword [fcn.140225e50]
mov qword [rsp + 0x20], rcx
sub rcx, r13
add rcx, 0xffffffffffffffe7
call qword [case.0x14012d181.0]
test rax, rax
je 0x14012de97
add r13, 0x1a
cmp r13, qword [rsp + 0x20]
jae 0x14012e236
add r12, 0x1a
xor edx, edx
jmp 0x14012e225
mov byte [rax + rdx], cl
inc rdx
inc r12
cmp rbp, r12
je 0x14012e238
movzx ecx, byte [r12]
cmp ecx, 0xa
je 0x14012e21d
cmp ecx, 0xd
je 0x14012e21d
jmp 0x14012e217
xor edx, edx
mov byte [rax + rdx], 0
mov r12, rax
lea rdx, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, rax
call fcn.1400ea240
mov ebp, eax
mov rax, qword [fcn.140225eb0]
mov rcx, r12
call qword [case.0x14012d181.0]
test ebp, ebp
jne 0x14012de97
cmp qword [rsp + 0x30], rbx
jne 0x14012de97
mov rdx, qword [rsp + 0x38]
mov rcx, r14
jmp 0x14012dffd