Function at 0x4edf40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.006499b0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 4
cmp dword [ebp + 8], 0xffffffff
jne 0x4edf95
call fcn.00460b90
push str.BIO_listen
push 0xe5
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push 0
push 0x87
push 0x20
call fcn.00460f10
add esp, 0xc
xor eax, eax
jmp 0x4ee295
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 4]
push ecx
push 0x1008
push 0xffff
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x4edfbb
cmp dword [ebp - 8], 4
je 0x4ee021
call fcn.00460b90
push str.BIO_listen
push 0xec
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push str.calling_getsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00460f10
add esp, 0xc
call fcn.00460b90
push str.BIO_listen
push 0xee
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push 0
push 0x86
push 0x20
call fcn.00460f10
add esp, 0xc
xor eax, eax
jmp 0x4ee295
mov eax, dword [ebp + 0x10]
and eax, 8
neg eax
sbb eax, eax
neg eax
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047f4d0
add esp, 8
test eax, eax
jne 0x4ee045
xor eax, eax
jmp 0x4ee295
mov edx, dword [ebp + 0x10]
and edx, 4
je 0x4ee0d2
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4ee0d2
call fcn.00460b90
push str.BIO_listen
push 0xf8
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00460f10
add esp, 0xc
call fcn.00460b90
push str.BIO_listen
push 0xfa
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push 0
push 0x89
push 0x20
call fcn.00460f10
add esp, 0xc
xor eax, eax
jmp 0x4ee295
mov edx, dword [ebp + 0x10]
and edx, 0x10
je 0x4ee158
push 4
lea eax, [ebp - 0xc]
push eax
push 1
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4ee158
call fcn.00460b90
push str.BIO_listen
push 0x102
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00460f10
add esp, 0xc
call fcn.00460b90
push str.BIO_listen
push 0x104
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push 0
push 0x8a
push 0x20
call fcn.00460f10
add esp, 0xc
xor eax, eax
jmp 0x4ee295
mov edx, dword [ebp + 0xc]
push edx
call fcn.0047ced0
add esp, 4
cmp eax, 0x17
jne 0x4ee1fa
mov eax, dword [ebp + 0x10]
and eax, 2
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push 4
lea ecx, [ebp - 0xc]
push ecx
push 0x1b
push 0x29
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
je 0x4ee1fa
call fcn.00460b90
push str.BIO_listen
push 0x113
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00460f10
add esp, 0xc
call fcn.00460b90
push str.BIO_listen
push 0x115
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push 0
push 0x88
push 0x20
call fcn.00460f10
add esp, 0xc
xor eax, eax
jmp 0x4ee295
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004ede70
add esp, 0xc
test eax, eax
jne 0x4ee216
xor eax, eax
jmp 0x4ee295
cmp dword [ebp - 4], 2
je 0x4ee290
push accept
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x4ee290
call fcn.00460b90
push str.BIO_listen
push 0x11f
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push str.calling_listen__
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push 2
call fcn.00460f10
add esp, 0xc
call fcn.00460b90
push str.BIO_listen
push 0x121
push str.....Srcopenssl_3.0.12crypto_bio_bio_sock2.c
call fcn.00460de0
add esp, 0xc
push 0
push 0x77
push 0x20
call fcn.00460f10
add esp, 0xc
xor eax, eax
jmp 0x4ee295
mov eax, 1
mov esp, ebp
pop ebp
ret