Function at 0x1800a92d0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebp, ebp
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
cmp qword [rcx + 0xf8], rbp
jne 0x1800a9301
cmp qword [rcx + 0x100], rbp
jne 0x1800a9301
lea edx, [rbp + 7]
call fcn.1800a6c70
or dword [rdi], 2
cmp qword [rbx + 0x198], rbp
jne 0x1800a950f
cmp qword [rbx + 0x12a0], rbp
jne 0x1800a9337
mov rcx, qword [rbx + 0xbe8]
call qword [section..data]
mov qword [rbx + 0x12a0], rax
test rax, rax
je 0x1800a9455
mov rax, qword [rbx + 0x12a0]
mov qword [rbx + 0x1a0], rax
cmp dword [rbx + 0x648], ebp
jne 0x1800a9660
cmp dword [rbx + 0x168], 2
mov rcx, qword [rbx + 0x1a8]
jne 0x1800a93b4
cmp dword [rcx + 0x210], 2
jne 0x1800a93b4
and dword [rbx + 0x184], 0xfffffffd
lea rcx, [rsp + 0x50]
mov dword [rbx + 0x168], 1
call fcn.1800a4500
xor r8d, r8d
mov rcx, qword [rax]
mov qword [rbx + 0x158], rcx
mov rax, qword [rax + 8]
mov rcx, rbx
mov qword [rbx + 0x160], rax
and dword [rdi], 0xfffffffd
movsxd rdx, dword [rbx + 0xf40]
call fcn.180080220
jmp 0x1800a9702
mov rax, qword [rsi + 0x720]
test dword [rax + 0x7c], 0x40003
je 0x1800a93cf
cmp dword [rcx + 0x210], 1
sete bpl
mov rdx, qword [rbx + 0xbe8]
lea r8, [rsp + 0x80]
mov rcx, rsi
call fcn.1800a8440
test eax, eax
jne 0x1800a9704
mov rdi, qword [rsp + 0x80]
test rdi, rdi
je 0x1800a9660
jle 0x1800a966d
mov qword [rbx + 0x198], rdi
test ebp, ebp
jne 0x1800a94ec
cmp dword [rbx + 0xfb8], ebp
je 0x1800a94ec
cmp qword [rbx + 0x1348], 0
jne 0x1800a946a
mov rcx, qword [rbx + 0xbe8]
add rcx, rcx
call qword [section..data]
mov qword [rbx + 0x1348], rax
test rax, rax
jne 0x1800a946a
lea rdx, str.Failed_to_alloc_scratch_buffer_
mov rcx, rbx
call fcn.180083310
mov eax, reloc.WLDAP32.dll_Ordinal_27
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 0x1800a94cf
mov rax, qword [rbx + 0x1a0]
movzx r8d, byte [rdx + rax]
mov rax, qword [rbx + 0x1348]
cmp r8b, 0xa
jne 0x1800a94c0
mov byte [rcx + rax], reloc.WS2_32.dll_listen
mov rax, qword [rbx + 0x1348]
inc rcx
mov byte [rcx + rax], r8b
cmp dword [rbx + 0xfb8], 0
jne 0x1800a94c4
mov rax, qword [rbx + 0x16e8]
cmp rax, 0xffffffffffffffff
je 0x1800a94c4
inc rax
mov qword [rbx + 0x16e8], rax
jmp 0x1800a94c4
mov byte [rcx + rax], r8b
inc rdx
inc rcx
cmp rdx, rdi
jl 0x1800a9473
cmp rcx, rdi
je 0x1800a94ec
mov rax, qword [rbx + 0x1348]
mov rdi, rcx
mov qword [rbx + 0x198], rcx
mov qword [rbx + 0x1a0], rax
mov rax, qword [rsi + 0x720]
test dword [rax + 0x7c], 0x30000
je 0x1800a950f
mov rdx, rdi
mov rcx, rsi
call fcn.180095b80
test eax, eax
jne 0x1800a9704
mov r9, qword [rbx + 0x198]
mov r8, qword [rbx + 0x1a0]
mov rdx, qword [rsi + 0x758]
lea rax, [rsp + 0x98]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.180082eb0
test eax, eax
jne 0x1800a9704
mov rdi, qword [rsi + 0x758]
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 0x1800a95b8
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 + 0x1018], 0
je 0x1800a95dd
mov r9, qword [rsp + 0x98]
mov r8, qword [rbx + 0x1a0]
mov edx, 4
mov rcx, rbx
call fcn.1800830f0
mov rax, qword [rsp + 0x98]
mov rcx, rbx
add qword [rbx + 0x100], rax
mov rdx, qword [rbx + 0x100]
call fcn.1800a7050
cmp dword [rbx + 0x658], 0
je 0x1800a960d
cmp dword [rbx + 0x660], 0
je 0x1800a9636
mov rax, qword [rbx + 0x16e8]
cmp qword [rbx + 0x100], rax
jne 0x1800a9636
lea rdx, str.We_are_completely_uploaded_and_fine_n
mov rcx, rbx
mov dword [rbx + 0x648], 1
call fcn.1800831b0
mov rax, qword [rbx + 0x198]
mov rcx, qword [rsp + 0x98]
cmp rax, rcx
je 0x1800a969d
sub rax, rcx
add qword [rbx + 0x1a0], rcx
mov qword [rbx + 0x198], rax
jmp 0x1800a9702
test byte [rbx + 0x184], 0x20
jne 0x1800a9702
and dword [rbx + 0x184], 0xfffffffd
cmp dword [rsi + 0x6b8], 0
je 0x1800a9702
mov rcx, rsi
call fcn.1800a8810
test eax, eax
je 0x1800a9702
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
cmp qword [rbx + 0x12a0], 0
jne 0x1800a96c4
mov rcx, qword [rbx + 0xbe8]
call qword [section..data]
mov qword [rbx + 0x12a0], rax
test rax, rax
je 0x1800a9455
cmp dword [rbx + 0x648], 0
mov rax, qword [rbx + 0x12a0]
mov qword [rbx + 0x198], 0
mov qword [rbx + 0x1a0], rax
je 0x1800a9702
and dword [rbx + 0x184], 0xfffffffd
cmp dword [rsi + 0x6b8], 0
je 0x1800a9702
mov rcx, rsi
call fcn.1800a8810
test eax, eax
jne 0x1800a9704
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret