Function at 0x140004980
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 [0x140a7a0a8]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
test rdx, rdx
je 0x140004a4f
mov r14, r8
mov esi, 0x5a
test r8, r8
je 0x140004a51
mov rbx, r9
test r9, r9
je 0x140004a51
mov rdi, rdx
mov r15, rcx
lea rdx, str.sha256__
mov r8d, 8
mov rcx, rdi
call fcn.1408c55a0
test eax, eax
je 0x140004a71
lea rdx, [0x14090507d]
mov rcx, rdi
call fcn.140023ca0
test rax, rax
je 0x140004a51
mov rdi, rax
xor r15d, r15d
mov rcx, rax
xor edx, edx
mov r8d, 2
call fcn.1408ba004
mov esi, 0x5a
test eax, eax
je 0x140004ae4
mov rcx, r15
call qword [fcn.1408b5568]
mov rcx, qword [rsp + 0x38]
call qword [fcn.1408b5568]
mov qword [rsp + 0x38], 0
mov rcx, rdi
call fcn.1408b96b8
jmp 0x140004a51
xor esi, esi
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1408ac9a0
mov eax, esi
add rsp, 0x48
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x28], 0
mov rax, qword [0x140a7a180]
cmp qword [rax + 0xb8], 0
je 0x140004b6c
mov ecx, 0x20
call qword [fcn.1408b557c]
mov esi, reloc.WLDAP32.dll_Ordinal_27
test rax, rax
je 0x140004a51
mov r12, rax
mov rax, qword [0x140a7a180]
mov r9d, 0x20
mov rcx, r14
mov rdx, rbx
mov r8, r12
call qword [rax + 0xb8]
test eax, eax
je 0x140004b76
mov esi, eax
mov rcx, r12
call qword [fcn.1408b5568]
jmp 0x140004a51
mov rcx, rdi
call fcn.1408c5c40
mov ebp, eax
xor r15d, r15d
mov rcx, rdi
xor edx, edx
xor r8d, r8d
call fcn.1408ba004
cmp ebp, 0x100000
ja 0x140004a28
test eax, eax
jne 0x140004a28
mov ecx, ebp
call fcn.140016010
cmp rax, rbx
jb 0x140004c8b
mov r12, rax
lea rcx, [rax + 1]
call qword [fcn.1408b557c]
test rax, rax
je 0x140004c8b
mov r15, rax
mov r8d, 1
mov rcx, rax
mov rdx, r12
mov r9, rdi
call fcn.1408c5358
cmp eax, 1
jne 0x140004a28
cmp r12, rbx
jne 0x140004cd2
mov rcx, r14
mov rdx, r15
jmp 0x140004d04
mov esi, 0x5a
jmp 0x140004a51
lea r8, [rsp + 0x28]
lea r9, [rsp + 0x30]
mov edx, 0x20
mov rcx, r12
call fcn.140024120
mov esi, eax
mov rcx, r12
call qword [fcn.1408b5568]
test esi, esi
jne 0x140004a51
test r15, r15
je 0x140004bc3
cmp byte [r15 + 0xaaf], 0
je 0x140004bc3
mov r8, qword [rsp + 0x28]
lea rdx, str._public_key_hash:_sha256___s
mov rcx, r15
call fcn.140003900
mov rcx, rdi
call fcn.1408c5050
mov rsi, rax
inc rsi
mov rcx, rsi
call qword [fcn.1408b557c]
test rax, rax
je 0x140004cbd
mov rbx, rax
mov rcx, rax
mov rdx, rdi
mov r8, rsi
call fcn.1408af920
lea rsi, str._sha256__
lea rdi, str.sha256__
mov r15, rbx
jmp 0x140004c1e
mov byte [r14], 0x3b
mov rcx, r14
mov rdx, rdi
call fcn.1408b140c
mov r15, rax
test rax, rax
je 0x140004c93
mov rcx, r15
mov rdx, rsi
call fcn.1408b140c
mov r14, rax
test rax, rax
je 0x140004c4d
mov byte [r14], 0
mov r12, qword [rsp + 0x30]
add r15, 8
mov rcx, r15
call fcn.1408c5050
cmp r12, rax
jne 0x140004c07
jmp 0x140004c63
mov r12, qword [rsp + 0x30]
add r15, 8
mov rcx, r15
call fcn.1408c5050
cmp r12, rax
jne 0x140004c93
mov r13, qword [rsp + 0x28]
mov rcx, r13
mov rdx, r15
mov r8, r12
call fcn.1408b1850
test r14, r14
je 0x140004c7f
test eax, eax
jne 0x140004c07
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x140004c9d
xor r15d, r15d
jmp 0x140004a28
mov esi, 0x5a
mov r13, qword [rsp + 0x28]
mov rcx, r13
call qword [fcn.1408b5568]
mov qword [rsp + 0x28], 0
mov rcx, rbx
call qword [fcn.1408b5568]
jmp 0x140004a51
mov rcx, qword [rsp + 0x28]
call qword [fcn.1408b5568]
mov esi, reloc.WLDAP32.dll_Ordinal_27
jmp 0x140004a51
mov byte [r15 + r12], 0
lea rdx, [rsp + 0x38]
lea r8, [rsp + 0x30]
mov rcx, r15
call fcn.140004d20
test eax, eax
jne 0x140004a28
cmp qword [rsp + 0x30], rbx
jne 0x140004a28
mov rdx, qword [rsp + 0x38]
mov rcx, r14
mov r8, rbx
call fcn.1408b1850
test eax, eax
mov esi, 0x5a
cmove esi, eax
jmp 0x140004a28