Function at 0x1400b99c0
Capabilities:
Set socket configuration

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x40
mov ebp, edx
mov r14d, ecx
mov rax, qword [0x1402b7040]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov rax, qword [fcn.14009eba0]
mov ecx, 1
mov edx, 0x190
call qword [0x1402a7b00]
test rax, rax
je 0x1400b9ba1
mov rdi, rax
mov rsi, rax
mov dword [rdi], 0xbab1e
lea rbx, [rax + 0x80]
lea rax, [0x1400d1060]
mov qword [rsp + 0x20], rax
lea r8, [0x1400d1b60]
lea r9, [0x1400d1ba0]
mov rcx, rbx
mov edx, 7
call fcn.1400d1740
test eax, eax
je 0x1400b9bcc
cmp dword [rsi + 0xd8], 0
jle 0x1400b9a7f
lea r14, [rdi + 0xb8]
xor r15d, r15d
xor r12d, r12d
mov rcx, qword [rsi + 0xb8]
add rcx, r15
mov rdx, r14
call fcn.1400d1d20
inc r12
movsxd rax, dword [rsi + 0xd8]
add r15, 0x20
cmp r12, rax
jl 0x1400b9a5a
mov rax, qword [fcn.1400581d0]
mov rcx, qword [rsi + 0xb8]
call qword [0x1402a7b00]
xor eax, eax
mov qword [rsi + 0xb8], rax
mov qword [rsi + 0xe0], rax
mov dword [rsi + 0xd8], 0
cmp dword [rsi + 0xa0], 0
jle 0x1400b9ae1
xor r14d, r14d
xor r15d, r15d
mov rcx, qword [rsi + 0x80]
add rcx, r14
mov rdx, rbx
call fcn.1400d1d20
inc r15
movsxd rax, dword [rsi + 0xa0]
add r14, 0x20
cmp r15, rax
jl 0x1400b9abc
mov rax, qword [fcn.1400581d0]
mov rcx, qword [rsi + 0x80]
call qword [0x1402a7b00]
xor eax, eax
mov qword [rsi + 0x80], rax
mov qword [rsi + 0xa8], rax
mov dword [rsi + 0xa0], 0
cmp dword [rsi + 0x108], 0
jle 0x1400b9b4a
lea rbx, [rdi + 0xe8]
xor r14d, r14d
xor r15d, r15d
mov rcx, qword [rsi + 0xe8]
add rcx, r14
mov rdx, rbx
call fcn.1400d1d20
inc r15
movsxd rax, dword [rsi + 0x108]
add r14, 0x20
cmp r15, rax
jl 0x1400b9b25
mov rax, qword [fcn.1400581d0]
mov rcx, qword [rsi + 0xe8]
call qword [0x1402a7b00]
xor eax, eax
mov qword [rsi + 0xe8], rax
mov qword [rsi + 0x110], rax
mov dword [rsi + 0x108], 0
lea rcx, [rdi + 0x20]
xor edx, edx
call fcn.1400d1d20
add rdi, 0x40
mov rcx, rdi
xor edx, edx
call fcn.1400d1d20
mov rax, qword [fcn.1400581d0]
mov rcx, rsi
call qword [0x1402a7b00]
xor esi, esi
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
cmp rcx, qword [0x1402b7040]
je 0x1400b9bba
call fcn.14019f290
int3
mov rax, rsi
add rsp, 0x40
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea rcx, [rdi + 0xb8]
lea rax, [0x1400bdbf0]
mov qword [rsp + 0x20], rax
lea r8, [0x1400bdc20]
lea r9, [0x1400bdc10]
mov edx, r14d
call fcn.1400d1740
test eax, eax
jne 0x1400b9a44
call fcn.1400a24a0
mov qword [rsi + 0x138], rax
test rax, rax
je 0x1400b9a44
lea r14, [rdi + 0xe8]
lea rax, [0x1400bfe70]
mov qword [rsp + 0x20], rax
lea r8, [0x1400d1b60]
lea r9, [0x1400d1ba0]
mov rcx, r14
mov edx, ebp
call fcn.1400d1740
test eax, eax
je 0x1400b9c52
lea rcx, [rdi + 0x138]
call fcn.1400b1730
jmp 0x1400b9a44
mov rax, qword [rsi + 0x138]
mov qword [rax + 0x10f8], r14
pxor xmm0, xmm0
movdqu xmmword [rsi + 0x50], xmm0
movdqu xmmword [rsi + 0x40], xmm0
movdqu xmmword [rsi + 0x30], xmm0
movdqu xmmword [rsi + 0x20], xmm0
mov byte [rsi + 0x188], 1
mov dword [rsi + 0x140], 0xffffffff
mov dword [rsi + 0x170], 0x64
mov ecx, Ordinal_26
mov edx, 2
xor r8d, r8d
call qword [sym.imp.WS2_32.dll_socket]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400b9cb9
xor ecx, ecx
mov rdx, rbx
call fcn.1400bed00
cmp rbx, 0xffffffffffffffff
setne byte [rsi + 0x18b]
add rdi, 0x178
mov ecx, 1
mov edx, 1
xor r8d, r8d
mov r9, rdi
call fcn.1400f4c20
test eax, eax
js 0x1400b9d41
mov rcx, qword [rdi]
lea r8, [rsp + 0x34]
mov dword [r8], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
js 0x1400b9d28
mov rcx, qword [rsi + 0x180]
lea r8, [rsp + 0x34]
mov dword [r8], 1
mov edx, 0x8004667e
call qword [sym.imp.WS2_32.dll_ioctlsocket]
test eax, eax
jns 0x1400b9ba3
mov rcx, qword [rsi + 0x178]
mov rbx, qword [sym.imp.WS2_32.dll_closesocket]
call rbx
mov rcx, qword [rsi + 0x180]
call rbx
pcmpeqd xmm0, xmm0
movdqu xmmword [rdi], xmm0
jmp 0x1400b9ba3