Function at 0x140043c90
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor esi, esi
mov rdi, r8
mov rbp, rdx
mov rbx, rcx
cmp qword [rcx + 0xf8], rsi
jne 0x140043cc1
cmp qword [rcx + 0x100], rsi
jne 0x140043cc1
lea edx, [rsi + 7]
call fcn.140036610
or dword [rdi], 2
cmp qword [rbx + 0x1d0], rsi
jne 0x140043ea9
cmp qword [rbx + 0x1220], rsi
jne 0x140043cf7
mov rcx, qword [rbx + 0xbc0]
call qword [fcn.140051160]
mov qword [rbx + 0x1220], rax
test rax, rax
je 0x140043e15
mov rax, qword [rbx + 0x1220]
mov qword [rbx + 0x1d8], rax
cmp dword [rbx + 0x660], esi
jne 0x140043ffa
cmp dword [rbx + 0x190], 2
mov rcx, qword [rbx + 0x1e0]
jne 0x140043d74
cmp dword [rcx + 0x210], 2
jne 0x140043d74
and dword [rbx + 0x1b8], 0xfffffffd
lea rcx, [rsp + 0x50]
mov dword [rbx + 0x190], 1
call fcn.140033250
xor r8d, r8d
mov rcx, qword [rax]
mov qword [rbx + 0x180], rcx
mov rax, qword [rax + 8]
mov rcx, rbx
mov qword [rbx + 0x188], rax
and dword [rdi], 0xfffffffd
movsxd rdx, dword [rbx + 0xee0]
call fcn.140025b30
jmp 0x14004409c
mov rax, qword [rbp + 0x6f8]
test dword [rax + 0x7c], 0x40003
je 0x140043d8f
cmp dword [rcx + 0x210], 1
sete sil
mov rdx, qword [rbx + 0xbc0]
lea r8, [rsp + 0x80]
mov rcx, rbp
call fcn.140042f60
test eax, eax
jne 0x14004409e
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x140043ffa
jle 0x140044007
mov qword [rbx + 0x1d0], rdi
test esi, esi
jne 0x140043ea9
cmp dword [rbx + 0xf58], esi
je 0x140043ea9
cmp qword [rbx + 0x1298], 0
jne 0x140043e2a
mov rcx, qword [rbx + 0xbc0]
add rcx, rcx
call qword [fcn.140051160]
mov qword [rbx + 0x1298], rax
test rax, rax
jne 0x140043e2a
lea rdx, str.Failed_to_alloc_scratch_buffer_
mov rcx, rbx
call fcn.140028290
mov eax, 0x1b
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
xor edx, edx
xor ecx, ecx
test rdi, rdi
jle 0x140043e8f
mov rax, qword [rbx + 0x1d8]
movzx r8d, byte [rdx + rax]
mov rax, qword [rbx + 0x1298]
cmp r8b, 0xa
jne 0x140043e80
mov byte [rcx + rax], reloc.WS2_32.dll_listen
mov rax, qword [rbx + 0x1298]
inc rcx
mov byte [rcx + rax], r8b
cmp dword [rbx + 0xf58], 0
jne 0x140043e84
mov rax, qword [rbx + 0x1608]
cmp rax, 0xffffffffffffffff
je 0x140043e84
inc rax
mov qword [rbx + 0x1608], rax
jmp 0x140043e84
mov byte [rcx + rax], r8b
inc rdx
inc rcx
cmp rdx, rdi
jl 0x140043e33
cmp rcx, rdi
je 0x140043ea9
mov rax, qword [rbx + 0x1298]
mov qword [rbx + 0x1d0], rcx
mov qword [rbx + 0x1d8], rax
mov r9, qword [rbx + 0x1d0]
mov r8, qword [rbx + 0x1d8]
mov rdx, qword [rbp + 0x730]
lea rax, [rsp + 0x98]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call fcn.140027e10
test eax, eax
jne 0x14004409e
mov rdi, qword [rbp + 0x730]
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x90]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x80]
mov edx, 0x4004747b
mov rcx, rdi
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x140043f52
lea r9, [rsp + 0x80]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rdi
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
cmp dword [rbx + 0xfa4], 0
je 0x140043f77
mov r9, qword [rsp + 0x98]
mov r8, qword [rbx + 0x1d8]
mov edx, 4
mov rcx, rbx
call fcn.140028070
mov rax, qword [rsp + 0x98]
mov rcx, rbx
add qword [rbx + 0x100], rax
mov rdx, qword [rbx + 0x100]
call fcn.140036920
cmp dword [rbx + 0x670], 0
je 0x140043fa7
cmp dword [rbx + 0x678], 0
je 0x140043fd0
mov rax, qword [rbx + 0x1608]
cmp qword [rbx + 0x100], rax
jne 0x140043fd0
lea rdx, str.We_are_completely_uploaded_and_fine_n
mov rcx, rbx
mov dword [rbx + 0x660], 1
call fcn.140028130
mov rax, qword [rbx + 0x1d0]
mov rcx, qword [rsp + 0x98]
cmp rax, rcx
je 0x140044037
sub rax, rcx
add qword [rbx + 0x1d8], rcx
mov qword [rbx + 0x1d0], rax
jmp 0x14004409c
test byte [rbx + 0x1b8], 0x20
jne 0x14004409c
and dword [rbx + 0x1b8], 0xfffffffd
cmp dword [rbp + 0x6ac], 0
je 0x14004409c
mov rcx, rbp
call fcn.140043330
test eax, eax
je 0x14004409c
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
cmp qword [rbx + 0x1220], 0
jne 0x14004405e
mov rcx, qword [rbx + 0xbc0]
call qword [fcn.140051160]
mov qword [rbx + 0x1220], rax
test rax, rax
je 0x140043e15
cmp dword [rbx + 0x660], 0
mov rax, qword [rbx + 0x1220]
mov qword [rbx + 0x1d0], 0
mov qword [rbx + 0x1d8], rax
je 0x14004409c
and dword [rbx + 0x1b8], 0xfffffffd
cmp dword [rbp + 0x6ac], 0
je 0x14004409c
mov rcx, rbp
call fcn.140043330
test eax, eax
jne 0x14004409e
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret