Function at 0x14003dec0
Capabilities:
Set socket configuration

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
sub rsp, 0x60
xor ebp, ebp
mov rbx, r8
mov rsi, rdx
mov rdi, rcx
cmp qword [rcx + 0xf8], rbp
jne 0x14003defa
cmp qword [rcx + 0x100], rbp
jne 0x14003defa
mov rdx, rcx
lea r8d, [rbp + 7]
lea rcx, [rsp + 0x50]
call fcn.140020020
or dword [rbx], 2
cmp qword [rdi + 0x1a0], rbp
jne 0x14003e10c
cmp qword [rdi + 0x12c8], rbp
jne 0x14003df30
mov rcx, qword [rdi + 0xbf0]
call qword [section..data]
mov qword [rdi + 0x12c8], rax
test rax, rax
je 0x14003e04e
mov rax, qword [rdi + 0x12c8]
mov qword [rdi + 0x1a8], rax
cmp dword [rdi + 0x650], ebp
jne 0x14003e1fe
cmp dword [rdi + 0x170], 2
mov rcx, qword [rdi + 0x1b0]
jne 0x14003dfad
cmp dword [rcx + 0x208], 2
jne 0x14003dfad
and dword [rdi + 0x18c], 0xfffffffd
lea rcx, [rsp + 0x50]
mov dword [rdi + 0x170], 1
call fcn.14001c440
xor r8d, r8d
mov rcx, qword [rax]
mov qword [rdi + 0x160], rcx
mov rax, qword [rax + 8]
mov rcx, rdi
mov qword [rdi + 0x168], rax
and dword [rbx], 0xfffffffd
movsxd rdx, dword [rdi + 0xf58]
call fcn.14000d660
jmp 0x14003e351
mov rax, qword [rsi + 0x748]
test dword [rax + 0x7c], 0x40003
je 0x14003dfc8
cmp dword [rcx + 0x208], 1
sete bpl
mov rdx, qword [rdi + 0xbf0]
lea r8, [rsp + 0x80]
mov rcx, rsi
call fcn.14003d210
test eax, eax
jne 0x14003e353
mov rbx, qword [rsp + 0x80]
test rbx, rbx
je 0x14003e1fe
jle 0x14003e20b
mov qword [rdi + 0x1a0], rbx
test ebp, ebp
jne 0x14003e0e9
cmp dword [rdi + 0xfd0], ebp
je 0x14003e0e9
cmp qword [rdi + 0x1370], 0
jne 0x14003e063
mov rcx, qword [rdi + 0xbf0]
add rcx, rcx
call qword [section..data]
mov qword [rdi + 0x1370], rax
test rax, rax
jne 0x14003e063
lea rdx, str.Failed_to_alloc_scratch_buffer_
mov rcx, rdi
call fcn.14000ffd0
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 rbx, rbx
jle 0x14003e0cc
nop dword [rax]
mov rax, qword [rdi + 0x1a8]
movzx r8d, byte [rdx + rax]
mov rax, qword [rdi + 0x1370]
cmp r8b, 0xa
jne 0x14003e0bd
mov byte [rcx + rax], reloc.WSOCK32.dll_listen
mov rax, qword [rdi + 0x1370]
inc rcx
mov byte [rcx + rax], r8b
cmp dword [rdi + 0xfd0], 0
jne 0x14003e0c1
mov rax, qword [rdi + 0x1710]
cmp rax, 0xffffffffffffffff
je 0x14003e0c1
inc rax
mov qword [rdi + 0x1710], rax
jmp 0x14003e0c1
mov byte [rcx + rax], r8b
inc rdx
inc rcx
cmp rdx, rbx
jl 0x14003e070
cmp rcx, rbx
je 0x14003e0e9
mov rax, qword [rdi + 0x1370]
mov rbx, rcx
mov qword [rdi + 0x1a0], rcx
mov qword [rdi + 0x1a8], rax
mov rax, qword [rsi + 0x748]
test dword [rax + 0x7c], 0x30000
je 0x14003e10c
mov rdx, rbx
mov rcx, rsi
call fcn.14002d0a0
test eax, eax
jne 0x14003e353
mov r9, qword [rdi + 0x1a0]
mov r8, qword [rdi + 0x1a8]
mov rdx, qword [rsi + 0x780]
lea rax, [rsp + 0x98]
mov rcx, rsi
mov qword [rsp + 0x20], rax
call fcn.14000fb70
test eax, eax
jne 0x14003e353
mov rbx, qword [rsi + 0x780]
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, rbx
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
call qword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x14003e1b5
lea r9, [rsp + 0x80]
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
mov dword [rsp + 0x20], 4
call qword [sym.imp.WSOCK32.dll_setsockopt]
mov rax, qword [rdi + 0x118]
test rax, rax
je 0x14003e23f
mov rbx, qword [rsp + 0x98]
mov r8, qword [rdi + 0x1a8]
mov edx, 2
cmp rax, rbx
mov rcx, rdi
cmovl rbx, rax
mov r9, rbx
call fcn.14000fda0
mov rcx, qword [rsp + 0x98]
sub qword [rdi + 0x118], rbx
mov rbp, rcx
sub rbp, rbx
jmp 0x14003e24a
test byte [rdi + 0x18c], 0x20
jne 0x14003e351
and dword [rdi + 0x18c], 0xfffffffd
cmp dword [rsi + 0x6d8], 0
je 0x14003e351
mov rcx, rsi
call fcn.14003d5c0
test eax, eax
je 0x14003e351
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret
mov rcx, qword [rsp + 0x98]
mov rbp, rcx
test rbp, rbp
je 0x14003e28a
sub rcx, rbp
mov r9, rbp
mov edx, 4
add rcx, qword [rdi + 0x1a8]
mov r8, rcx
mov rcx, rdi
call fcn.14000fda0
add qword [rdi + 0x100], rbp
mov rdx, qword [rdi + 0x100]
mov rcx, rdi
call fcn.140020350
mov rcx, qword [rsp + 0x98]
cmp dword [rdi + 0x660], 0
je 0x14003e29c
cmp dword [rdi + 0x668], 0
je 0x14003e2cd
mov rax, qword [rdi + 0x1710]
cmp qword [rdi + 0x100], rax
jne 0x14003e2cd
lea rdx, str.We_are_completely_uploaded_and_fine_n
mov rcx, rdi
mov dword [rdi + 0x650], 1
call fcn.14000fe70
mov rcx, qword [rsp + 0x98]
mov rax, qword [rdi + 0x1a0]
cmp rax, rcx
je 0x14003e2ec
sub rax, rcx
add qword [rdi + 0x1a8], rcx
mov qword [rdi + 0x1a0], rax
jmp 0x14003e351
cmp qword [rdi + 0x12c8], 0
jne 0x14003e313
mov rcx, qword [rdi + 0xbf0]
call qword [section..data]
mov qword [rdi + 0x12c8], rax
test rax, rax
je 0x14003e04e
cmp dword [rdi + 0x650], 0
mov rax, qword [rdi + 0x12c8]
mov qword [rdi + 0x1a0], 0
mov qword [rdi + 0x1a8], rax
je 0x14003e351
and dword [rdi + 0x18c], 0xfffffffd
cmp dword [rsi + 0x6d8], 0
je 0x14003e351
mov rcx, rsi
call fcn.14003d5c0
test eax, eax
jne 0x14003e353
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x60
pop rdi
pop rsi
pop rbp
ret