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

Disassembly:
push ebp
mov ebp, eax
push edi
push esi
push ebx
sub esp, 0x8c
mov eax, dword [esp + 0xa0]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0xa8]
mov dword [esp + 0x68], edx
mov edx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x7c], edx
xor edx, edx
mov dword [esp + 0x6c], eax
mov eax, dword [esp + 0xa4]
mov dword [esp + 0x40], ecx
mov ecx, dword [esp + 0xac]
mov dword [esp + 0x64], eax
mov eax, dword [eax]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x28], eax
mov eax, dword [ebp + 0x64]
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], eax
mov dword [esp + 0x48], 0
mov dword [esp + 0x30], 0
mov dword [esp + 0x44], 0
mov dword [esp + 0x14], 0
lea esi, [esi]
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp dword [esp + 0x14], eax
jge 0x6b59d888
mov eax, dword [esp + 0x14]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x20]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov esi, eax
mov eax, dword [eax + 0x54]
mov edi, eax
and edi, 2
jne 0x6b59d5c0
mov ecx, dword [esp + 0x40]
mov edx, dword [ecx]
mov dword [esp + 0x2c], edx
mov edx, dword [ebp + 0x10]
test byte [edx + 0xd], 0x10
jne 0x6b59d5d0
test al, 0x60
jne 0x6b59d5c0
mov dword [esp], esi
call sym.libcrypto_1_1.dll_X509_CRL_get_issuer
mov ebx, eax
mov eax, dword [esp + 0x3c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_get_issuer_name
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_NAME_cmp
test eax, eax
je 0x6b59d5e8
test byte [esi + 0x54], 0x20
je 0x6b59d5c0
mov dword [esp + 0x18], 0
mov eax, 0x100
test byte [esi + 0x49], 2
cmovne eax, dword [esp + 0x18]
mov edx, esi
xor ecx, ecx
mov ebx, eax
mov eax, ebp
call sym._check_crl_time
mov dword [esp], esi
mov edx, eax
mov eax, ebx
or eax, 0x40
test edx, edx
cmove eax, ebx
mov dword [esp + 0x18], eax
call sym.libcrypto_1_1.dll_X509_CRL_get_issuer
mov edx, dword [ebp + 0x5c]
mov dword [esp + 0x1c], eax
mov eax, dword [ebp + 0x50]
mov dword [esp + 0x24], edx
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov edx, dword [esp + 0x24]
lea ebx, [eax - 1]
cmp edx, ebx
lea eax, [edx + 1]
cmovne ebx, eax
mov dword [esp + 4], ebx
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov edx, eax
mov eax, dword [esi + 0x4c]
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 0x24], edx
call sym.libcrypto_1_1.dll_X509_check_akid
test eax, eax
jne 0x6b59d4ec
test byte [esp + 0x18], 0x20
mov edx, dword [esp + 0x24]
jne 0x6b59dae8
mov dword [esp + 0x24], edi
add ebx, 1
jmp 0x6b59d53f
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 [esp], eax
mov edi, eax
call sym.libcrypto_1_1.dll_X509_get_subject_name
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.libcrypto_1_1.dll_X509_NAME_cmp
test eax, eax
jne 0x6b59d53c
mov eax, dword [esi + 0x4c]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_check_akid
test eax, eax
je 0x6b59d9e0
add ebx, 1
mov eax, dword [ebp + 0x50]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp ebx, eax
jl 0x6b59d4f8
mov eax, dword [ebp + 0x10]
mov edi, dword [esp + 0x24]
test byte [eax + 0xd], 0x10
jne 0x6b59d5a3
jmp 0x6b59d5b2
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
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_get_subject_name
mov ecx, dword [esp + 0x1c]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sym.libcrypto_1_1.dll_X509_NAME_cmp
test eax, eax
jne 0x6b59d5a0
mov eax, dword [esi + 0x4c]
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_check_akid
test eax, eax
je 0x6b59d610
add edi, 1
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp edi, eax
jl 0x6b59d560
test byte [esp + 0x18], 4
jne 0x6b59d619
lea esi, [esi]
add dword [esp + 0x14], 1
jmp 0x6b59d3c8
test al, 0x40
je 0x6b59d600
mov eax, dword [esp + 0x2c]
not eax
test dword [esi + 0x58], eax
jne 0x6b59d421
jmp 0x6b59d5c0
mov dword [esp + 0x18], 0x20
mov eax, 0x120
jmp 0x6b59d462
mov eax, dword [esi + 0x60]
test eax, eax
jne 0x6b59d5c0
jmp 0x6b59d421
or dword [esp + 0x18], 4
mov dword [esp + 0x38], ebx
mov eax, dword [esi + 0x54]
test al, 0x10
jne 0x6b59d801
mov edx, dword [esp + 0x3c]
test byte [edx + 0x80], 0x10
jne 0x6b59d9f0
test al, 8
jne 0x6b59d801
mov eax, dword [esi + 0x58]
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], esi
mov dword [esp + 0x4c], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x50], ebp
mov ebp, dword [esp + 0x3c]
and eax, 0x20
mov dword [esp + 0x54], eax
lea esi, [esi]
nop
mov eax, dword [ebp + 0x9c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp dword [esp + 0x1c], eax
jge 0x6b59db00
mov eax, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x9c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov edi, eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_CRL_get_issuer
mov esi, eax
mov eax, dword [edi + 8]
test eax, eax
jne 0x6b59d6be
jmp 0x6b59da18
mov eax, dword [edi + 8]
add ebx, 1
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp ebx, eax
jge 0x6b59da08
mov dword [esp + 4], ebx
mov eax, dword [edi + 8]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
cmp dword [eax], 4
jne 0x6b59d6b8
mov dword [esp + 4], esi
mov eax, dword [eax + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_NAME_cmp
test eax, eax
jne 0x6b59d6b8
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x50]
test eax, eax
je 0x6b59d7d0
mov esi, dword [eax]
mov eax, dword [edi]
mov ecx, eax
test eax, eax
je 0x6b59d7d0
test esi, esi
je 0x6b59d7d0
cmp dword [eax], 1
je 0x6b59da50
cmp dword [esi], 1
mov dword [esp + 0x34], 0
je 0x6b59dab8
mov dword [esp + 0x5c], edi
mov dword [esp + 0x58], ebp
mov ebp, eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp dword [esp + 0x34], eax
jge 0x6b59da00
mov eax, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 4], eax
mov eax, dword [ebp + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov edi, eax
jmp 0x6b59d796
mov dword [esp + 4], ebx
mov eax, dword [esi + 4]
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_GENERAL_NAME_cmp
test eax, eax
je 0x6b59da30
add ebx, 1
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp ebx, eax
jl 0x6b59d770
add dword [esp + 0x34], 1
jmp 0x6b59d73e
mov eax, dword [esi + 8]
test eax, eax
je 0x6b59da08
mov dword [esp + 4], eax
mov dword [esp], edx
call sym.libcrypto_1_1.dll_X509_NAME_cmp
test eax, eax
jne 0x6b59da08
nop
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x50]
mov ecx, dword [edi + 0xc]
and dword [esp + 0x4c], ecx
mov edx, dword [esp + 0x2c]
mov ecx, dword [esp + 0x4c]
mov eax, edx
not eax
test ecx, eax
je 0x6b59d5c0
or edx, ecx
or dword [esp + 0x18], 0x80
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x18]
cmp dword [esp + 0x28], edx
jg 0x6b59d5c0
jne 0x6b59d860
mov edi, dword [esp + 0x30]
test edi, edi
je 0x6b59d860
mov dword [esp], esi
call sym.libcrypto_1_1.dll_X509_CRL_get0_lastUpdate
mov dword [esp], edi
mov ebx, eax
call sym.libcrypto_1_1.dll_X509_CRL_get0_lastUpdate
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
lea eax, [esp + 0x78]
mov dword [esp + 4], eax
lea eax, [esp + 0x74]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_ASN1_TIME_diff
test eax, eax
je 0x6b59d5c0
mov ebx, dword [esp + 0x74]
test ebx, ebx
jle 0x6b59dad0
lea esi, [esi]
nop
mov eax, dword [esp + 0x38]
mov dword [esp + 0x30], esi
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x44], eax
mov eax, dword [esp + 0x18]
mov dword [esp + 0x28], eax
jmp 0x6b59d5c0
mov esi, dword [esp + 0x30]
test esi, esi
je 0x6b59d9b0
mov edi, dword [esp + 0x68]
mov eax, dword [edi]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_CRL_free
mov eax, dword [esp + 0x6c]
mov edx, dword [esp + 0x48]
mov dword [edi], esi
mov dword [eax], edx
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x28]
mov dword [eax], edx
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
mov dword [eax], edx
mov dword [esp], esi
call sym.libcrypto_1_1.dll_X509_CRL_up_ref
mov edi, dword [esp + 0x60]
mov eax, dword [edi]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_CRL_free
mov eax, dword [ebp + 0x10]
mov dword [edi], 0
test byte [eax + 0xd], 0x20
je 0x6b59d9b0
mov eax, dword [ebp + 0x64]
mov edx, esi
mov eax, dword [eax + 0x80]
or eax, dword [esi + 0x48]
test ah, 0x10
je 0x6b59d9b0
mov edi, dword [esp + 0x20]
mov dword [esp + 0x18], ebp
xor esi, esi
mov ebp, edx
mov dword [esp], edi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp esi, eax
jge 0x6b59d99f
nop
mov dword [esp + 4], esi
mov dword [esp], edi
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov edx, dword [eax + 0x60]
mov ebx, eax
test edx, edx
je 0x6b59d990
mov eax, dword [ebp + 0x5c]
test eax, eax
je 0x6b59d990
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_X509_CRL_get_issuer
mov dword [esp], ebp
mov dword [esp + 0x14], eax
call sym.libcrypto_1_1.dll_X509_CRL_get_issuer
mov edx, dword [esp + 0x14]
mov dword [esp], eax
mov dword [esp + 4], edx
call sym.libcrypto_1_1.dll_X509_NAME_cmp
test eax, eax
jne 0x6b59d990
mov ecx, 0x5a
mov edx, ebp
mov eax, ebx
call sym._crl_extension_match
test eax, eax
je 0x6b59d990
mov ecx, 0x302
mov edx, ebp
mov eax, ebx
call sym._crl_extension_match
test eax, eax
jne 0x6b59db30
lea esi, [esi]
mov dword [esp], edi
add esi, 1
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp esi, eax
jl 0x6b59d920
mov eax, dword [esp + 0x60]
mov dword [eax], 0
lea esi, [esi]
xor eax, eax
cmp dword [esp + 0x28], 0x1bf
setg al
mov ecx, dword [esp + 0x7c]
xor ecx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b59db91
add esp, 0x8c
pop ebx
pop esi
pop edi
pop ebp
ret
or dword [esp + 0x18], 0xc
mov dword [esp + 0x38], edi
jmp 0x6b59d5b2
test al, 4
je 0x6b59d63d
jmp 0x6b59d801
mov ebp, dword [esp + 0x58]
lea esi, [esi]
add dword [esp + 0x1c], 1
jmp 0x6b59d668
mov eax, dword [esp + 0x54]
test eax, eax
jne 0x6b59d6f5
jmp 0x6b59da08
mov eax, dword [esp + 0x58]
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x5c]
mov ebp, dword [esp + 0x50]
mov dword [esp + 0x3c], eax
jmp 0x6b59d7d8
mov eax, dword [eax + 8]
mov edx, eax
test eax, eax
je 0x6b59da08
cmp dword [esi], 1
je 0x6b59d7b0
mov esi, dword [esi + 4]
mov dword [esp + 0x34], edi
xor ebx, ebx
mov edi, edx
jmp 0x6b59da73
add ebx, 1
mov dword [esp], esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
cmp ebx, eax
jge 0x6b59da08
mov dword [esp + 4], ebx
mov dword [esp], esi
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
cmp dword [eax], 4
jne 0x6b59da70
mov eax, dword [eax + 4]
mov dword [esp], edi
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_X509_NAME_cmp
test eax, eax
jne 0x6b59da70
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x34]
mov ebp, dword [esp + 0x50]
jmp 0x6b59d7d8
mov eax, dword [esi + 8]
mov edx, eax
test eax, eax
je 0x6b59da08
mov esi, dword [ecx + 4]
jmp 0x6b59da65
mov ecx, dword [esp + 0x78]
test ecx, ecx
jg 0x6b59d860
jmp 0x6b59d5c0
or dword [esp + 0x18], 0x1c
mov dword [esp + 0x38], edx
jmp 0x6b59d5b2
mov esi, dword [esp + 0x24]
mov ebp, dword [esp + 0x50]
mov eax, dword [esi + 0x50]
test eax, eax
je 0x6b59db19
mov eax, dword [eax]
test eax, eax
jne 0x6b59d801
mov edi, dword [esp + 0x54]
test edi, edi
je 0x6b59d801
jmp 0x6b59d7df
mov eax, dword [ebp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x60]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_ASN1_INTEGER_cmp
test eax, eax
jg 0x6b59d990
mov eax, dword [ebp + 0x5c]
mov dword [esp + 4], eax
mov eax, dword [ebx + 0x5c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_ASN1_INTEGER_cmp
test eax, eax
jle 0x6b59d990
mov ebp, dword [esp + 0x18]
xor ecx, ecx
mov edx, ebx
mov eax, ebp
call sym._check_crl_time
test eax, eax
je 0x6b59db7e
mov eax, dword [esp + 0x64]
or dword [eax], 2
mov dword [esp], ebx
call sym.libcrypto_1_1.dll_X509_CRL_up_ref
mov eax, dword [esp + 0x60]
mov dword [eax], ebx
jmp 0x6b59d9b0
call sym.___stack_chk_fail
lea esi, [esi]
lea esi, [esi]