Function at 0x44f3b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x4c0980]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
test byte [edi + 0xd8], 0x10
lea ebx, [edi + 0x88]
mov dword [ebp - 0x1c], esi
mov edx, dword [edi + 0x18]
mov dword [ebp - 0x18], edx
jne 0x44f40a
push edi
call fcn.004417f0
add esp, 4
test al, al
je 0x44f407
push esi
push edi
call fcn.0043f9c0
push edi
call fcn.00441800
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x44f7a2
mov edx, dword [ebp - 0x18]
mov cl, byte [edi + 0xc3b]
test cl, cl
je 0x44f461
movzx eax, cl
test al, 1
je 0x44f424
test byte [edi + 0xd8], 0x10
je 0x44f452
test al, 2
je 0x44f431
test byte [edi + 0xd8], 0x20
je 0x44f452
test dword [edi + 0xd8], 0x30
je 0x44f452
xor esi, esi
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
movzx ecx, cl
mov dword [ebp - 0x18], ecx
mov byte [edi + 0xc3b], 0
jmp 0x44f4a2
mov ecx, dword [ebx + 0x50]
mov eax, ecx
and al, 0x15
cmp al, 1
jne 0x44f474
mov edx, dword [edx + 0x278]
jmp 0x44f477
or edx, 0xffffffff
and cl, 0x2a
cmp cl, 2
jne 0x44f48a
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + 0x27c]
jmp 0x44f48d
or eax, 0xffffffff
push 0
push 0
push eax
push 0xffffffffffffffff
push edx
call fcn.004516a0
add esp, 0x14
mov dword [ebp - 0x18], eax
mov ecx, eax
cmp ecx, 4
jne 0x44f4cd
push str.select_poll_returned_error
push edi
call fcn.0043ffa0
mov esi, 0x37
add esp, 8
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x50]
and eax, ecx
test al, 1
je 0x44f500
lea eax, [ebp - 0x1c]
push eax
push ebx
push edi
call fcn.0044fb30
mov esi, eax
add esp, 0xc
test esi, esi
jne 0x44f7a2
cmp byte [edi + 0x12e], al
jne 0x44f7a2
mov esi, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebx + 0x50]
mov eax, edx
and eax, ecx
test al, 2
jne 0x44f514
test dl, 0x40
je 0x44f5e2
test byte [edi + 0xd8], 0x20
jne 0x44f5e2
push edi
call fcn.004344e0
add esp, 4
test al, al
jne 0x44f5e2
or esi, 2
push edi
mov dword [ebp - 0x18], esi
call fcn.00434880
mov esi, eax
add esp, 4
test esi, esi
jne 0x44f7a2
lea eax, [ebp - 0x40]
push eax
call fcn.00433180
mov edx, dword [edi + 0x18]
mov esi, eax
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
mov eax, esp
movups xmm0, xmmword [esi]
movups xmmword [ebp - 0x30], xmm0
movups xmm0, xmmword [edx + 0x2c8]
movups xmmword [ecx], xmm0
movups xmm0, xmmword [esi]
movups xmmword [eax], xmm0
call fcn.00433230
add esp, 0x20
test edx, edx
jl 0x44f5df
jg 0x44f58f
cmp eax, 0x3e8
jbe 0x44f5df
mov eax, dword [edi + 0x18]
push 0
push 0
mov esi, dword [eax + 0x27c]
lea eax, [ebp - 0x20]
push eax
push 4
lea eax, [ebp - 0x1c]
push eax
push 0
push 0
push 0x4004747b
push esi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x44f5d1
push 4
lea eax, [ebp - 0x1c]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [edi + 0x18]
movups xmm0, xmmword [ebp - 0x30]
movups xmmword [eax + 0x2c8], xmm0
mov esi, dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push eax
call fcn.00433180
add esp, 4
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x14], xmm0
test esi, esi
jne 0x44f60c
push edi
call fcn.0043f950
mov esi, eax
add esp, 4
test esi, esi
jne 0x44f7a2
push edi
call fcn.004504e0
add esp, 4
test eax, eax
jne 0x44f77a
movups xmm0, xmmword [ebp - 0x14]
sub esp, 0x10
mov eax, esp
push edi
movups xmmword [eax], xmm0
call fcn.00451810
mov esi, eax
add esp, 0x14
test esi, esi
jne 0x44f7a2
cmp dword [ebx + 0x50], eax
je 0x44f70e
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call fcn.004424f0
add esp, 0xc
test edx, edx
jg 0x44f792
jl 0x44f665
test eax, eax
jae 0x44f792
mov edx, dword [ebx]
mov eax, edx
mov ecx, dword [ebx + 4]
and eax, ecx
mov esi, dword [ebx + 0x14]
cmp eax, 0xffffffff
movups xmm0, xmmword [edi + 0x6d8]
mov eax, dword [ebx + 0x10]
je 0x44f6c8
push ecx
push edx
push esi
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax], xmm0
call fcn.00433230
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__lld_milliseconds_with__lld_out_of__lld_bytes_received
push edi
call fcn.0043ffa0
mov esi, 0x1c
add esp, 0x20
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
push esi
push eax
sub esp, 0x10
mov eax, esp
sub esp, 0x10
movups xmmword [eax], xmm0
mov eax, esp
movups xmm0, xmmword [ebp - 0x14]
movups xmmword [eax], xmm0
call fcn.00433230
add esp, 0x20
push edx
push eax
push str.Operation_timed_out_after__lld_milliseconds_with__lld_bytes_received
push edi
call fcn.0043ffa0
mov esi, 0x1c
add esp, 0x18
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
cmp byte [edi + 0x13c], 0
jne 0x44f76d
mov edx, dword [ebx]
mov eax, edx
mov ecx, dword [ebx + 4]
and eax, ecx
cmp eax, 0xffffffff
je 0x44f76d
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
cmp dword [ebx + 0x10], edx
jne 0x44f737
cmp eax, ecx
je 0x44f76d
cmp dword [ebx + 0x98], 0
jne 0x44f76d
sub edx, dword [ebp - 0x1c]
sbb ecx, eax
push ecx
push edx
push str.transfer_closed_with__lld_bytes_remaining_to_read
push edi
call fcn.0043ffa0
mov esi, 0x12
add esp, 0x10
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
push edi
call fcn.004504e0
add esp, 4
test eax, eax
je 0x44f792
mov esi, 0x2a
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046ca44
mov esp, ebp
pop ebp
ret
test dword [ebx + 0x50], 0x3f
jne 0x44f7a2
mov byte [edi + 0x12e], 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046ca44
mov esp, ebp
pop ebp
ret