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

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [esp + 0x80]
mov edi, dword [esp + 0x7c]
mov ebx, dword [esp + 0x70]
mov dword [esp + 0x48], 0
mov dword [esp + 0x4c], 0
test esi, esi
sete dl
test edi, edi
sete al
or dl, al
jne 0x4bd5b2
mov ecx, dword [esp + 0x78]
test ecx, ecx
je 0x4bd5b2
mov esi, dword [esp + 0x80]
mov ecx, 0xd
mov edi, str.SUITEB128ONLY
mov eax, dword [esp + 0x84]
repe cmpsb byte [esi], byte es:[edi]
mov eax, dword [eax + 0x10]
seta cl
setb dl
cmp cl, dl
jne 0x4bd4d4
mov esi, dword [esp + 0x84]
and eax, 0xfffcffff
or eax, 0x10000
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x64]
test byte [eax + 0x30], 0x10
jne 0x4bde52
mov dword [esp + 0x10], 0x4e2
mov dword [esp + 0xc], str.ssl_ssl_ciph.c
xor esi, esi
mov dword [esp + 8], 0x9e
mov dword [esp + 4], 0x14b
mov dword [esp], 0x14
call sym._ERR_put_error
add esp, 0x5c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x80]
mov edi, str.SUITEB128C2
mov ecx, 0xb
repe cmpsb byte [esi], byte es:[edi]
je 0x4bd5c0
mov esi, dword [esp + 0x80]
mov edi, str.SUITEB128
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
jne 0x4bdd90
mov esi, dword [esp + 0x84]
or eax, 0x30000
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x64]
test byte [eax + 0x30], 0x10
je 0x4bd49c
mov dword [esp + 0x80], str.ECDHE_ECDSA_AES128_GCM_SHA256:ECDHE_ECDSA_AES256_GCM_SHA384
jmp 0x4bd5e7
mov eax, dword [esp + 0x84]
lea ecx, [esp + 0x4c]
mov edx, ebp
add eax, 0x104
mov dword [esp + 4], eax
mov eax, dword [esp + 0x28]
mov dword [esp], eax
mov eax, 0x807c94
call sym._ssl_cipher_process_rulestr.isra.3
mov esi, dword [esp + 0x80]
cmp byte [esi + 7], 0x3a
je 0x4bddf5
add dword [esp + 0x80], 7
test eax, eax
jne 0x4bdc1d
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0x62f
mov dword [esp + 4], str.ssl_ssl_ciph.c
mov dword [esp], eax
call sym._CRYPTO_free
mov dword [esp + 8], 0x632
mov eax, dword [esp + 0x30]
mov dword [esp + 4], str.ssl_ssl_ciph.c
mov dword [esp], eax
call sym._CRYPTO_free
xor esi, esi
add esp, 0x5c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
or eax, 0x30000
mov esi, dword [esp + 0x84]
mov dword [esi + 0x10], eax
mov eax, dword [ebx + 0x64]
test byte [eax + 0x30], 0x10
je 0x4bd49c
mov dword [esp + 0x80], str.ECDHE_ECDSA_AES256_GCM_SHA384
mov eax, dword [0x945a04]
mov dword [esp + 0x24], eax
mov eax, dword [0x945a00]
mov dword [esp + 0x2c], eax
mov eax, dword [0x945a0c]
mov dword [esp + 0x34], eax
mov eax, dword [0x945a08]
mov dword [esp + 0x38], eax
call dword [ebx + 0x58]
mov dword [esp + 0x3c], eax
mov ebp, eax
lea eax, [eax + eax*4]
mov dword [esp + 8], 0x5a3
mov dword [esp + 4], str.ssl_ssl_ciph.c
shl eax, 2
mov dword [esp], eax
call sym._CRYPTO_malloc
test eax, eax
mov dword [esp + 0x30], eax
je 0x4bde7f
xor esi, esi
xor edi, edi
test ebp, ebp
jle 0x4bd72e
mov ebp, dword [esp + 0x3c]
nop
mov dword [esp], edi
call dword [ebx + 0x5c]
test eax, eax
je 0x4bd6c0
mov edx, dword [eax]
test edx, edx
je 0x4bd6c0
mov edx, dword [esp + 0x24]
test dword [eax + 0x10], edx
jne 0x4bd6c0
mov edx, dword [esp + 0x2c]
test dword [eax + 0x14], edx
jne 0x4bd6c0
mov edx, dword [esp + 0x34]
test dword [eax + 0x18], edx
jne 0x4bd6c0
mov edx, dword [esp + 0x38]
test dword [eax + 0x1c], edx
jne 0x4bd6c0
mov ecx, dword [ebx + 0x64]
test byte [ecx + 0x30], 8
je 0x4bdd30
mov edx, dword [eax + 0x28]
test edx, edx
je 0x4bd6c0
mov edx, dword [esp + 0x30]
lea ecx, [esi + esi*4]
add esi, 1
lea ecx, [edx + ecx*4]
mov dword [ecx], eax
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 4], 0
lea esi, [esi]
add edi, 1
cmp ebp, edi
jne 0x4bd650
test esi, esi
je 0x4bd72e
mov eax, dword [esp + 0x30]
lea ecx, [esi + esi*4]
shl ecx, 2
cmp esi, 1
mov dword [eax + 0x10], 0
mov edi, eax
lea ebx, [eax + ecx - 0x14]
je 0x4bd71f
lea eax, [eax + 0x14]
cmp esi, 2
mov dword [edi + 0xc], eax
je 0x4bd710
lea esi, [edi + ecx - 0x28]
mov eax, edi
nop
lea esi, [esi]
lea edx, [eax + 0x28]
mov dword [eax + 0x24], eax
add eax, 0x14
mov dword [eax + 0xc], edx
cmp esi, eax
jne 0x4bd700
mov eax, dword [esp + 0x30]
lea eax, [eax + ecx - 0x28]
mov dword [ebx + 0x10], eax
mov eax, dword [esp + 0x30]
mov dword [ebx + 0xc], 0
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ebx
lea ebp, [esp + 0x48]
lea eax, [esp + 0x4c]
xor ecx, ecx
mov edx, 8
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 8], 1
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebp
mov eax, 4
mov dword [esp + 4], 0
mov dword [esp], 0
xor edi, edi
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 1
mov eax, 4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 3
mov eax, 4
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor edx, edx
mov ecx, 0x3000
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 1
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor edx, edx
mov ecx, 0x80000
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 1
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
mov ecx, 0x3c0c0
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 1
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
mov esi, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
mov eax, esi
mov ebx, ecx
mov dword [esp + 0x28], esi
test eax, eax
je 0x4bd8f4
cmp ecx, edi
je 0x4bd8f4
mov esi, dword [eax + 4]
mov edx, dword [eax + 0xc]
test esi, esi
jne 0x4bd8ec
cmp eax, ebx
je 0x4bd8e5
mov esi, dword [esp + 0x28]
mov edi, dword [eax + 0x10]
cmp eax, esi
cmove esi, edx
test edi, edi
mov dword [esp + 0x28], esi
mov esi, edx
je 0x4bd8cf
mov dword [edi + 0xc], edx
mov esi, dword [eax + 0xc]
test esi, esi
je 0x4bd8d6
mov dword [esi + 0x10], edi
mov dword [ebx + 0xc], eax
mov dword [eax + 0x10], ebx
mov ebx, eax
mov dword [eax + 0xc], 0
mov dword [eax + 4], 1
mov edi, eax
mov eax, edx
test eax, eax
jne 0x4bd8a1
mov esi, dword [esp + 0x28]
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 1
mov dword [esp + 0x48], esi
mov dword [esp + 0x4c], ebx
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
mov edx, 4
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 4
mov eax, 1
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 4
mov eax, 8
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor edx, edx
mov ecx, 4
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 4
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea edx, [esp + 0x4c]
mov eax, ebp
call sym._ssl_cipher_strength_sort
test eax, eax
je 0x4bde62
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 6
xor eax, eax
mov dword [esp + 4], 0x303
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 6
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0x40
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 6
mov eax, 6
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 6
mov eax, 6
mov dword [esp + 4], 0
mov dword [esp], 0x40
call sym._ssl_cipher_apply_rule.constprop.5
lea eax, [esp + 0x4c]
xor ecx, ecx
xor edx, edx
mov dword [esp + 0x10], ebp
mov dword [esp + 0xc], 0xffffffff
mov dword [esp + 0x14], eax
mov dword [esp + 8], 3
xor eax, eax
mov dword [esp + 4], 0
mov dword [esp], 0
call sym._ssl_cipher_apply_rule.constprop.5
mov eax, dword [esp + 0x3c]
mov dword [esp + 8], 0x614
mov dword [esp + 4], str.ssl_ssl_ciph.c
lea eax, [eax*4 + 0x134]
mov dword [esp], eax
call sym._CRYPTO_malloc
test eax, eax
mov dword [esp + 0x28], eax
je 0x4bdeb2
mov esi, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
not esi
not edi
mov dword [esp + 0x24], esi
mov esi, dword [esp + 0x34]
test eax, eax
not esi
mov dword [esp + 0x2c], esi
mov esi, dword [esp + 0x38]
not esi
mov dword [esp + 0x34], esi
je 0x4bdbaf
mov ecx, dword [eax]
mov eax, dword [eax + 0xc]
add edx, 4
mov dword [edx - 4], ecx
test eax, eax
jne 0x4bdba0
mov eax, 0x808040
mov esi, 0x809340
lea esi, [esi]
mov ecx, dword [eax + 0x10]
mov ebx, dword [eax + 0x14]
test ecx, ecx
je 0x4bdbce
test edi, ecx
je 0x4bdbf7
test ebx, ebx
je 0x4bdbd8
test dword [esp + 0x24], ebx
je 0x4bdbf7
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x4bdbe5
test dword [esp + 0x2c], ecx
je 0x4bdbf7
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4bdbf2
test dword [esp + 0x34], ecx
je 0x4bdbf7
mov dword [edx], eax
add edx, 4
add eax, 0x40
cmp esi, eax
jne 0x4bdbc0
mov esi, dword [esp + 0x80]
mov dword [edx], 0
mov edi, str.DEFAULT
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
je 0x4bd532
mov eax, dword [esp + 0x80]
cmp byte [eax], 0
jne 0x4bde02
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0x62f
mov dword [esp + 4], str.ssl_ssl_ciph.c
mov dword [esp], eax
call sym._CRYPTO_free
call sym._OPENSSL_sk_new_null
xor ebx, ebx
test eax, eax
mov esi, eax
mov edi, dword [esp + 0x74]
jne 0x4bdc83
jmp 0x4bded8
mov dword [esp + 4], ebx
mov dword [esp], edi
call sym._OPENSSL_sk_value
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._OPENSSL_sk_push
test eax, eax
je 0x4bdd1a
add ebx, 1
mov dword [esp], edi
call sym._OPENSSL_sk_num
cmp ebx, eax
jl 0x4bdc60
mov ebx, dword [esp + 0x48]
test ebx, ebx
jne 0x4bdca7
jmp 0x4bdcf0
mov ebx, dword [ebx + 0xc]
test ebx, ebx
je 0x4bdcf0
mov eax, dword [ebx + 4]
test eax, eax
je 0x4bdca0
mov eax, dword [ebx]
mov dword [esp], esi
mov dword [esp + 4], eax
call sym._OPENSSL_sk_push
test eax, eax
jne 0x4bdca0
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x64f
mov dword [esp + 4], str.ssl_ssl_ciph.c
mov dword [esp], eax
call sym._CRYPTO_free
mov dword [esp], esi
xor esi, esi
call sym._OPENSSL_sk_free
jmp 0x4bd4ca
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x658
mov dword [esp + 4], str.ssl_ssl_ciph.c
mov dword [esp], eax
call sym._CRYPTO_free
mov dword [esp], esi
call sym._OPENSSL_sk_dup
test eax, eax
mov ebx, eax
jne 0x4bdd40
mov dword [esp], esi
xor esi, esi
call sym._OPENSSL_sk_free
add esp, 0x5c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov ecx, dword [eax + 0x20]
test ecx, ecx
jne 0x4bd698
jmp 0x4bd6c0
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov dword [esp], eax
call sym._OPENSSL_sk_free
mov eax, dword [esp + 0x7c]
mov dword [eax], ebx
mov dword [esp], ebx
mov dword [esp + 4], sym._ssl_cipher_ptr_id_cmp
call sym._OPENSSL_sk_set_cmp_func
mov eax, dword [esp + 0x7c]
mov eax, dword [eax]
mov dword [esp], eax
call sym._OPENSSL_sk_sort
mov eax, dword [esp + 0x78]
mov eax, dword [eax]
mov dword [esp], eax
call sym._OPENSSL_sk_free
mov eax, dword [esp + 0x78]
mov dword [eax], esi
add esp, 0x5c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x80]
mov edi, str.SUITEB192
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
je 0x4bde70
and eax, 0x30000
je 0x4bd5e7
mov edx, dword [ebx + 0x64]
test byte [edx + 0x30], 0x10
je 0x4bd49c
cmp eax, 0x20000
je 0x4bd5dc
cmp eax, 0x30000
je 0x4bd522
cmp eax, 0x10000
mov eax, str.ECDHE_ECDSA_AES128_GCM_SHA256
cmovne eax, dword [esp + 0x80]
mov dword [esp + 0x80], eax
jmp 0x4bd5e7
add dword [esp + 0x80], 8
jmp 0x4bd572
mov eax, dword [esp + 0x84]
mov esi, dword [esp + 0x28]
lea ecx, [esp + 0x4c]
mov edx, ebp
add eax, 0x104
mov dword [esp], esi
mov dword [esp + 4], eax
mov eax, dword [esp + 0x80]
call sym._ssl_cipher_process_rulestr.isra.3
mov dword [esp + 8], 0x62f
mov ebx, eax
mov dword [esp + 4], str.ssl_ssl_ciph.c
mov dword [esp], esi
call sym._CRYPTO_free
test ebx, ebx
jne 0x4bdc49
jmp 0x4bd596
mov dword [esp + 0x80], str.ECDHE_ECDSA_AES128_GCM_SHA256
jmp 0x4bd5e7
mov dword [esp + 8], 0x5e8
jmp 0x4bd59e
and eax, 0xfffcffff
or eax, 0x20000
jmp 0x4bd5c5
mov dword [esp + 0x10], 0x5a5
mov dword [esp + 0xc], str.ssl_ssl_ciph.c
mov dword [esp + 8], 0x41
xor esi, esi
mov dword [esp + 4], 0xa6
mov dword [esp], 0x14
call sym._ERR_put_error
jmp 0x4bd5b4
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x616
mov dword [esp + 4], str.ssl_ssl_ciph.c
mov dword [esp], eax
call sym._CRYPTO_free
mov dword [esp + 0x10], 0x617
jmp 0x4bde87
mov eax, dword [esp + 0x30]
mov dword [esp + 8], 0x63b
mov dword [esp + 4], str.ssl_ssl_ciph.c
mov dword [esp], eax
call sym._CRYPTO_free
jmp 0x4bd4ca