Function at 0x525109
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x38
mov ebx, dword [ebp + 8]
mov esi, ecx
mov dword [ebp - 0x14], edx
cmp byte [ebx + 0x22e], 0
je 0x52515a
cmp dword [edx], 0
je 0x52539a
mov eax, dword [edx + 0x14]
lea ecx, [ebp - 0x3c]
mov eax, dword [eax + 0xf8]
mov dword [ecx], 1
push 4
push ecx
push 0x20
push 0xffff
push eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x525384
mov edx, dword [ebp - 0x14]
mov eax, dword [ebx + 0xf4]
mov dword [ebp - 0x10], esi
test eax, eax
je 0x52527e
mov ecx, dword [ebx + 0x104]
mov edx, dword [ebx + 0x10c]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], ecx
lea ecx, [ecx + edx*4]
neg edx
mov dword [ebp - 0x44], ecx
mov ecx, ebx
mov ebx, eax
mov dword [ebp - 0x28], edx
mov edx, dword [ebp - 0x14]
shl ebx, 4
mov esi, dword [ecx + 0xec]
mov edi, dword [ecx + 0xf8]
add ebx, eax
mov eax, dword [ecx + 0x100]
inc esi
mov dword [ebp - 0x24], eax
lea eax, [edi + eax*4]
mov dword [ebp - 0x40], eax
cmp byte [esi - 1], 0
je 0x52521d
mov ecx, dword [ebp - 0x24]
xor eax, eax
cmp ecx, dword [ebp - 0x28]
je 0x5251e1
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x44]
je 0x5253ab
mov ecx, eax
mov eax, dword [eax]
add ecx, 4
mov dword [ebp - 0x20], ecx
cmp dword [edx], 0
je 0x52539a
mov ecx, dword [edx + 0x14]
movups xmm0, xmmword [esi]
mov ecx, dword [ecx + 0xf8]
movups xmmword [ebp - 0x3c], xmm0
mov dword [ebp - 0x2c], eax
push 0x14
lea eax, [ebp - 0x3c]
push eax
push 0xc
push 0x29
push ecx
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x525371
mov al, 1
mov dword [ebp - 0x1c], eax
jmp 0x52526d
mov ecx, dword [ebp - 0x24]
xor eax, eax
cmp ecx, dword [ebp - 0x28]
je 0x525235
cmp edi, dword [ebp - 0x40]
je 0x5253bc
mov eax, dword [edi]
add edi, 4
cmp dword [edx], 0
je 0x52539a
mov ecx, dword [edx + 0x14]
mov edx, dword [esi]
mov ecx, dword [ecx + 0xf8]
mov dword [ebp - 0x3c], edx
mov dword [ebp - 0x38], eax
push 8
lea eax, [ebp - 0x3c]
push eax
push 0xc
push 0
push ecx
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x525371
mov al, 1
mov dword [ebp - 0x18], eax
mov edx, dword [ebp - 0x14]
add esi, 0x11
add ebx, 0xffffffef
jne 0x5251bb
jmp 0x52528c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov esi, dword [ebp + 8]
cmp byte [esi + 0x22f], 0
je 0x525308
test byte [ebp - 0x18], 1
je 0x5252d2
cmp dword [edx], 0
je 0x52539a
mov eax, dword [edx + 0x14]
lea ecx, [ebp - 0x3c]
mov eax, dword [eax + 0xf8]
mov dword [ecx], 1
push 4
push ecx
push 0xb
push 0
push eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x525371
mov edx, dword [ebp - 0x14]
test byte [ebp - 0x1c], 1
je 0x525308
cmp dword [edx], 0
je 0x52539a
mov eax, dword [edx + 0x14]
lea ecx, [ebp - 0x3c]
mov eax, dword [eax + 0xf8]
mov dword [ecx], 1
push 4
push ecx
push 0xb
push 0x29
push eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x525371
mov edx, dword [ebp - 0x14]
cmp dword [esi + 0x28], 0
je 0x525369
cmp dword [edx], 0
je 0x52539a
mov eax, dword [edx + 0x14]
mov esi, dword [esi + 0x2c]
lea ebx, [ebp - 0x3c]
mov ecx, 4
mov eax, dword [eax + 0xf8]
mov dword [ebx], esi
push ecx
push ebx
push ecx
push 0
push eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x525371
test byte [ebp - 0x18], 1
mov eax, dword [ebp - 0x14]
je 0x525369
cmp dword [eax], 0
je 0x52539a
mov eax, dword [eax + 0x14]
mov eax, dword [eax + 0xf8]
mov dword [ebp - 0x3c], esi
push 4
push ebx
push 0xa
push 0
push eax
call sub.ws2_32.dll_setsockopt
cmp eax, 0xffffffff
je 0x525371
mov eax, dword [ebp - 0x10]
mov byte [eax], 4
jmp 0x525392
call sub.ws2_32.dll_WSAGetLastError
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
mov dword [ecx], 0
jmp 0x525392
call sub.ws2_32.dll_WSAGetLastError
mov dword [esi + 4], eax
mov dword [esi], 0
add esp, 0x38
pop esi
pop edi
pop ebx
pop ebp
ret
mov ecx, str.called__Option::unwrap____on_a__None__value_home_vi_.cargo_registry_src_index.crates.io_6f17d22bba15001f_url_1.7.2_src_lib.rsURL_has_no_host
mov edx, 0x2b
push 0x56e9dc
jmp 0x5253cb
mov ecx, str.called__Option::unwrap____on_a__None__value_home_vi_.cargo_registry_src_index.crates.io_6f17d22bba15001f_url_1.7.2_src_lib.rsURL_has_no_host
mov edx, 0x2b
push 0x599270
jmp 0x5253cb
mov ecx, str.called__Option::unwrap____on_a__None__value_home_vi_.cargo_registry_src_index.crates.io_6f17d22bba15001f_url_1.7.2_src_lib.rsURL_has_no_host
mov edx, 0x2b
push 0x599260
call fcn.00445340
add esp, 4
ud2