Function at 0x140083060
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, [0x1402aec90]
push rbx
sub rsp, 0x40
mov rax, qword [0x1403e76f0]
mov rcx, qword [rax]
call fcn.1400c1150
mov rcx, rax
mov rbx, rax
call fcn.1401065d0
test rax, rax
je 0x140076790
mov edx, dword [rdi + 3]
lea rcx, [rdi + 0xf]
call fcn.140077cc0
mov r12, rax
test rax, rax
je 0x140076807
lea rdi, [rax + 8]
mov rcx, rsi
call fcn.1401065d0
mov rcx, rdi
mov r13, rax
call fcn.1401065d0
mov rcx, rbx
add r13, rax
call fcn.1401065d0
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.140202b80
xor edx, edx
mov rcx, r13
call fcn.1400755a0
mov rcx, rbx
mov r13, rax
call fcn.1401065d0
mov rdx, r13
mov rcx, rbx
mov r8, rax
call fcn.1401065f0
test eax, eax
jne 0x1400767c0
mov rdx, r13
mov rcx, r12
call fcn.140077130
mov rcx, r12
mov r14d, eax
call fcn.1400768e0
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, [0x1402ae832]
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x140076774
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, [0x1402ae832]
mov r14d, 0xffffffff
mov qword [rsp + 0x28], r13
call fcn.14005a160
mov rcx, r12
call fcn.1400768e0
mov rcx, r13
call sub.msvcrt.dll_free
jmp 0x140076774
mov eax, dword [rdi + 3]
mov r9d, 7
xor edx, edx
xor ecx, ecx
lea r8, [0x1402ae832]
mov r14d, 0xffffffff
mov dword [rsp + 0x28], eax
lea rax, str.Cant_load_cert__size:__d
mov qword [rsp + 0x20], rax
call fcn.14005a160
jmp 0x140076774
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 0x140083250
mov r12, rcx
mov rcx, qword [rcx + 0x10]
mov rsi, r9
call fcn.14009fba0
mov r13, qword [rax + 0x40]
movzx eax, word [r11 + 1]
cmp ax, 0xc00
je 0x140083190
jbe 0x1400830d0
cmp ax, 0xf100
je 0x1400831b0
jbe 0x140083110
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 0x1400831d0
cmp ax, 0xa00
jne 0x140083138
mov edx, dword [r11 + 0x19]
mov eax, dword [r11 + 0x1d]
lea rcx, [r11 + 0xf]
lea rax, [rdx + rax + 0x12]
cmp rbx, rax
jne 0x140083235
add rsp, 0x48
mov rdx, r12
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.14009e670
cmp ax, 0xc01
je 0x140083170
cmp ax, 0xf000
jne 0x140083180
add rsp, 0x48
mov r8, rbx
lea rdx, [r11 + 0xf]
mov rcx, r13
pop rbx
pop rsi
pop r12
pop r13
jmp 0x1400eaf40
cmp ax, 0x100
jne 0x140083180
lea r12, [r11 + 0xf]
mov rcx, r12
call fcn.1400901e0
cmp rbx, rax
jne 0x1400831ff
add rsp, 0x48
mov r8, rsi
mov rdx, r12
mov rcx, r13
pop rbx
pop rsi
pop r12
pop r13
jmp fcn.1400f7250
add rsp, 0x48
xor eax, eax
pop rbx
pop rsi
pop r12
pop r13
ret
mov eax, 0xfffffd66
jmp 0x1400830be
mov rdx, qword [r12 + 0x28]
add rsp, 0x48
mov rcx, r11
pop rbx
pop rsi
pop r12
pop r13
jmp 0x140076670
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.1400ea040
mov edx, dword [r11 + 0x35]
mov eax, dword [r11 + 0x39]
lea rcx, [r11 + 0xf]
lea rax, [rdx + rax + 0x2e]
cmp rbx, rax
jne 0x140083286
add rsp, 0x48
mov r8, rsi
mov rdx, r12
pop rbx
pop rsi
pop r12
pop r13
jmp 0x1400a1440
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.14005a160
mov eax, 0xffffff9a
jmp 0x1400830be
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 0x140083210
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.14005a160
mov eax, 0xffffff9b
jmp 0x1400830be
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 0x140083210
push r14
push r13
push r12
push rbx
sub rsp, 0x38
test rdx, rdx
je 0x1400a14f8
mov r12, rcx
test rcx, rcx
je 0x1400a14f8
mov rcx, qword [rdx + 0x10]
mov rbx, rdx
mov r13, r8
call fcn.14009fba0
cmp qword [rax + 0x48], 0
mov rdx, rax
je 0x1400a1522
mov ecx, dword [r12 + 0x26]
mov eax, dword [r12 + 0x2a]
mov r9, r13
lea r8, [rcx + rax + 0x2e]
mov rcx, r12
call fcn.1400a1570
mov r14d, eax
test eax, eax
jne 0x1400a14c0
add rsp, 0x38
mov r8, rbx
mov rdx, r12
mov rcx, r13
pop rbx
pop r12
pop r13
pop r14
jmp fcn.14009ffc0
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.14005a160
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.14005a160
jmp 0x1400a14e2
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.14005a160
jmp 0x1400a14e2
push r13
push r12
mov r12, rcx
mov rcx, rdx
sub rsp, 0x28
lea rdx, [rsp + 0x50]
mov qword [rsp + 0x50], r8
call fcn.14008e5a0
mov rcx, qword [r12]
mov r13, rax
call fcn.1400a35c0
test al, al
je 0x1400eaf96
lea rdx, [r13 + 6]
mov rcx, r12
call fcn.1401b99b0
test rax, rax
je 0x1400eaf96
movzx eax, word [r13]
cmp ax, 0x11
ja 0x1400eafb0
mov rdx, 0xfffffffffffdfb7f
bt rdx, rax
jb 0x1400eafb0
mov r8, qword [rsp + 0x50]
mov rdx, r13
mov rcx, r12
call fcn.1400e5290
add rsp, 0x28
pop r12
pop r13
ret
mov rcx, r13
call sub.msvcrt.dll_free
xor eax, eax
jmp 0x1400eafa6