Function at 0x140006950
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov eax, dword [rdx + 0x10]
mov rdi, rdx
mov rbx, rcx
mov dword [rcx + 0x10], eax
cmp eax, 1
jne 0x14000697a
mov eax, dword [rdx]
mov dword [rcx], eax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp eax, 3
jne 0x140006990
mov rax, qword [rdx]
mov qword [rcx], rax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
sub eax, 2
cmp eax, 0xd
ja case.0x1400069ab.3
lea rdx, sym.MZ_r_.BWcxCKf_L6rV9f_m_SDbP_t0wTtS__djOQij__
cdqe
mov ecx, dword [rdx + rax*4 + 0x6a30]
add rcx, rdx
jmp rcx
mov ecx, reloc.OLEAUT32.dll_RegisterActiveObject
call fcn.14002652c
test rax, rax
je 0x1400069e0
mov rdx, qword [rdi + 8]
mov rcx, qword [rdx]
mov qword [rax], rcx
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rdx + 0x10]
mov qword [rax + 0x10], rcx
mov rcx, qword [rdx + 0x18]
mov qword [rax + 0x18], rcx
inc dword [rcx]
mov qword [rbx + 8], rax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
movzx eax, byte [rdi]
mov byte [rbx], al
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, 8
call fcn.14002652c
test rax, rax
je 0x140006a29
mov rdx, qword [rdi]
mov rcx, rax
call fcn.14000614c
mov qword [rbx], rax
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
xor eax, eax
jmp 0x140006a19
mov rax, qword [rdi]
mov qword [rbx], rax
jmp case.0x1400069ab.3
cmp qword [rdi], 0
je case.0x1400069ab.3
mov ecx, reloc.OLEAUT32.dll_SafeArrayGetElement
call fcn.14002652c
mov rcx, rax
mov qword [rbx], rax
call qword [sym.imp.OLEAUT32.dll_VariantClear]
mov rdx, qword [rdi]
mov rcx, qword [rbx]
call qword [sym.imp.WSOCK32.dll_inet_addr]
test eax, eax
jns case.0x1400069ab.3
mov rcx, qword [rbx]
call qword [sym.imp.WSOCK32.dll_htons]
mov rcx, qword [rbx]
call fcn.140024cec
nop
jmp 0x140006a29
mov ecx, SafeArrayCreateEx
call fcn.14002652c
mov r8, rax
test rax, rax
je 0x140045061
mov rdx, qword [rdi]
mov ecx, dword [rdx]
mov dword [rax], ecx
mov ecx, dword [rdx + 4]
mov dword [rax + 4], ecx
mov rcx, qword [rdx + 8]
mov qword [rax + 8], rcx
mov rcx, qword [rdx + 0x10]
mov qword [rax + 0x10], rcx
mov rax, qword [rdx + 0x18]
mov qword [r8 + 0x18], rax
mov rax, qword [rdx + 0x20]
mov qword [r8 + 0x20], rax
inc dword [rax]
jmp 0x140045064
mov r8, rax
mov qword [rbx], r8
jmp case.0x1400069ab.3
mov ecx, reloc.WSOCK32.dll_recv
call fcn.14002652c
mov qword [rbx], rax
mov rcx, qword [rdi]
mov edx, dword [rcx]
mov dword [rax], edx
mov rax, qword [rbx]
movsxd rcx, dword [rax]
test ecx, ecx
je 0x1400450b2
call fcn.14002652c
mov rcx, qword [rbx]
mov qword [rcx + 8], rax
mov rcx, qword [rbx]
mov rdx, qword [rdi]
movsxd r8, dword [rcx]
mov rcx, qword [rcx + 8]
mov rdx, qword [rdx + 8]
call fcn.1400265f0
nop
jmp case.0x1400069ab.3
mov ecx, 1
call fcn.14002652c
mov rcx, qword [rbx]
mov qword [rcx + 8], rax
mov rax, qword [rbx]
mov rcx, qword [rax + 8]
mov byte [rcx], 0
jmp case.0x1400069ab.3
mov ecx, SafeArrayCreateEx
call fcn.14002652c
test rax, rax
je 0x140006a29
mov rdx, qword [rdi]
mov rcx, rax
call fcn.140075de4
nop
jmp 0x140006a19
mov ecx, SafeArrayCreateEx
call fcn.14002652c
test rax, rax
je 0x140006a29
mov rdx, qword [rdi]
mov rcx, rax
call fcn.140070d2c
nop
jmp 0x140006a19
mov ecx, SafeArrayCreateEx
mov qword [rsp + 0x30], rsi
call fcn.14002652c
mov rsi, rax
test rax, rax
je 0x14004513b
mov rcx, rax
call fcn.14001e640
jmp 0x14004513e
mov rsi, rax
mov qword [rbx], rsi
mov rdx, qword [rdi]
mov rcx, rsi
call fcn.14001f350
mov rax, qword [rdi]
mov rcx, qword [rbx]
mov eax, dword [rax + 0x20]
mov rsi, qword [rsp + 0x30]
mov dword [rcx + 0x20], eax
jmp case.0x1400069ab.3