Function at 0x57b990
Capabilities:
Set socket configuration

Disassembly:
push rbp
sub rsp, 0x70
mov rbp, rsp
mov qword [rbp + 0x28], 0
mov qword [rbp + 0x30], 0
mov qword [rbp + 0x38], 0
mov qword [rbp + 0x60], 0
mov qword [rbp + 0x80], rcx
nop
mov dword [rbp + 0x5c], 0
cmp dword [rbp + 0x5c], 1
jge 0x57ba1c
add dword [rbp + 0x5c], 1
mov eax, dword [rbp + 0x50]
add eax, dword [rbp + 0x48]
cmp eax, dword [rbp + 0x48]
jle 0x57b9e8
mov eax, dword [rbp + 0x4c]
imul eax, eax, 0x1df
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x54]
sub eax, dword [rbp + 0x50]
test eax, eax
jge 0x57b9f8
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x58]
imul eax, dword [rbp + 0x54]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x58]
imul eax, dword [rbp + 0x54]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x58]
imul eax, dword [rbp + 0x54]
mov dword [rbp + 0x58], eax
cmp dword [rbp + 0x5c], 1
jl 0x57b9cd
nop
mov eax, dword [rbp + 0x5c]
add eax, dword [rbp + 0x58]
mov ecx, dword [rbp + 0x54]
add ecx, dword [rbp + 0x50]
cmp eax, ecx
jge 0x57ba42
lea rcx, [rbp + 0x58]
lea rdx, [rbp + 0x54]
lea r8, [rbp + 0x54]
lea r9, [rbp + 0x50]
call fcn.0053c060
mov dword [rbp + 0x58], 0
mov eax, dword [rbp + 0x50]
add eax, dword [rbp + 0x4c]
cmp eax, dword [rbp + 0x48]
jle 0x57ba60
mov eax, 0x15e
sub eax, dword [rbp + 0x50]
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x5c]
cmp eax, dword [rbp + 0x5c]
jle 0x57ba74
mov eax, dword [rbp + 0x5c]
imul eax, eax, 0x365
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x48]
add eax, 0x268
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x50]
add eax, dword [rbp + 0x50]
cmp dword [rbp + 0x58], eax
jne 0x57ba8f
add dword [rbp + 0x54], 0x6e
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x5c], eax
add dword [rbp + 0x58], 1
cmp dword [rbp + 0x58], 3
jne 0x57ba49
nop
mov dword [rbp + 0x5c], 0
mov eax, dword [rbp + 0x4c]
sub eax, dword [rbp + 0x48]
cmp dword [rbp + 0x50], eax
jne 0x57bab9
add dword [rbp + 0x54], 0x11c
mov eax, dword [rbp + 0x54]
imul eax, dword [rbp + 0x54]
mov dword [rbp + 0x58], eax
mov eax, dword [rbp + 0x58]
sub dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x58]
imul eax, dword [rbp + 0x54]
mov dword [rbp + 0x48], eax
mov eax, dword [rbp + 0x58]
imul eax, dword [rbp + 0x54]
mov dword [rbp + 0x58], eax
add dword [rbp + 0x5c], 1
cmp dword [rbp + 0x5c], 2
jne 0x57baa7
nop
lea rcx, [rbp + 0x60]
call fcn.0040e5d0
mov eax, dword [rbp + 0x48]
sub eax, 0x294
mov dword [rbp + 0x4c], eax
lea rcx, [rbp + 0x60]
mov rdx, qword [0x005d1ca0]
call fcn.0040fe40
lea rcx, [rbp + 0x60]
mov rdx, qword [0x005d1cf0]
call fcn.0040fe40
mov eax, dword [rbp + 0x54]
add eax, 0xee
mov dword [rbp + 0x58], eax
lea rcx, [rbp + 0x38]
mov edx, 2
call fcn.0042be80
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x38]
call fcn.0040fe40
mov eax, dword [rbp + 0x5c]
add eax, dword [rbp + 0x58]
mov ecx, dword [rbp + 0x54]
add ecx, dword [rbp + 0x50]
cmp eax, ecx
jge 0x57bb5c
mov dword [rbp + 0x5c], 0
lea rcx, [rbp + 0x60]
lea rdx, [0x0057be18]
call fcn.0040fe40
lea rcx, [rbp + 0x30]
mov edx, 3
call fcn.0042be80
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x30]
call fcn.0040fe40
mov dword [rbp + 0x48], 0
lea rcx, [rbp + 0x28]
mov edx, 2
call fcn.0042be80
lea rcx, [rbp + 0x60]
mov rdx, qword [rbp + 0x28]
call fcn.0040fe40
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x58], eax
lea rcx, [rbp + 0x60]
lea rdx, [0x0057be28]
call fcn.0040fe40
mov eax, dword [rbp + 0x5c]
add eax, dword [rbp + 0x58]
mov ecx, dword [rbp + 0x58]
add ecx, dword [rbp + 0x54]
cmp eax, ecx
jge 0x57bbd7
mov eax, dword [rbp + 0x5c]
add dword [rbp + 0x5c], eax
lea rcx, [rbp + 0x60]
mov rdx, qword [0x005d1cf8]
call fcn.0040fe40
mov eax, dword [rbp + 0x5c]
imul eax, eax, 0x314
mov dword [rbp + 0x48], eax
lea rcx, [rbp + 0x60]
mov rdx, qword [0x005d1d28]
call fcn.0040fe40
mov eax, dword [rbp + 0x48]
add eax, 0x258
mov dword [rbp + 0x4c], eax
lea rcx, [rbp + 0x60]
mov rdx, qword [0x005d1d28]
call fcn.0040fe40
mov eax, dword [rbp + 0x48]
add eax, 0x280
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x4c]
imul eax, eax, 0x1ea
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x4c]
imul eax, eax, 0x1ce
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x4c]
imul eax, eax, 0x1b2
mov dword [rbp + 0x50], eax
mov eax, 0x196
sub eax, dword [rbp + 0x50]
mov dword [rbp + 0x50], eax
mov eax, dword [rbp + 0x4c]
imul eax, eax, 0x19a
mov dword [rbp + 0x50], eax
mov rcx, qword [rbp + 0x80]
xor edx, edx
xor r8, r8
call sub.ws2_32.dll_WSAEventSelect
mov eax, 0x13b
sub eax, dword [rbp + 0x50]
mov dword [rbp + 0x54], eax
mov eax, 0x140
sub eax, dword [rbp + 0x50]
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x50]
add eax, 0x124
mov dword [rbp + 0x54], eax
mov dword [rbp + 0x58], 0
mov eax, dword [rbp + 0x48]
sub eax, 0x2aa
mov dword [rbp + 0x4c], eax
cmp dword [rbp + 0x54], 0
jne 0x57bcc1
mov eax, dword [rbp + 0x50]
add eax, 0x110
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x54]
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
imul eax, dword [rbp + 0x54]
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
imul eax, eax, 0x33b
mov dword [rbp + 0x48], eax
add dword [rbp + 0x58], 1
cmp dword [rbp + 0x58], 3
jne 0x57bca3
nop
mov eax, dword [rbp + 0x48]
sub eax, 0x26b
mov dword [rbp + 0x4c], eax
mov dword [rbp + 0x6c], 0
add dword [rbp + 0x4c], 0x213
mov eax, dword [rbp + 0x54]
add eax, 0xfc
mov dword [rbp + 0x58], eax
mov rcx, qword [rbp + 0x80]
mov edx, 0x8004667e
lea r8, [rbp + 0x6c]
call sub.ws2_32.dll_ioctlsocket
mov dword [rbp + 0x58], 0
mov eax, dword [rbp + 0x48]
sub eax, 0x2a7
mov dword [rbp + 0x4c], eax
cmp dword [rbp + 0x54], 0
jne 0x57bd49
mov eax, dword [rbp + 0x50]
add eax, 0xed
mov dword [rbp + 0x54], eax
mov eax, dword [rbp + 0x5c]
add eax, dword [rbp + 0x58]
mov ecx, dword [rbp + 0x58]
add ecx, dword [rbp + 0x54]
cmp eax, ecx
jge 0x57bd63
mov eax, dword [rbp + 0x5c]
imul eax, dword [rbp + 0x54]
mov dword [rbp + 0x5c], eax
mov eax, dword [rbp + 0x5c]
add dword [rbp + 0x5c], eax
sub dword [rbp + 0x48], 0x29c
add dword [rbp + 0x58], 1
cmp dword [rbp + 0x58], 3
jne 0x57bd2b
nop
mov eax, 0x52
sub eax, dword [rbp + 0x5c]
cmp eax, 0xe8
jge 0x57bda1
lea rcx, [rbp + 0x5c]
lea rdx, [rbp + 0x5c]
lea r8, [rbp + 0x5c]
lea r9, [rbp + 0x58]
call fcn.0056aee0
mov eax, dword [rbp + 0x48]
sub eax, 0x277
mov dword [rbp + 0x4c], eax
mov eax, dword [rbp + 0x48]
sub eax, 0x29b
mov dword [rbp + 0x4c], eax
nop
lea rcx, [rbp + 0x28]
mov edx, 3
call fcn.0040e6b0
lea rcx, [rbp + 0x60]
call fcn.0040e5d0
lea rsp, [rbp + 0x70]
pop rbp
ret