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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x6c
mov edi, dword [ebp + 0x80]
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x5c], eax
xor eax, eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x34], edi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov ebx, eax
sub eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov esi, eax
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_check_purpose
cmp ebx, 1
jne 0x6b59e2f2
cmp dword [ebp + 0x4c], 1
je 0x6b59e358
mov dword [esp + 0x10], 0xb40
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0x6a
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [ebp + 0x60], 1
mov eax, dword [ebp + 0x50]
mov dword [esp], 0
xor edi, edi
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_get_pubkey_parameters
mov eax, dword [esp + 0x5c]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b59f973
add esp, 0x6c
mov eax, edi
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp + 8]
mov esi, dword [esi + 0x80]
test eax, eax
mov dword [esp + 0x2c], eax
setne al
movzx eax, al
mov dword [esp + 0x24], eax
test edi, edi
je 0x6b59e438
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 0x14]
test al, 3
jne 0x6b59e438
test al, 0xc
je 0x6b59e438
mov eax, dword [esp + 0x2c]
test eax, eax
jne 0x6b59f620
mov dword [esp + 0x24], 0
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
mov edi, dword [esp + 0x34]
mov eax, dword [edi + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
test eax, eax
jle 0x6b59e48c
mov eax, dword [edi + 8]
test eax, eax
je 0x6b59e48c
mov edx, dword [esp + 0x2c]
test edx, edx
je 0x6b59f8b0
mov dword [esp + 0x28], esi
mov edi, dword [esp + 0x2c]
xor ebx, ebx
mov esi, dword [esp + 0x34]
jmp 0x6b59e421
mov dword [esp + 4], ebx
mov eax, dword [esi + 8]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_push
test eax, eax
je 0x6b59f720
mov eax, dword [esi + 8]
add ebx, 1
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp ebx, eax
jl 0x6b59e3f8
mov esi, dword [esp + 0x28]
jmp 0x6b59e48c
mov ebx, dword [esp + 0x2c]
test ebx, ebx
je 0x6b59e570
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
test ah, 0x80
jne 0x6b59f490
shr eax, 0x14
xor eax, 1
and eax, 1
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_dup
mov dword [esp + 0x2c], eax
test eax, eax
je 0x6b59f848
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], 1
test ecx, ecx
jne 0x6b59e3b4
mov eax, dword [ebp + 0x10]
mov edx, dword [eax + 0x18]
cmp edx, 0x3fffffff
jg 0x6b59f0a0
lea eax, [edx + 1]
mov dword [esp + 0x3c], eax
shr esi, 0xd
mov eax, dword [esp + 0x24]
and esi, 1
mov edi, esi
test eax, eax
je 0x6b59f988
mov dword [esp + 0x38], 3
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x28], 0
lea esi, [esi]
mov dword [esp + 0x58], 0
test byte [esp + 0x24], 2
jne 0x6b59e630
test byte [esp + 0x24], 1
je 0x6b59e4d0
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov ebx, eax
cmp eax, dword [ebp + 0x4c]
je 0x6b59e588
mov dword [esp + 0x10], 0xc40
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0x6a
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [ebp + 0x60], 1
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_free
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov edx, dword [ebp + 0x50]
mov dword [esp + 4], edx
mov dword [esp], 0
call sym.libcrypto_1_1.dll_X509_get_pubkey_parameters
lea esi, [esi]
xor edi, edi
jmp 0x6b59e33a
or dword [esp + 0x24], 2
mov dword [esp + 0x4c], 0
jmp 0x6b59e478
lea eax, [eax - 1]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [esp + 0x40], eax
test edi, 1
jne 0x6b59ebb0
cmp ebx, dword [esp + 0x3c]
jg 0x6b59ebb0
mov dword [esp + 0x44], edi
xor esi, esi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x30], 0
jmp 0x6b59e5d3
add esi, 1
mov dword [esp], edi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp esi, eax
jge 0x6b59ef50
mov dword [esp + 4], esi
mov dword [esp], edi
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [esp], ebp
mov dword [esp + 8], eax
mov ebx, eax
mov eax, dword [esp + 0x40]
mov dword [esp + 4], eax
call dword [ebp + 0x24]
test eax, eax
je 0x6b59e5d0
mov dword [esp + 8], 0xffffffff
mov dword [esp + 4], ebx
mov dword [esp], ebp
call sym._x509_check_cert_time
test eax, eax
jne 0x6b59f448
mov dword [esp + 0x30], ebx
jmp 0x6b59e5d0
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov ebx, dword [esp + 0x28]
mov esi, eax
mov eax, dword [esp + 0x24]
and eax, 4
cmove ebx, esi
mov dword [esp + 0x40], eax
lea eax, [ebx - 1]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [esp + 0x30], eax
cmp esi, dword [esp + 0x3c]
jg 0x6b59e8b8
mov edx, dword [ebp + 0x50]
mov dword [ebp + 0x50], 0
mov dword [esp + 8], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x44], edx
mov dword [esp + 4], ebp
mov dword [esp], eax
call dword [ebp + 0x20]
mov edx, dword [esp + 0x44]
mov dword [ebp + 0x50], edx
test eax, eax
js 0x6b59ee08
je 0x6b59e8b8
mov eax, dword [esp + 0x40]
test eax, eax
je 0x6b59ecb0
cmp esi, ebx
jle 0x6b59e6bd
test ebx, ebx
jle 0x6b59e6bd
test edi, edi
je 0x6b59ee20
mov dword [esp + 0x10], 0xbcd
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0x6a
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_free
mov dword [ebp + 0x60], 1
mov dword [esp + 0x38], 2
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_free
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp dword [esp + 0x38], 1
mov edx, dword [ebp + 0x50]
jne 0x6b59f779
mov dword [esp], edx
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov dword [esp + 0x34], 0
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x78]
mov dword [esp + 0x2c], 6
test eax, eax
je 0x6b59f428
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x6b59e912
mov dword [esp + 0x30], 0
mov esi, 0xffffffff
xor ebx, ebx
mov dword [esp + 0x24], 0
jmp 0x6b59e834
test eax, eax
je 0x6b59e796
lea ecx, [ebx + 1]
cmp dword [esp + 0x28], ecx
jle 0x6b59eda0
cmp eax, 1
je 0x6b59e7c3
mov dword [ebp + 0x60], 0x18
mov eax, edi
mov dword [ebp + 0x5c], ebx
test edi, edi
je 0x6b59e8a1
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
je 0x6b59e547
mov ecx, dword [esp + 0x2c]
test ecx, ecx
jg 0x6b59eab8
cmp ebx, 1
jle 0x6b59eaa0
mov eax, dword [edi + 0x78]
cmp eax, 0xffffffff
je 0x6b59e7ee
add eax, dword [esp + 0x24]
cmp eax, dword [esp + 0x30]
jl 0x6b59eb80
mov eax, dword [edi + 0x80]
mov ecx, eax
and ecx, 0x20
cmp ecx, 1
adc dword [esp + 0x30], 0
test ah, 4
je 0x6b59e900
mov eax, dword [edi + 0x7c]
cmp eax, 0xffffffff
je 0x6b59e820
cmp eax, dword [esp + 0x24]
jl 0x6b59ed08
mov dword [esp + 0x24], eax
add dword [esp + 0x24], 1
xor esi, esi
add ebx, 1
cmp dword [esp + 0x28], ebx
je 0x6b59e912
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov edi, eax
mov eax, dword [ebp + 0x10]
test byte [eax + 0xc], 0x10
jne 0x6b59e857
test byte [edi + 0x81], 2
jne 0x6b59e8d0
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6b59e86c
test byte [edi + 0x81], 4
jne 0x6b59eb50
mov dword [esp], edi
call sym.libcrypto_1_1.dll_X509_check_ca
cmp esi, 0xffffffff
je 0x6b59eb30
test esi, esi
jne 0x6b59e780
test eax, eax
je 0x6b59e7c3
mov dword [ebp + 0x60], 0x25
mov eax, edi
mov dword [ebp + 0x5c], ebx
test edi, edi
jne 0x6b59e7aa
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
jmp 0x6b59e7aa
mov eax, dword [esp + 0x24]
and eax, 1
test eax, eax
je 0x6b59ebd0
mov eax, dword [ebp + 0x50]
jmp 0x6b59e4ea
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x60], 0x22
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
jne 0x6b59e857
jmp 0x6b59e547
mov esi, 1
add ebx, 1
cmp dword [esp + 0x28], ebx
jne 0x6b59e834
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov esi, eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jle 0x6b59f0b8
test esi, esi
jle 0x6b59f0b8
mov dword [esp + 4], 0
mov eax, dword [ebp + 0x50]
xor edi, edi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov ebx, eax
lea eax, [esi - 1]
mov dword [esp + 0x24], eax
lea esi, [esi]
nop
cmp edi, dword [esp + 0x24]
jl 0x6b59ea00
add edi, 1
cmp esi, edi
je 0x6b59f0b8
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [esp], eax
mov ebx, eax
call sym.libcrypto_1_1.dll_X509_get0_pubkey
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 0x1c]
test edx, edx
jle 0x6b59e958
test eax, eax
je 0x6b59e9c0
mov dword [esp], eax
mov dword [esp + 0x28], edx
call sym.libcrypto_1_1.dll_EVP_PKEY_security_bits
mov edx, dword [esp + 0x28]
mov ecx, 5
cmp edx, 5
cmovg edx, ecx
cmp eax, dword [edx*4 + 0x6b61bdd4]
jge 0x6b59e958
lea esi, [esi]
nop
mov dword [ebp + 0x5c], edi
test ebx, ebx
je 0x6b59f688
mov eax, ebx
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x60], 0x43
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
je 0x6b59e547
cmp edi, dword [esp + 0x24]
jge 0x6b59e962
lea esi, [esi]
nop
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x58], 0xffffffff
mov edx, dword [eax + 0x1c]
test edx, edx
mov dword [esp + 0x28], edx
jle 0x6b59e962
lea eax, [esp + 0x58]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_X509_get_signature_info
test eax, eax
je 0x6b59ea66
mov edx, dword [esp + 0x28]
mov eax, 5
cmp edx, 5
cmovg edx, eax
mov eax, dword [esp + 0x58]
cmp dword [edx*4 + 0x6b61bdd4], eax
jle 0x6b59e962
mov dword [ebp + 0x5c], edi
test ebx, ebx
je 0x6b59f6a0
mov dword [ebp + 0x64], ebx
mov dword [ebp + 0x60], 0x44
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
jne 0x6b59e962
jmp 0x6b59e547
mov eax, dword [edi + 0x80]
test ebx, ebx
je 0x6b59e801
jmp 0x6b59e7f4
cmp dword [ebp + 0x4c], ebx
jg 0x6b59eac9
mov eax, dword [ebp + 0x10]
cmp ecx, dword [eax + 0x10]
je 0x6b59edb8
xor eax, eax
test esi, esi
mov dword [esp], edi
setg al
mov dword [esp + 8], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_check_purpose
test eax, eax
je 0x6b59eafe
cmp eax, 1
je 0x6b59e7cf
mov eax, dword [ebp + 0x10]
test byte [eax + 0xc], 0x20
je 0x6b59e7cf
mov dword [ebp + 0x5c], ebx
mov eax, edi
test edi, edi
je 0x6b59edf0
mov dword [ebp + 0x64], eax
mov dword [ebp + 0x60], 0x1a
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
jne 0x6b59e7cf
jmp 0x6b59e547
mov ecx, dword [ebp + 0x10]
test byte [ecx + 0xc], 0x20
je 0x6b59e7c3
cmp eax, 1
ja 0x6b59e796
jmp 0x6b59e7c3
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x60], 0x28
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
jne 0x6b59e86c
jmp 0x6b59e547
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x60], 0x19
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
jne 0x6b59e7ee
jmp 0x6b59e547
mov ecx, dword [esp + 0x48]
and dword [esp + 0x24], 0xfffffffe
test ecx, ecx
je 0x6b59ecf0
or dword [esp + 0x24], 2
mov eax, dword [ebp + 0x50]
jmp 0x6b59e4d0
test byte [esp + 0x24], 4
je 0x6b59ed70
sub dword [esp + 0x28], 1
mov eax, dword [esp + 0x28]
test eax, eax
jg 0x6b59ebc6
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_free
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x24], eax
cmp eax, ecx
jg 0x6b59ec39
cmp dword [esp + 0x38], 3
jne 0x6b59f978
mov esi, dword [esp + 0x34]
test esi, esi
je 0x6b59f978
mov eax, dword [ebp + 0x4c]
test byte [esi + 0x14], 4
jne 0x6b59f528
cmp dword [esp + 0x24], eax
je 0x6b59f8c9
mov edx, dword [ebp + 0x50]
mov dword [esp], edx
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov ebx, eax
cmp eax, dword [esp + 0x3c]
jg 0x6b59f810
mov eax, dword [esp + 0x34]
test eax, eax
jne 0x6b59f6c0
mov eax, dword [ebp + 0x50]
lea esi, [ebx - 1]
test edi, edi
jne 0x6b59f7c8
cmp ebx, dword [ebp + 0x4c]
jg 0x6b59f880
mov dword [ebp + 0x5c], esi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [ebp + 0x60], 0x14
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
mov edx, dword [ebp + 0x50]
test eax, eax
je 0x6b59e54a
jmp 0x6b59e729
test edi, edi
je 0x6b59eec0
mov eax, dword [ebp + 0x4c]
cmp esi, eax
je 0x6b59ed38
cmp esi, eax
jl 0x6b59ef0b
mov edx, esi
mov eax, ebp
call sym._check_trust
mov dword [esp + 0x38], eax
sub eax, 1
cmp eax, 1
jbe 0x6b59e704
and dword [esp + 0x24], 0xfffffffe
test edi, edi
jne 0x6b59ebd0
lea esi, [esi]
mov edx, dword [esp + 0x24]
test edx, edx
jne 0x6b59ebc6
jmp 0x6b59ebe8
mov dword [ebp + 0x5c], ebx
mov dword [ebp + 0x64], edi
mov dword [ebp + 0x60], 0x26
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
je 0x6b59e547
mov eax, dword [edi + 0x7c]
jmp 0x6b59e81c
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x30]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_cmp
test eax, eax
je 0x6b59f458
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_free
test byte [esp + 0x24], 1
jne 0x6b59e8c7
lea esi, [esi]
nop
mov edx, dword [esp + 0x4c]
test edx, edx
je 0x6b59ebe8
mov eax, dword [ebp + 0x4c]
cmp eax, 1
jle 0x6b59ebe8
sub eax, 1
or dword [esp + 0x24], 4
xor edi, edi
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x50]
jmp 0x6b59e4e3
mov ecx, dword [ebp + 0x10]
test byte [ecx + 0xc], 0x20
je 0x6b59e7c3
jmp 0x6b59e791
mov dword [esp + 8], 4
mov eax, dword [eax + 0x14]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_check_trust
cmp eax, 1
je 0x6b59e7cf
cmp eax, 2
jne 0x6b59eac9
mov dword [ebp + 0x5c], ebx
mov eax, edi
test edi, edi
jne 0x6b59eb0b
nop
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
jmp 0x6b59eb0b
mov dword [ebp + 0x60], 0x46
mov dword [esp + 0x38], 2
jmp 0x6b59e704
and dword [esp + 0x24], 0xfffffffb
mov edi, esi
jmp 0x6b59ee33
mov edx, dword [ebp + 0x50]
mov dword [esp], edx
sub edi, 1
call sym.libcrypto_1_1.dll_OPENSSL_sk_pop
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_free
cmp ebx, edi
jl 0x6b59ee30
lea eax, [esi - 1]
mov edx, ebx
mov ecx, 0
sub edx, eax
cmp ebx, eax
mov ebx, dword [esp + 0x34]
cmovg edx, ecx
lea esi, [edx + eax]
mov dword [ebp + 0x4c], esi
test ebx, ebx
je 0x6b59f090
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
test eax, eax
jle 0x6b59ee8c
mov eax, dword [ebp + 0x4c]
cmp dword [ebx + 0x18], eax
jge 0x6b59f7a0
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
test eax, eax
jle 0x6b59f090
mov eax, dword [esp + 0x34]
mov edx, dword [ebp + 0x50]
mov ecx, dword [ebp + 0x4c]
cmp dword [eax + 0x1c], ecx
jl 0x6b59eec0
mov dword [eax + 0x1c], 0xffffffff
lea esi, [esi]
mov ebx, dword [esp + 0x58]
mov dword [esp], edx
mov dword [esp + 4], ebx
call sym.libcrypto_1_1.dll_OPENSSL_sk_push
mov edi, eax
test eax, eax
je 0x6b59f3d8
mov dword [esp + 8], 0
mov dword [esp + 4], 0xffffffff
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_X509_check_purpose
mov eax, dword [ebx + 0x80]
shr eax, 0xd
and eax, 1
mov edi, eax
mov eax, dword [ebp + 0x4c]
cmp esi, eax
jge 0x6b59ecc7
mov dword [esp + 0x10], 0xc13
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x44
mov dword [esp + 4], 0x6a
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [ebp + 0x60], 1
mov dword [esp + 0x38], 2
jmp 0x6b59e704
mov edi, dword [esp + 0x44]
mov eax, dword [esp + 0x30]
mov dword [esp + 0x58], eax
test eax, eax
je 0x6b59ebb0
mov dword [esp + 4], eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_delete_ptr
mov eax, dword [esp + 0x58]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_push
test eax, eax
je 0x6b59f038
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_up_ref
mov ebx, dword [esp + 0x58]
add dword [ebp + 0x4c], 1
mov dword [esp + 8], 0
mov dword [esp], ebx
mov dword [esp + 4], 0xffffffff
call sym.libcrypto_1_1.dll_X509_check_purpose
mov eax, dword [ebx + 0x80]
mov esi, dword [ebp + 0x4c]
mov edx, dword [ebp + 0x80]
shr eax, 0xd
lea ebx, [esi - 1]
and eax, 1
mov edi, eax
test edx, edx
je 0x6b59f080
mov eax, dword [ebp + 0x50]
test byte [edx + 0x14], 5
je 0x6b59f070
test ebx, ebx
je 0x6b59f070
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov ecx, eax
test eax, eax
je 0x6b59f080
mov edx, dword [ebp + 0x80]
mov eax, dword [ebp + 0x4c]
mov dword [esp], ebx
call sym._dane_match.isra.0
test eax, eax
js 0x6b59f790
je 0x6b59f080
sub esi, 2
mov dword [esp + 0x38], 1
mov dword [ebp + 0x4c], esi
jmp 0x6b59e704
mov dword [esp + 0x10], 0xc58
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x6a
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [ebp + 0x60], 0x11
jmp 0x6b59e530
mov dword [esp + 0x38], 3
jmp 0x6b59e4d0
mov dword [esp + 0x38], 3
mov eax, dword [ebp + 0x50]
jmp 0x6b59e4d0
mov edx, dword [ebp + 0x50]
jmp 0x6b59eec0
mov dword [eax + 0x18], 0x3fffffff
mov dword [esp + 0x3c], 0x40000000
jmp 0x6b59e4a5
mov eax, ebp
call sym._check_id
mov ebx, eax
mov eax, dword [ebp + 0x50]
mov dword [esp], 0
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_get_pubkey_parameters
test ebx, ebx
je 0x6b59e560
mov dword [esp], ebp
call dword [ebp + 0x28]
test eax, eax
je 0x6b59e560
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 4], 0
mov dword [esp + 8], eax
lea eax, [ebp + 0x5c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_chain_check_suiteb
mov ebx, eax
test eax, eax
jne 0x6b59f3a0
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x6b59f678
mov dword [esp], ebp
call eax
test eax, eax
je 0x6b59e560
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
sub eax, 1
js 0x6b59f33d
mov dword [esp + 0x24], eax
mov esi, dword [esp + 0x24]
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [esp + 0x28], eax
mov eax, dword [eax + 0x80]
test esi, esi
je 0x6b59f171
test al, 0x20
jne 0x6b59f32b
test ah, 4
je 0x6b59f27b
mov edi, dword [esp + 0x28]
mov dword [esp], edi
call sym.libcrypto_1_1.dll_X509_get_subject_name
mov dword [esp], edi
mov esi, eax
call sym.libcrypto_1_1.dll_X509_get_issuer_name
mov dword [esp], esi
mov dword [esp + 0x2c], eax
call sym.libcrypto_1_1.dll_X509_NAME_entry_count
lea ecx, [eax - 1]
mov edi, eax
mov dword [esp + 0x30], ecx
test ecx, ecx
jle 0x6b59f250
mov dword [esp], esi
call sym.libcrypto_1_1.dll_X509_NAME_entry_count
mov ebx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_NAME_entry_count
add eax, 1
cmp ebx, eax
jne 0x6b59f250
mov ecx, dword [esp + 0x30]
mov dword [esp], esi
sub edi, 2
mov dword [esp + 4], ecx
call sym.libcrypto_1_1.dll_X509_NAME_get_entry
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_NAME_ENTRY_set
mov dword [esp + 4], edi
mov dword [esp], esi
mov ebx, eax
call sym.libcrypto_1_1.dll_X509_NAME_get_entry
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_NAME_ENTRY_set
cmp ebx, eax
je 0x6b59f250
mov dword [esp], esi
call sym.libcrypto_1_1.dll_X509_NAME_dup
mov ebx, eax
test eax, eax
je 0x6b59f939
mov eax, dword [esp + 0x30]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_NAME_delete_entry
mov dword [esp], eax
mov esi, eax
call sym.libcrypto_1_1.dll_X509_NAME_ENTRY_get_object
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OBJ_obj2nid
cmp eax, 0xd
je 0x6b59f8dd
mov dword [esp], esi
call sym.libcrypto_1_1.dll_X509_NAME_ENTRY_free
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_X509_NAME_free
mov eax, dword [esp + 0x24]
mov dword [ebp + 0x60], 0x48
mov dword [ebp + 0x5c], eax
mov eax, dword [esp + 0x28]
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
je 0x6b59e560
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
lea ebx, [eax - 1]
cmp ebx, dword [esp + 0x24]
jle 0x6b59f32b
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov esi, dword [eax + 0xa4]
test esi, esi
je 0x6b59f31e
mov eax, dword [esp + 0x28]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_NAME_CONSTRAINTS_check
mov edi, dword [esp + 0x24]
or edi, eax
jne 0x6b59f2ea
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0x28]
test al, 0x20
jne 0x6b59f38c
test al, 1
je 0x6b59f4a8
mov eax, dword [esp + 0x28]
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_NAME_CONSTRAINTS_check_CN
test eax, eax
je 0x6b59f31e
cmp eax, 0x11
je 0x6b59e560
mov edx, dword [esp + 0x24]
mov ecx, dword [esp + 0x28]
mov dword [ebp + 0x60], eax
mov dword [ebp + 0x5c], edx
mov dword [ebp + 0x64], ecx
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
je 0x6b59e560
sub ebx, 1
cmp ebx, dword [esp + 0x24]
jg 0x6b59f293
sub dword [esp + 0x24], 1
mov eax, dword [esp + 0x24]
cmp eax, 0xffffffff
jne 0x6b59f148
mov dword [esp], ebp
call sym.libcrypto_1_1.dll_X509v3_asid_validate_path
test eax, eax
je 0x6b59e560
mov dword [esp], ebp
call sym.libcrypto_1_1.dll_X509v3_addr_validate_path
mov edi, eax
test eax, eax
je 0x6b59e560
mov eax, dword [ebp + 0x10]
test byte [eax + 0xc], 0x80
je 0x6b59e33a
mov dword [esp], ebp
call dword [ebp + 0x38]
mov edi, eax
jmp 0x6b59e33a
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_GENERAL_NAMES_free
sub ebx, 1
test ebx, ebx
jg 0x6b59f293
jmp 0x6b59f33d
mov eax, dword [ebp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [ebp + 0x60], ebx
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
test eax, eax
jne 0x6b59f118
xor edi, edi
jmp 0x6b59e33a
mov eax, dword [esp + 0x58]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_free
mov dword [esp + 0x10], 0xbeb
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x6a
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [ebp + 0x60], 0x11
mov dword [esp + 0x38], 2
jmp 0x6b59e704
mov edx, dword [ebp + 0x10]
mov eax, dword [edx + 0xc]
shr eax, 6
and eax, 1
mov dword [esp + 0x34], eax
mov eax, dword [edx + 0x10]
mov dword [esp + 0x2c], eax
jmp 0x6b59e750
mov dword [esp + 0x30], ebx
mov edi, dword [esp + 0x44]
jmp 0x6b59ef54
mov eax, dword [esp + 0x30]
sub esi, 1
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_free
mov eax, dword [esp + 0x58]
mov dword [ebp + 0x4c], esi
mov dword [esp + 4], esi
mov dword [esp + 8], eax
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_set
mov eax, dword [ebp + 0x4c]
jmp 0x6b59ecbf
or dword [esp + 0x24], 2
mov dword [esp + 0x4c], 0
jmp 0x6b59e460
mov eax, dword [esp + 0x28]
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x55
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_get_ext_d2i
mov dword [esp + 0x2c], eax
test eax, eax
je 0x6b59f2da
mov dword [esp + 0x30], esi
mov esi, dword [esp + 0x2c]
jmp 0x6b59f500
mov dword [esp + 4], edi
mov dword [esp], esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
cmp dword [eax], 2
je 0x6b59f380
add edi, 1
mov dword [esp], esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp edi, eax
jl 0x6b59f4e8
mov eax, dword [esp + 0x2c]
mov esi, dword [esp + 0x30]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_GENERAL_NAMES_free
jmp 0x6b59f2da
sub eax, 1
mov ebx, dword [ebp + 0x80]
xor esi, esi
mov dword [esp + 0x30], eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [esp + 0x28], eax
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
test eax, eax
jle 0x6b59f66b
mov dword [esp + 0x2c], ebp
mov dword [esp + 0x38], edi
mov edi, esi
mov esi, eax
lea esi, [esi]
mov dword [esp + 4], edi
mov eax, dword [ebx + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
cmp word [eax], 0x102
mov ebp, eax
jne 0x6b59f658
cmp byte [eax + 2], 0
jne 0x6b59f658
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_verify
test eax, eax
jle 0x6b59f658
mov eax, dword [ebx + 0x10]
mov dword [esp + 0x24], ebp
mov ebp, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_free
mov eax, dword [esp + 0x30]
mov dword [ebx + 0x10], 0
mov dword [ebp + 0x84], 1
mov ecx, dword [esp + 0x24]
mov dword [ebx + 0x18], eax
mov eax, dword [ebp + 0x50]
mov dword [ebx + 0xc], ecx
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov ebx, eax
cmp dword [ebp + 0x4c], eax
jge 0x6b59f613
lea esi, [esi]
mov eax, dword [ebp + 0x50]
sub ebx, 1
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_pop
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_free
cmp ebx, dword [ebp + 0x4c]
jg 0x6b59f5f8
mov edx, dword [ebp + 0x50]
jmp 0x6b59e729
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_dup
mov dword [esp + 0x2c], eax
test eax, eax
je 0x6b59f848
mov dword [esp + 0x24], 1
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
jmp 0x6b59e3b4
add edi, 1
cmp esi, edi
jne 0x6b59f570
mov edi, dword [esp + 0x38]
mov ebp, dword [esp + 0x2c]
mov eax, dword [ebp + 0x4c]
jmp 0x6b59ec2f
mov dword [esp], ebp
call sym._internal_verify
jmp 0x6b59f128
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
jmp 0x6b59e9cd
mov dword [esp + 4], edi
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov ebx, eax
jmp 0x6b59ea71
mov esi, dword [esp + 0x34]
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
test eax, eax
jle 0x6b59ec5c
test byte [esi + 0x14], 3
je 0x6b59f6e8
mov eax, dword [esi + 0x1c]
test eax, eax
js 0x6b59ec5c
sub ebx, 1
mov dword [ebp + 0x5c], ebx
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [ebp + 0x60], 0x41
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
jmp 0x6b59ec9a
mov edi, eax
mov eax, dword [esp + 0x2c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_free
mov dword [esp + 0x10], 0xb76
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x6a
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov eax, dword [ebp + 0x50]
mov dword [ebp + 0x60], 0x11
mov dword [esp], 0
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_get_pubkey_parameters
jmp 0x6b59e33a
cmp dword [esp + 0x38], 2
jne 0x6b59ec3c
jmp 0x6b59e54a
mov dword [esp + 0x38], 2
jmp 0x6b59e704
mov ebx, dword [esp + 0x34]
mov eax, dword [ebx + 0x10]
mov dword [ebx + 0x18], 0xffffffff
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_free
mov dword [ebx + 0x10], 0
jmp 0x6b59ee8c
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov dword [ebp + 0x5c], esi
cmp eax, 1
mov dword [esp + 4], esi
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
je 0x6b59f90a
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [ebp + 0x60], 0x13
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
jmp 0x6b59ec9a
sub ebx, 1
mov dword [ebp + 0x5c], ebx
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [ebp + 0x60], 0x16
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
jmp 0x6b59ec9a
mov dword [esp + 0x10], 0xb5e
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x6a
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [ebp + 0x60], 0x11
jmp 0x6b59e325
mov dword [ebp + 0x5c], esi
mov dword [esp + 4], esi
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [ebp + 0x60], 2
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
jmp 0x6b59ec9a
call sym.libcrypto_1_1.dll_OPENSSL_sk_new_null
mov dword [esp + 0x2c], eax
test eax, eax
je 0x6b59f92c
mov eax, dword [esp + 0x34]
mov eax, dword [eax + 8]
jmp 0x6b59e3e2
mov edx, dword [esp + 0x24]
mov eax, ebp
call sym._check_trust
mov dword [esp + 0x38], eax
jmp 0x6b59e71b
mov eax, dword [esp + 0x2c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_NAME_cmp
mov dword [esp], esi
test eax, eax
jne 0x6b59f243
call sym.libcrypto_1_1.dll_X509_NAME_ENTRY_free
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_X509_NAME_free
jmp 0x6b59f27b
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov dword [ebp + 0x60], 0x12
mov dword [ebp + 0x64], eax
mov dword [esp + 4], ebp
mov dword [esp], 0
call dword [ebp + 0x1c]
jmp 0x6b59ec9a
mov dword [esp + 0x10], 0xb6f
jmp 0x6b59f850
mov dword [esp + 0x10], 0x284
xor edi, edi
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x95
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [ebp + 0x60], 0x11
jmp 0x6b59e33a
call sym.___stack_chk_fail
cmp dword [esp + 0x38], 3
jne 0x6b59ec39
jmp 0x6b59f66b
mov dword [esp + 0x38], 3
jmp 0x6b59ebe8