Function at 0x140082d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbp
xor r9d, r9d
lea r8, str.chain_ca_folder
mov rbp, rsp
push r14
push r13
push r12
push rdi
mov rdi, rcx
push rsi
mov rsi, rdx
lea rdx, [0x1402abb30]
push rbx
sub rsp, 0x40
mov rax, qword [0x1403e4430]
mov rcx, qword [rax]
call fcn.1400be440
mov rcx, rax
mov rbx, rax
call fcn.140101b60
test rax, rax
je 0x1400764c0
mov edx, dword [rdi + 3]
lea rcx, [rdi + 0xf]
call fcn.1400779f0
mov r12, rax
test rax, rax
je 0x140076537
lea rdi, [rax + 8]
mov rcx, rsi
call fcn.140101b60
mov rcx, rdi
mov r13, rax
call fcn.140101b60
mov rcx, rbx
add r13, rax
call fcn.140101b60
lea rdx, [r13 + rax + 9]
lea rax, [rdx + 0xf]
shr rax, 4
shl rax, 4
call fcn.140035990
lea r8, str._s__s__s.dcert
sub rsp, rax
mov r9, rbx
mov qword [rsp + 0x28], rdi
lea r13, [rsp + 0x40]
mov qword [rsp + 0x20], rsi
mov rcx, r13
call fcn.1401ff490
xor edx, edx
mov rcx, r13
call fcn.1400752d0
mov rcx, rbx
mov r13, rax
call fcn.140101b60
mov rdx, r13
mov rcx, rbx
mov r8, rax
call fcn.140101b80
test eax, eax
jne 0x1400764f0
mov rdx, r13
mov rcx, r12
call fcn.140076e60
mov rcx, r12
mov r14d, eax
call fcn.140076610
mov rcx, r13
call sub.msvcrt.dll_free
lea rsp, [rbp - 0x30]
mov eax, r14d
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
pop rbp
ret
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov r14d, 0xffffffff
lea rax, str.Not_found_chain_ca_folder_in_.cfg_file
lea r8, [0x1402ab6d2]
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x1400764a4
lea rax, str.Cert_path__s_is_not_in_ca_dir:__s
mov qword [rsp + 0x30], rbx
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
mov r9d, 7
lea r8, [0x1402ab6d2]
mov r14d, 0xffffffff
mov qword [rsp + 0x28], r13
call fcn.14005a150
mov rcx, r12
call fcn.140076610
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x1400764a4
mov eax, dword [rdi + 3]
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, [0x1402ab6d2]
mov r14d, 0xffffffff
mov dword [rsp + 0x28], eax
lea rax, str.Cant_load_cert__size:__d
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x1400764a4
push r13
mov r11, rdx
push r12
push rsi
push rbx
sub rsp, 0x48
mov ebx, dword [rdx + 3]
lea rdx, [rbx + 0xf]
cmp rdx, r8
ja 0x140082f80
mov r12, rcx
mov rcx, qword [rcx + 0x10]
mov rsi, r9
call fcn.14009ee00
mov r13, qword [rax + 0x40]
movzx eax, word [r11 + 1]
cmp ax, 0xc00
je 0x140082ec0
jbe 0x140082e00
cmp ax, 0xf100
je 0x140082ee0
jbe 0x140082e40
cmp ax, 0xffff
mov edx, 0
mov eax, 0xfffffd66
cmove eax, edx
add rsp, 0x48
pop rbx
pop rsi
pop r12
pop r13
ret
cmp ax, 0x200
je 0x140082f00
cmp ax, 0xa00
jne 0x140082e68
mov edx, dword [r11 + 0x19]
mov eax, dword [r11 + 0x1d]
lea rcx, [r11 + 0xf]
lea rax, [rdx + rax + 0x12]
cmp rbx, rax
jne 0x140082f65
add rsp, 0x48
mov rdx, r12
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.14009d8d0
cmp ax, 0xc01
je 0x140082ea0
cmp ax, 0xf000
jne 0x140082eb0
add rsp, 0x48
mov r8, rbx
lea rdx, [r11 + 0xf]
mov rcx, r13
pop rbx
pop rsi
pop r12
pop r13
jmp 0x1400e6cc0
cmp ax, 0x100
jne 0x140082eb0
lea r12, [r11 + 0xf]
mov rcx, r12
call fcn.14008ff10
cmp rbx, rax
jne 0x140082f2f
add rsp, 0x48
mov r8, rsi
mov rdx, r12
mov rcx, r13
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.1400f2c50
add rsp, 0x48
xor eax, eax
pop rbx
pop rsi
pop r12
pop r13
ret
mov eax, 0xfffffd66
jmp 0x140082dee
mov rdx, qword [r12 + 0x28]
add rsp, 0x48
mov rcx, r11
pop rbx
pop rsi
pop r12
pop r13
jmp 0x1400763a0
add rsp, 0x48
mov r9, rsi
mov r8, rbx
mov rcx, r13
pop rbx
lea rdx, [r11 + 0xf]
pop rsi
pop r12
pop r13
jmp fcn.1400e5dc0
mov edx, dword [r11 + 0x35]
mov eax, dword [r11 + 0x39]
lea rcx, [r11 + 0xf]
lea rax, [rdx + rax + 0x2e]
cmp rbx, rax
jne 0x140082fb6
add rsp, 0x48
mov r8, rsi
mov rdx, r12
pop rbx
pop rsi
pop r12
pop r13
jmp 0x1400a06a0
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x30], rax
lea rax, str.Corrupted_trnsaction__datum_size__zd_is_not_equal_to_size_of_TX__zd
mov qword [rsp + 0x20], rax
mov r9d, 5
xor edx, edx
xor ecx, ecx
lea r8, str.chain_net
call fcn.14005a150
mov eax, 0xffffff9a
jmp 0x140082dee
mov qword [rsp + 0x30], rax
lea rax, str.Corrupted_anchor__datum_size__zd_is_not_equal_to_size_of_anchor__zd
mov qword [rsp + 0x28], rbx
jmp 0x140082f40
lea rax, str.Corrupted_datum_rejected:_wrong_size__zd_not_equal_or_less_than_datum_size__zd
mov qword [rsp + 0x30], r8
mov r9d, 1
xor ecx, ecx
mov qword [rsp + 0x28], rdx
lea r8, str.chain_net
xor edx, edx
mov qword [rsp + 0x20], rax
call fcn.14005a150
mov eax, 0xffffff9b
jmp 0x140082dee
mov qword [rsp + 0x30], rax
lea rax, str.Corrupted_decree__datum_size__zd_is_not_equal_to_size_of_decree__zd
mov qword [rsp + 0x28], rbx
jmp 0x140082f40
push r14
push r13
push r12
push rbx
sub rsp, 0x38
test rdx, rdx
je 0x1400a0758
mov r12, rcx
test rcx, rcx
je 0x1400a0758
mov rcx, qword [rdx + 0x10]
mov rbx, rdx
mov r13, r8
call fcn.14009ee00
cmp qword [rax + 0x48], 0
mov rdx, rax
je 0x1400a0782
mov ecx, dword [r12 + 0x26]
mov eax, dword [r12 + 0x2a]
mov r9, r13
lea r8, [rcx + rax + 0x2e]
mov rcx, r12
call fcn.1400a07d0
mov r14d, eax
test eax, eax
jne 0x1400a0720
add rsp, 0x38
mov r8, rbx
mov rdx, r12
mov rcx, r13
pop rbx
pop r12
pop r13
pop r14
jmp fcn.14009f220
lea rax, str.Decree_verification_failed_
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rax
lea r8, str.chain_net_decree
call fcn.14005a150
add rsp, 0x38
mov eax, r14d
pop rbx
pop r12
pop r13
pop r14
ret
mov r9d, 7
xor edx, edx
xor ecx, ecx
mov r14d, 0xffffff9c
lea rax, str.Bad_arguments
lea r8, str.chain_net_decree
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x1400a0742
mov r9d, 5
xor edx, edx
xor ecx, ecx
mov r14d, 0xffffff94
lea rax, str.Decree_is_not_inited_
lea r8, str.chain_net_decree
mov qword [rsp + 0x20], rax
call fcn.14005a150
jmp 0x1400a0742
push r13
push r12
mov r12, rcx
mov rcx, rdx
sub rsp, 0x28
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], r8
call fcn.14008e2d0
mov rcx, qword [r12]
mov r13, rax
call fcn.1400a26c0
test al, al
je 0x1400e6d16
lea rdx, [r13 + 6]
mov rcx, r12
call fcn.1401b4f70
test rax, rax
je 0x1400e6d16
movzx eax, word [r13]
cmp ax, 0x11
ja 0x1400e6d30
mov rdx, 0xfffffffffffdfb7f
bt rdx, rax
jb 0x1400e6d30
mov r8, qword [rsp + 0x50]
mov rdx, r13
mov rcx, r12
call fcn.1400e1010
add rsp, 0x28
pop r12
pop r13
ret
mov rcx, r13
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1400e6d26