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

Disassembly:
push rbp
push rbx
push rsi
push r12
lea rbp, [rsp - 0xf8]
sub rsp, 0x228
mov rax, qword [0x1400ca008]
xor rax, rsp
mov qword [rbp + 0xd0], rax
mov r12d, r8d
mov dword [rbp - 0x68], edx
mov r8d, edx
mov qword [rbp - 0x40], rcx
mov esi, edx
mov qword [rbp - 0x48], rcx
lea rdx, [rbp - 0x48]
xor ecx, ecx
call qword [sym.imp.libcrypto_3_x64.dll_d2i_X509]
mov qword [rbp - 0x70], rax
mov rbx, rax
test rax, rax
jne 0x14001c52a
call qword [sym.imp.libcrypto_3_x64.dll_ERR_get_error]
mov ecx, eax
xor edx, edx
call qword [sym.imp.libcrypto_3_x64.dll_ERR_error_string]
mov r8, rax
lea rdx, str.cert_parse:__s
lea ecx, [rbx + 3]
call fcn.14005c0d0
xor eax, eax
jmp 0x14001cac8
mov qword [rsp + 0x268], rdi
mov edx, 0x80
xor ecx, ecx
mov qword [rsp + 0x220], r13
call fcn.140088978
mov qword [rbp - 0x50], rax
mov r13, rax
test rax, rax
je 0x14001cae4
xor edx, edx
mov r8d, 0x80
mov rcx, rax
call fcn.1400753f0
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_pubkey]
mov qword [r13 + 0x10], rax
test rax, rax
jne 0x14001c59c
call qword [sym.imp.libcrypto_3_x64.dll_ERR_get_error]
mov ecx, eax
xor edx, edx
call qword [sym.imp.libcrypto_3_x64.dll_ERR_error_string]
lea rdx, str.cert_parse:__s
mov ecx, 3
mov r8, rax
jmp 0x14001c669
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_version]
mov rcx, rbx
mov dword [r13 + 0x18], eax
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_subject_name]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_X509_NAME_oneline]
lea rdx, [0x1400b00c8]
lea rcx, [rbp - 0x30]
call fcn.140074a08
test rax, rax
jne 0x14001c5e3
lea rdx, str.cert_parse:_invalid_subject__s
jmp 0x14001c660
lea rcx, [rax + 3]
call fcn.14005e6e0
mov rcx, rbx
mov qword [r13 + 0x40], rax
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_signature_nid]
mov ecx, eax
mov dword [r13 + 0x1c], eax
call qword [sym.imp.libcrypto_3_x64.dll_OBJ_nid2sn]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_EVP_get_digestbyname]
mov rcx, rbx
mov qword [r13 + 0x20], rax
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_serialNumber]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_ASN1_INTEGER_get]
mov rcx, rbx
mov dword [r13 + 0x28], eax
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_issuer_name]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_X509_NAME_oneline]
lea rdx, [0x1400b00c8]
lea rcx, [rbp - 0x30]
call fcn.140074a08
test rax, rax
jne 0x14001c686
lea rdx, str.cert_parse:_invalid_issuer__s
lea r8, [rbp - 0x30]
mov ecx, 5
call fcn.14005c0d0
mov rcx, r13
call fcn.14001cb30
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_X509_free]
xor eax, eax
jmp 0x14001cab8
mov qword [rsp + 0x218], r14
lea rcx, [rax + 3]
mov qword [rsp + 0x210], r15
call fcn.14005e6e0
mov rcx, rbx
mov qword [r13 + 0x48], rax
call qword [sym.imp.libcrypto_3_x64.dll_X509_get0_notBefore]
mov rcx, rax
lea rdx, [r13 + 0x2c]
call fcn.1400197e0
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_X509_get0_notAfter]
mov rcx, rax
lea rdx, [r13 + 0x36]
call fcn.1400197e0
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_ext_count]
xor r15d, r15d
mov r14d, eax
mov edi, r15d
test eax, eax
jle 0x14001c78d
nop word [rax + rax]
mov edx, edi
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_X509_get_ext]
mov rcx, rax
mov rsi, rax
call qword [sym.imp.libcrypto_3_x64.dll_X509_EXTENSION_get_object]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_OBJ_obj2nid]
cmp eax, 0x52
je 0x14001c824
cmp eax, 0x7e
jne 0x14001c77f
call qword [sym.imp.libcrypto_3_x64.dll_BIO_s_mem]
mov rcx, rax
call qword [sym.imp.libcrypto_3_x64.dll_BIO_new]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov rdx, rsi
mov rbx, rax
call qword [sym.imp.libcrypto_3_x64.dll_X509V3_EXT_print]
mov r8d, 0x100
lea rdx, [rbp - 0x30]
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_BIO_gets]
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_BIO_free]
lea rdx, str.Trust_Root
lea rcx, [rbp - 0x30]
call fcn.1400971a0
test eax, eax
jne 0x14001c7f5
or dword [r13 + 8], 1
mov rbx, qword [rbp - 0x70]
inc edi
cmp edi, r14d
jl 0x14001c6f0
mov esi, dword [rbp - 0x68]
mov r10, qword [r13 + 0x40]
mov r8, qword [r13 + 0x48]
mov rax, r10
mov r9, r8
sub r9, r10
nop
movzx edx, byte [rax]
movzx ecx, byte [rax + r9]
sub edx, ecx
jne 0x14001c7b3
inc rax
test ecx, ecx
jne 0x14001c7a0
test edx, edx
jne 0x14001c84c
mov rdx, qword [r13 + 0x10]
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_X509_verify]
test eax, eax
jg 0x14001c886
mov r8, qword [r13 + 0x40]
lea rdx, str.cert_parse:_signature_not_verified__s
mov ecx, 5
call fcn.14005c0d0
mov rcx, r13
call fcn.14001cb30
mov rcx, rbx
jmp 0x14001caa0
mov rax, r15
lea rdx, [rbp - 0x30]
lea r8, str.Private
movzx ecx, byte [rdx + rax]
inc rax
cmp cl, byte [r8 + rax - 1]
jne 0x14001c77b
cmp rax, 8
jne 0x14001c803
or dword [r13 + 8], eax
jmp 0x14001c77b
mov rcx, rsi
call qword [sym.imp.libcrypto_3_x64.dll_X509_EXTENSION_get_data]
xor r8d, r8d
mov edx, dword [rax]
mov rcx, qword [rax + 8]
sub edx, 2
add rcx, 2
call qword [sym.imp.libcrypto_3_x64.dll_BN_bin2bn]
mov qword [r13 + 0x50], rax
jmp 0x14001c77f
mov rax, qword [0x1400d7330]
sub r8, rax
nop word [rax + rax]
movzx edx, byte [rax]
movzx ecx, byte [rax + r8]
sub edx, ecx
jne 0x14001c873
inc rax
test ecx, ecx
jne 0x14001c860
test edx, edx
jne 0x14001c886
mov r8, r10
lea rdx, str.cert_parse:_certificate_trail_loop__s
jmp 0x14001c7db
xor ecx, ecx
call fcn.140080c84
add rax, 0x3aa7e80
mov ecx, r12d
sub ecx, eax
add rcx, rax
mov eax, r15d
sets al
neg eax
movsxd r8, eax
movabs rax, 0xc22e450672894ab7
mov rdx, r8
xor rdx, rcx
mul rdx
mov r11, rdx
shr r11, 0x10
xor r11d, r8d
imul eax, r11d, 0x15180
sub ecx, eax
mov eax, 0x88888889
sets r15b
neg r15d
mov edx, r15d
xor edx, ecx
mul edx
mov eax, 0x88888889
mov r9d, edx
shr r9d, 5
mul r9d
xor r9d, r15d
mov eax, 0xaaaaaaab
mov r8d, edx
shr r8d, 5
mul r8d
xor r8d, r15d
mov r10d, edx
mov eax, r8d
shr r10d, 4
xor r10d, r15d
lea edx, [r10 + r10*2]
shl edx, 3
sub eax, edx
mov edx, r9d
mov dword [rbp - 0x60], eax
imul eax, r8d, 0x3c
sub edx, eax
imul eax, r9d, 0x3c
mov dword [rbp - 0x5c], edx
mov byte [rbp - 0x79], dl
sub ecx, eax
movzx eax, byte [rbp - 0x60]
mov byte [rbp - 0x7a], al
movzx eax, dl
lea edx, [r11 + 0xa955c]
mov dword [rbp - 0x58], ecx
movzx eax, cl
mov byte [rbp - 0x78], cl
add edx, r10d
lea rcx, [rbp - 0x80]
call fcn.14005c610
lea rdx, [r13 + 0x36]
lea rcx, [r13 + 0x2c]
call fcn.1400168b0
test eax, eax
jg 0x14001c9ca
lea rdx, [rbp - 0x80]
call fcn.1400168b0
test eax, eax
js 0x14001c9ca
mov eax, esi
mov edi, 1
movsxd rsi, esi
bswap eax
test rsi, rsi
mov dword [r13 + 0x60], eax
mov rdx, rsi
cmove rdx, rdi
xor ecx, ecx
bswap r12d
mov dword [r13 + 0x5c], r12d
call fcn.140088978
test rax, rax
je 0x14001cb0a
mov rdx, qword [rbp - 0x40]
mov r8, rsi
mov rcx, rax
mov qword [r13 + 0x68], rax
call fcn.140074d50
mov rcx, rbx
call qword [sym.imp.libcrypto_3_x64.dll_X509_free]
mov rax, r13
jmp 0x14001caa8
movzx ebx, byte [r13 + 0x3e]
mov rax, qword [rbp - 0x50]
movzx ecx, byte [rbp - 0x79]
movzx edi, byte [r13 + 0x3d]
movzx esi, byte [r13 + 0x3c]
movzx r9d, word [rax + 0x2c]
movzx eax, byte [rbp - 0x78]
movzx r14d, byte [r13 + 0x3b]
movzx r15d, byte [r13 + 0x3a]
movzx r12d, word [r13 + 0x36]
movzx edx, byte [rbp - 0x7a]
movzx r8d, byte [rbp - 0x7b]
movzx r10d, byte [rbp - 0x7c]
movzx r11d, word [rbp - 0x80]
movzx r13d, byte [r13 + 0x34]
mov dword [rsp + 0xa0], eax
mov dword [rsp + 0x98], ecx
mov ecx, 5
mov dword [rsp + 0x90], edx
lea rdx, str.cert_parse:_invalid_times__s_first__u__02u__02uT_02u:_02u:_02u_last__u__02u__02uT_02u:_02u:_02u_fstamp__u__02u__02uT_02u:_02u:_02u
mov dword [rsp + 0x88], r8d
mov dword [rsp + 0x80], r10d
mov dword [rsp + 0x78], r11d
mov dword [rsp + 0x70], ebx
mov rbx, qword [rbp - 0x50]
mov dword [rsp + 0x68], edi
mov dword [rsp + 0x60], esi
mov dword [rsp + 0x58], r14d
movzx eax, byte [rbx + 0x33]
mov r8, qword [rbx + 0x40]
mov dword [rsp + 0x50], r15d
mov dword [rsp + 0x48], r12d
mov dword [rsp + 0x40], r13d
mov dword [rsp + 0x38], eax
movzx eax, byte [rbx + 0x32]
mov dword [rsp + 0x30], eax
movzx eax, byte [rbx + 0x31]
mov dword [rsp + 0x28], eax
movzx eax, byte [rbx + 0x30]
mov dword [rsp + 0x20], eax
call fcn.14005c0d0
mov rcx, rbx
call fcn.14001cb30
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.libcrypto_3_x64.dll_X509_free]
xor eax, eax
mov r14, qword [rsp + 0x218]
mov r15, qword [rsp + 0x210]
mov rdi, qword [rsp + 0x268]
mov r13, qword [rsp + 0x220]
mov rcx, qword [rbp + 0xd0]
xor rcx, rsp
call fcn.140073c20
add rsp, 0x228
pop r12
pop rsi
pop rbx
pop rbp
ret
mov edi, 1
lea rdx, str.fatal_out_of_memory___lu_bytes_
mov dword [0x1400d1b14], edi
lea r8d, [rdi + 0x7f]
lea ecx, [rdi + 2]
call fcn.14005c0d0
mov ecx, edi
call fcn.1400786ac
int3
mov r8d, esi
mov dword [0x1400d1b14], edi
lea rdx, str.fatal_out_of_memory___lu_bytes_
mov ecx, 3
call fcn.14005c0d0
mov ecx, edi
call fcn.1400786ac
int3