Function at 0x6b430bc0
Capabilities:
Set socket configuration

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [esp + 0x40]
mov dword [esp + 0x20], 1
mov eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
mov dword [esp + 0x2c], eax
xor eax, eax
mov dword [esp + 0x28], 4
mov edi, dword [esp + 0x44]
cmp esi, 0xffffffff
je 0x6b430d40
lea eax, [esp + 0x28]
mov dword [esp + 8], 0x1008
mov dword [esp + 0x10], eax
lea eax, [esp + 0x24]
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0xffff
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_getsockopt]
sub esp, 0x14
mov ebx, eax
test eax, eax
jne 0x6b430c2b
cmp dword [esp + 0x28], 4
je 0x6b430ca0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], 0xdc
xor ebx, ebx
mov dword [esp + 8], eax
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 4], 0xf
mov dword [esp], 2
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [esp + 0x10], 0xdd
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], 0x86
mov dword [esp + 4], 0x8b
mov dword [esp], 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
mov eax, dword [esp + 0x2c]
xor eax, dword [sym.imp.libssp_0.dll___stack_chk_guard]
jne 0x6b430f8f
add esp, 0x30
mov eax, ebx
pop ebx
pop esi
pop edi
ret
mov eax, dword [esp + 0x48]
mov dword [esp], esi
shr eax, 3
and eax, 1
mov dword [esp + 4], eax
call sym.libcrypto_1_1.dll_BIO_socket_nbio
test eax, eax
je 0x6b430c87
test byte [esp + 0x48], 4
jne 0x6b430df0
test byte [esp + 0x48], 0x10
je 0x6b430d00
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 1
mov dword [esp + 4], 6
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
jne 0x6b430f30
mov dword [esp], edi
call sym.libcrypto_1_1.dll_BIO_ADDR_family
cmp eax, 0x17
je 0x6b430e88
mov eax, dword [esp + 0x48]
mov dword [esp + 4], edi
mov dword [esp], esi
mov dword [esp + 8], eax
call sym.libcrypto_1_1.dll_BIO_bind
test eax, eax
je 0x6b430c87
cmp dword [esp + 0x24], 2
jne 0x6b430d78
mov ebx, 1
jmp 0x6b430c87
mov dword [esp + 0x10], 0xd5
xor ebx, ebx
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], 0x87
mov dword [esp + 4], 0x8b
mov dword [esp], 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b430c87
mov dword [esp + 4], 0x7fffffff
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_listen]
sub esp, 8
cmp eax, 0xffffffff
jne 0x6b430d34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], 0x10a
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], eax
mov dword [esp + 4], 7
mov dword [esp], 2
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [esp + 0x10], 0x10b
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], 0x77
mov dword [esp + 4], 0x8b
mov dword [esp], 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b430c87
lea eax, [esp + 0x20]
mov dword [esp + 0x10], 4
mov dword [esp + 0xc], eax
mov dword [esp + 8], 8
mov dword [esp + 4], 0xffff
mov dword [esp], esi
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
je 0x6b430cc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], 0xe7
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], eax
mov dword [esp + 4], 0xe
mov dword [esp], 2
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [esp + 0x10], 0xe8
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], 0x89
mov dword [esp + 4], 0x8b
mov dword [esp], 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b430c87
mov eax, dword [esp + 0x48]
mov dword [esp + 0x10], 4
mov dword [esp + 8], 0x1b
sar eax, 1
mov dword [esp + 4], 0x29
and eax, 1
mov dword [esp], esi
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
mov dword [esp + 0xc], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
sub esp, 0x14
test eax, eax
je 0x6b430d11
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], 0xff
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], eax
mov dword [esp + 4], 0xe
mov dword [esp], 2
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [esp + 0x10], 0x100
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], 0x88
mov dword [esp + 4], 0x8b
mov dword [esp], 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b430c87
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [esp + 0x10], 0xf0
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], eax
mov dword [esp + 4], 0xe
mov dword [esp], 2
call sym.libcrypto_1_1.dll_ERR_put_error
mov dword [esp + 0x10], 0xf1
mov dword [esp + 0xc], str.crypto_bio_b_sock2.c
mov dword [esp + 8], 0x8a
mov dword [esp + 4], 0x8b
mov dword [esp], 0x20
call sym.libcrypto_1_1.dll_ERR_put_error
jmp 0x6b430c87
call sym.___stack_chk_fail
lea esi, [esi]
lea esi, [esi]
nop