Function at 0x14005d330
Capabilities:
Set socket configuration

Disassembly:
push rdi
sub rsp, 0x40
mov rax, qword [0x1403835b0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov ecx, 0x2b18
call qword [fcn.140275c04]
mov rdi, rax
test rax, rax
jne 0x14005d373
call qword [fcn.140275b98]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140266a80
add rsp, 0x40
pop rdi
ret
xor edx, edx
mov qword [rsp + 0x50], rbx
mov r8d, 0x2b18
mov rcx, rdi
call fcn.140269a30
mov ecx, 0x1d8
call qword [fcn.140275c04]
mov rbx, rax
test rax, rax
jne 0x14005d3aa
call qword [fcn.140275b98]
mov qword [rdi + 0x28], rbx
jmp 0x14005d646
xor edx, edx
mov qword [rdi + 0x28], rbx
mov r8d, 0x1d8
mov rcx, rbx
call fcn.140269a30
mov edx, 2
xor r8d, r8d
mov ecx, edx
call qword [sym.imp.WS2_32.dll_socket]
mov qword [rdi], rax
cmp rax, 0xffffffffffffffff
je 0x14005d63c
mov qword [rsp + 0x58], rbp
lea r8, [rsp + 0x30]
mov edx, 0x8004667e
mov qword [rsp + 0x60], rsi
mov rcx, rax
mov dword [rsp + 0x30], 1
call qword [sym.imp.WS2_32.dll_ioctlsocket]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 1
mov r8d, reloc.WLDAP32.dll_Ordinal_32
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 0x40000
mov r8d, 0x1002
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov rcx, qword [rdi]
lea r9, [rsp + 0x30]
mov edx, 0xffff
mov dword [rsp + 0x30], 0x40000
mov r8d, 0x1001
mov dword [rsp + 0x20], 4
call qword [sym.imp.WS2_32.dll_setsockopt]
mov dword [rdi + 0x20], edi
call qword [sym.imp.WINMM.dll_timeGetTime]
mov edx, dword [rdi + 0x20]
xor ebp, ebp
add edx, eax
mov qword [rdi + 0x30], 1
lea rax, [rdi + 0x48]
rol edx, 0x10
mov qword [rax], rax
mov qword [rax + 8], rax
imul rax, qword [rdi + 0x30], 0x1d8
mov rsi, qword [rdi + 0x28]
add rax, rsi
mov dword [rdi + 0x20], edx
mov qword [rdi + 0x38], 2
mov qword [rdi + 0x10], rbp
mov dword [rdi + 0x18], ebp
mov dword [rdi + 0x24], ebp
mov dword [rdi + 0x1c], 0x578
mov qword [rdi + 0x670], rbp
mov qword [rdi + 0xa88], rbp
mov qword [rdi + 0xa90], rbp
mov dword [rdi + 0x2ab8], ebp
mov word [rdi + 0x2abc], bp
mov qword [rdi + 0x2ac0], rbp
mov qword [rdi + 0x2ac8], rbp
mov qword [rdi + 0x2ad0], rbp
mov qword [rdi + 0x2ad8], rbp
mov qword [rdi + 0x2ae8], rbp
mov qword [rdi + 0x2af0], rbp
mov qword [rdi + 0x2af8], 0xfff
mov qword [rdi + 0x2b00], 0x2000000
mov qword [rdi + 0x2b08], 0x2000000
mov qword [rdi + 0xa98], rbp
mov qword [rdi + 0xaa0], rbp
mov qword [rdi + 0xaa8], rbp
mov qword [rdi + 0xab0], rbp
mov qword [rdi + 0x2ae0], rbp
cmp rsi, rax
jae 0x14005d62d
mov qword [rsp + 0x68], r14
lea rbx, [rsi + 0xf8]
movabs r14, 0x8ad8f2fba9386823
nop dword [rax + rax]
mov qword [rbx - 0xe8], rdi
mov rcx, rsi
sub rcx, qword [rdi + 0x28]
mov rax, r14
imul rcx
mov word [rbx - 0xd8], 0xffff
add rdx, rcx
mov qword [rbx - 0xc8], rbp
sar rdx, 8
mov rcx, rsi
mov rax, rdx
shr rax, 0x3f
add rdx, rax
lea rax, [rbx - 0x18]
mov qword [rax], rax
mov qword [rbx - 0x10], rax
lea rax, [rbx - 8]
mov qword [rax], rax
mov qword [rbx], rax
lea rax, [rbx + 8]
mov qword [rax], rax
mov qword [rbx + 0x10], rax
lea rax, [rbx + 0x18]
mov qword [rax], rax
mov qword [rbx + 0x20], rax
lea rax, [rbx + 0x28]
mov qword [rax], rax
mov qword [rbx + 0x30], rax
lea rax, [rbx + 0x38]
mov qword [rax], rax
mov qword [rbx + 0x40], rax
mov word [rbx - 0xde], dx
call fcn.14005e4b0
imul rax, qword [rdi + 0x30], 0x1d8
add rsi, 0x1d8
lea rbx, [rbx + 0x1d8]
add rax, qword [rdi + 0x28]
cmp rsi, rax
jb 0x14005d580
mov r14, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rax, rdi
mov rbp, qword [rsp + 0x58]
jmp 0x14005d651
mov rcx, qword [rdi + 0x28]
call qword [fcn.140275bf0]
mov rcx, rdi
call qword [fcn.140275bf0]
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.140266a80
add rsp, 0x40
pop rdi
ret