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

Disassembly:
push ebp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0xac
mov ebx, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x9c], ebx
xor ebx, ebx
cmp dword [esp + 0xc0], 1
mov dword [esp + 0x4c], ecx
sbb ebx, ebx
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x54], 0
not ebx
add ebx, 2
cmp dword [esp + 0xc0], 1
sbb edx, edx
and edx, 5
add edx, 5
cmp dword [esp + 0xc0], eax
cmovge edx, ebx
mov dword [esp + 0x2c], edx
test ecx, ecx
js 0x6b59bec2
and edx, 0xfffffffc
mov dword [esp + 0x2c], edx
mov eax, dword [esp + 0x2c]
test dword [esi + 0x14], eax
jne 0x6b59bf20
mov dword [esp + 0x34], 0
xor ecx, ecx
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 0xa8c
mov dword [esp + 4], str.crypto_x509_x509_vfy.c
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call sym.libcrypto_1_1.dll_CRYPTO_free
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x9c]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b59c273
add esp, 0xac
mov eax, ecx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esi + 4]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_num
mov dword [esp + 0x3c], eax
test eax, eax
jle 0x6b59becb
mov dword [esp + 0x44], 0
mov ebp, 0x100
xor ebx, ebx
mov dword [esp + 0x48], 0
mov dword [esp + 0x28], 0x100
mov dword [esp + 0x40], 0x100
mov dword [esp + 0x34], 0
mov dword [esp + 0x38], 0x100
lea esi, [esi]
mov eax, dword [esi + 4]
mov dword [esp + 4], ebx
mov dword [esp], eax
call sym.libcrypto_1_1.dll_OPENSSL_sk_value
mov ecx, dword [esp + 0x2c]
movzx edx, byte [eax]
mov edi, eax
bt ecx, edx
jae 0x6b59c048
cmp edx, ebp
je 0x6b59bfae
mov ecx, dword [esi]
movzx eax, byte [edi + 2]
mov dword [esp + 0x28], 0x100
mov ecx, dword [ecx + 4]
movzx eax, byte [ecx + eax]
mov dword [esp + 0x40], eax
movzx ebp, byte [edi + 1]
mov eax, ebp
mov byte [esp + 0x30], al
cmp ebp, dword [esp + 0x38]
je 0x6b59c060
mov eax, dword [esp + 0x34]
mov dword [esp + 8], 0xa4f
mov dword [esp + 4], str.crypto_x509_x509_vfy.c
mov dword [esp], eax
mov dword [esp + 0x28], edx
call sym.libcrypto_1_1.dll_CRYPTO_free
movzx eax, byte [esp + 0x30]
mov edx, dword [esp + 0x28]
mov dword [esp + 0x58], 0
test al, al
je 0x6b59c1f0
cmp al, 1
je 0x6b59c110
mov dword [esp + 0x10], 0x9f2
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x85
mov dword [esp + 4], 0x6b
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov ecx, 0xffffffff
jmp 0x6b59bef9
mov ebp, edx
lea esi, [esi]
add ebx, 1
cmp dword [esp + 0x3c], ebx
jne 0x6b59bf70
xor ecx, ecx
jmp 0x6b59bed5
movzx ecx, byte [edi + 2]
test cl, cl
je 0x6b59c077
mov eax, dword [esi]
mov eax, dword [eax + 4]
movzx eax, byte [eax + ecx]
cmp eax, dword [esp + 0x40]
jb 0x6b59c040
cmp dword [esp + 0x28], ecx
jne 0x6b59c250
mov eax, dword [esp + 0x54]
mov ebp, edx
cmp eax, dword [edi + 8]
jne 0x6b59c048
mov dword [esp + 8], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x30], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x48]
mov dword [esp], eax
call sym._memcmp
mov edx, dword [esp + 0x30]
test eax, eax
jne 0x6b59c048
mov ecx, eax
mov eax, 0xc
bt eax, edx
jb 0x6b59c269
mov eax, dword [esi + 0x18]
test eax, eax
jns 0x6b59bed5
mov eax, dword [esp + 0xc0]
mov dword [esi + 0xc], edi
mov dword [esp + 8], 0xa83
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 4], str.crypto_x509_x509_vfy.c
mov dword [esp], eax
mov dword [esp + 0x28], ecx
call sym.libcrypto_1_1.dll_CRYPTO_free
mov eax, dword [esp + 0x4c]
mov dword [esi + 0x10], eax
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_up_ref
mov ecx, dword [esp + 0x28]
jmp 0x6b59bed5
mov eax, dword [esp + 0x4c]
mov dword [esp + 0x28], edx
mov dword [esp], eax
call sym.libcrypto_1_1.dll_X509_get_X509_PUBKEY
lea ecx, [esp + 0x58]
mov dword [esp + 4], ecx
mov dword [esp], eax
call sym.libcrypto_1_1.dll_i2d_X509_PUBKEY
mov edx, dword [esp + 0x28]
test eax, eax
js 0x6b59c214
mov ecx, dword [esp + 0x58]
mov dword [esp + 0x34], ecx
test ecx, ecx
je 0x6b59c214
mov ecx, dword [esi]
mov dword [esp + 0x44], eax
mov dword [esp + 0x38], ebp
mov dword [esp + 0x30], ecx
movzx ecx, byte [edi + 2]
mov eax, ecx
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x30]
mov ecx, dword [ecx + 4]
movzx eax, byte [ecx + eax]
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x28]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
mov ecx, dword [esp + 0x44]
mov dword [esp + 0x54], ecx
test eax, eax
je 0x6b59c1e0
mov dword [esp + 0x10], eax
lea eax, [esp + 0x54]
mov dword [esp + 0xc], eax
lea eax, [esp + 0x5c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x14], 0
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 0x30], edx
call sym.libcrypto_1_1.dll_EVP_Digest
test eax, eax
je 0x6b59c25f
lea edx, [esp + 0x5c]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x48], edx
mov edx, dword [esp + 0x30]
jmp 0x6b59c085
mov eax, ecx
mov ecx, dword [esp + 0x34]
mov dword [esp + 0x48], ecx
jmp 0x6b59c085
lea eax, [esp + 0x58]
mov dword [esp + 0x28], edx
mov dword [esp + 4], eax
mov eax, dword [esp + 0x4c]
mov dword [esp], eax
call sym.libcrypto_1_1.dll_i2d_X509
mov edx, dword [esp + 0x28]
test eax, eax
jns 0x6b59c13c
mov dword [esp + 0x10], 0x9f7
mov dword [esp + 0xc], str.crypto_x509_x509_vfy.c
mov dword [esp + 8], 0x41
mov dword [esp + 4], 0x6b
mov dword [esp], 0xb
call sym.libcrypto_1_1.dll_ERR_put_error
mov ecx, 0xffffffff
jmp 0x6b59bef9
mov eax, dword [esi]
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], eax
jmp 0x6b59c173
mov ecx, 0xffffffff
jmp 0x6b59bed5
mov ecx, 1
jmp 0x6b59c0ca
call sym.___stack_chk_fail
lea esi, [esi]
nop