Function at 0x5d39f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xc
call fcn.004d28e0
mov dword [ebp - 0xc], 1
mov dword [ebp - 8], 4
cmp dword [ebp + 8], 0xffffffff
jne 0x5d3a45
call fcn.0052db80
push str.BIO_listen
push 0xe7
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x87
push 0x20
call fcn.0052df00
add esp, 0xc
xor eax, eax
jmp 0x5d3d45
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.WSOCK32.dll_getsockopt]
test eax, eax
jne 0x5d3a6b
cmp dword [ebp - 8], 4
je 0x5d3ad1
call fcn.0052db80
push str.BIO_listen
push 0xee
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push str.calling_getsockopt__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.0052df00
add esp, 0xc
call fcn.0052db80
push str.BIO_listen
push 0xf0
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x86
push 0x20
call fcn.0052df00
add esp, 0xc
xor eax, eax
jmp 0x5d3d45
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.00582c20
add esp, 8
test eax, eax
jne 0x5d3af5
xor eax, eax
jmp 0x5d3d45
mov edx, dword [ebp + 0x10]
and edx, 4
je 0x5d3b82
push 4
lea eax, [ebp - 0xc]
push eax
push 8
push 0xffff
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x5d3b82
call fcn.0052db80
push str.BIO_listen
push 0xfa
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.0052df00
add esp, 0xc
call fcn.0052db80
push str.BIO_listen
push 0xfc
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x89
push 0x20
call fcn.0052df00
add esp, 0xc
xor eax, eax
jmp 0x5d3d45
mov edx, dword [ebp + 0x10]
and edx, 0x10
je 0x5d3c08
push 4
lea eax, [ebp - 0xc]
push eax
push 1
push 6
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
test eax, eax
je 0x5d3c08
call fcn.0052db80
push str.BIO_listen
push 0x104
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.0052df00
add esp, 0xc
call fcn.0052db80
push str.BIO_listen
push 0x106
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x8a
push 0x20
call fcn.0052df00
add esp, 0xc
xor eax, eax
jmp 0x5d3d45
mov edx, dword [ebp + 0xc]
push edx
call fcn.005762d0
add esp, 4
cmp eax, 0x17
jne 0x5d3caa
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.WSOCK32.dll_setsockopt]
test eax, eax
je 0x5d3caa
call fcn.0052db80
push str.BIO_listen
push 0x115
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push str.calling_setsockopt__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.0052df00
add esp, 0xc
call fcn.0052db80
push str.BIO_listen
push 0x117
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x88
push 0x20
call fcn.0052df00
add esp, 0xc
xor eax, eax
jmp 0x5d3d45
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005d3920
add esp, 0xc
test eax, eax
jne 0x5d3cc6
xor eax, eax
jmp 0x5d3d45
cmp dword [ebp - 4], 2
je 0x5d3d40
push bind
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_listen]
cmp eax, 0xffffffff
jne 0x5d3d40
call fcn.0052db80
push str.BIO_listen
push 0x121
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push str.calling_listen__
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
push 2
call fcn.0052df00
add esp, 0xc
call fcn.0052db80
push str.BIO_listen
push 0x123
push str.crypto_bio_bio_sock2.c
call fcn.0052ddd0
add esp, 0xc
push 0
push 0x77
push 0x20
call fcn.0052df00
add esp, 0xc
xor eax, eax
jmp 0x5d3d45
mov eax, 1
mov esp, ebp
pop ebp
ret