Function at 0x180046324
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, 0x50
xor esi, esi
mov rdi, r9
and qword [rbp - 0x20], rsi
mov r12, r8
mov r14, rdx
mov r15, rcx
lea ebx, [rsi + 0x5a]
test rdx, rdx
jne 0x18004635e
xor eax, eax
jmp 0x1800465fd
test r12, r12
je 0x1800465fb
test rdi, rdi
je 0x1800465fb
mov r8d, 8
lea rdx, str.sha256__
mov rcx, r14
call fcn.180090ca0
test eax, eax
jne 0x1800464f3
mov rax, qword [0x1800f4078]
cmp qword [rax + 0xb8], rsi
je 0x1800465fb
mov ecx, 0x20
call qword [fcn.1800865b0]
mov rsi, rax
test rax, rax
jne 0x1800463be
mov eax, 0x1b
jmp 0x1800465fd
mov rax, qword [0x1800f4078]
mov r9d, 0x20
mov r8, rsi
mov rdx, rdi
mov rcx, r12
call qword [rax + VarDecFix]
test eax, eax
jne 0x1800465fd
lea rax, [rbp - 0x18]
mov r8d, 0x20
lea r9, [rbp + 0x38]
mov qword [rsp + 0x20], rax
mov rdx, rsi
mov rcx, r15
call fcn.180060050
mov rcx, rsi
mov edi, eax
call qword [fcn.18008628c]
test edi, edi
je 0x180046416
mov eax, edi
jmp 0x1800465fd
mov r8, qword [rbp + 0x38]
lea rdx, str._t_public_key_hash:_sha256___s_n
mov rcx, r15
call fcn.18004cf4c
or r12, 0xffffffffffffffff
mov rdi, r12
inc rdi
cmp byte [r14 + rdi], 0
jne 0x180046430
lea rcx, [rdi + 1]
call qword [fcn.1800865b0]
mov r15, rax
test rax, rax
jne 0x18004645b
mov rcx, qword [rbp + 0x38]
call qword [fcn.18008628c]
jmp 0x1800463b4
lea r8, [rdi + 1]
mov rdx, r14
mov rcx, r15
call fcn.180083f00
mov rsi, r15
lea rdx, str._sha256__
mov rcx, rsi
call fcn.18008520c
mov rdi, rax
test rax, rax
je 0x180046487
mov byte [rax], 0
lea rdx, [rsi + 8]
mov rax, r12
inc rax
cmp byte [rdx + rax], 0
jne 0x18004648e
mov r8, qword [rbp - 0x18]
mov rsi, qword [rbp + 0x38]
cmp r8, rax
jne 0x1800464b0
mov rcx, rsi
call fcn.180084ec0
test eax, eax
je 0x1800464ef
test rdi, rdi
je 0x1800464d3
lea rdx, str.sha256__
mov byte [rdi], 0x3b
mov rcx, rdi
call fcn.18008520c
mov rsi, rax
test rax, rax
jne 0x18004646d
mov rsi, qword [rbp + 0x38]
mov rcx, rsi
call qword [fcn.18008628c]
and qword [rbp + 0x38], 0
mov rcx, r15
call qword [fcn.18008628c]
jmp 0x1800465fb
xor ebx, ebx
jmp 0x1800464d3
lea rdx, [0x1800d6808]
mov rcx, r14
call fcn.18008b714
mov r15, rax
test rax, rax
je 0x1800465fb
xor edx, edx
mov rcx, rax
lea r8d, [rdx + 2]
call fcn.1800915e0
test eax, eax
jne 0x1800465db
mov rcx, r15
call fcn.180092508
xor r8d, r8d
movsxd r14, eax
xor edx, edx
mov rcx, r15
call fcn.1800915e0
test eax, eax
jne 0x1800465db
cmp r14d, 0x100000
ja 0x1800465db
mov rcx, r14
call fcn.18004f070
mov r14, rax
cmp rdi, rax
ja 0x1800465db
lea rcx, [rax + 1]
call qword [fcn.1800865b0]
mov rsi, rax
test rax, rax
je 0x1800465db
mov r9, r15
mov r8d, 1
mov rdx, r14
mov rcx, rax
call fcn.18008b0e4
cmp eax, 1
jne 0x1800465db
cmp rdi, r14
jne 0x1800465a7
mov r8, rdi
mov rdx, rsi
mov rcx, r12
call fcn.180084ec0
test eax, eax
jne 0x1800465db
xor ebx, ebx
jmp 0x1800465db
lea r8, [rbp - 0x10]
mov byte [r14 + rsi], 0
lea rdx, [rbp - 0x20]
mov rcx, rsi
call fcn.180047258
test eax, eax
jne 0x1800465db
cmp rdi, qword [rbp - 0x10]
jne 0x1800465db
mov rdx, qword [rbp - 0x20]
mov r8, rdi
mov rcx, r12
call fcn.180084ec0
neg eax
sbb ecx, ecx
and ebx, ecx
mov rcx, rsi
call qword [fcn.18008628c]
mov rcx, qword [rbp - 0x20]
call qword [fcn.18008628c]
and qword [rbp - 0x20], 0
mov rcx, r15
call fcn.18008b4f4
mov eax, ebx
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret