Function at 0x4bf8cb
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov byte [ebp - 1], 0
lea esi, [ebx + 0x90]
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x4bf8fb
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x4bf8fb
push 7
push ebx
call fcn.004bfeb0
pop ecx
pop ecx
mov eax, dword [ebp + 0x10]
or dword [eax], 2
cmp dword [esi + 0xbc], 0
jne 0x4bfafc
push ebx
call fcn.004be687
pop ecx
test eax, eax
jne 0x4bf98c
test byte [esi + 0x500], 4
mov eax, dword [ebx + 0xc60]
mov dword [esi + 0xc0], eax
jne 0x4bf9cc
cmp dword [esi + 0x90], 2
mov edx, dword [esi + 0xc4]
jne 0x4bf993
cmp dword [edx + 0x1a0], 2
jne 0x4bf993
and dword [esi + 0xb0], 0xfffffffd
lea eax, [ebp - 0x1c]
push eax
mov dword [esi + 0x90], 1
call fcn.004b8d1f
lea edi, [esi + 0x80]
mov esi, eax
mov eax, dword [ebp + 0x10]
push 0
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
and dword [eax], 0xfffffffd
mov eax, dword [ebx + 0xa5c]
cdq
push edx
push eax
push ebx
call fcn.004a95d6
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx + 0x2a8]
test dword [eax + 0x40], 0x40003
je 0x4bf9b0
cmp dword [edx + 0x1a0], 1
sete byte [ebp - 1]
lea eax, [ebp + 0x10]
push eax
push dword [ebx + 0x8e8]
push ecx
call fcn.004be0f4
add esp, 0xc
test eax, eax
jne 0x4bf98c
mov edi, dword [ebp + 0x10]
jmp 0x4bf9ce
xor edi, edi
test edi, edi
jne 0x4bf9dd
test byte [esi + 0xb0], 0x20
jne 0x4bf98a
test edi, edi
jg 0x4bf9f1
mov eax, dword [ebp + 0xc]
push esi
push eax
call fcn.004bf0d9
pop ecx
pop ecx
test eax, eax
je 0x4bf98a
jmp 0x4bf98c
cmp byte [ebp - 1], 0
mov dword [esi + 0xbc], edi
jne 0x4bfad5
test byte [ebx + 0xa8c], 0x40
je 0x4bfad5
cmp dword [ebx + 0xca8], 0
jne 0x4bfa46
mov eax, dword [ebx + 0x8e8]
add eax, eax
push eax
call dword [0x5d40cc]
mov dword [ebx + 0xca8], eax
pop ecx
test eax, eax
jne 0x4bfa46
push str.Failed_to_alloc_scratch_buffer_
push ebx
call fcn.004b62b1
pop ecx
pop ecx
push 0x1b
pop eax
jmp 0x4bf98c
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x4bfabd
mov eax, dword [esi + 0xc0]
mov al, byte [edx + eax]
mov byte [ebp + 0x13], al
cmp al, 0xa
mov eax, dword [ebx + 0xca8]
jne 0x4bfaae
mov byte [ecx + eax], 0xd
inc ecx
mov eax, dword [ebx + 0xca8]
mov byte [ecx + eax], 0xa
test byte [ebx + 0xa8c], 0x40
jne 0x4bfab7
mov esi, dword [ebx + 0xf04]
mov eax, dword [ebx + 0xf00]
and eax, esi
mov dword [ebp + 0x10], esi
lea esi, [ebx + 0x90]
cmp eax, 0xffffffff
je 0x4bfab7
add dword [ebx + 0xf00], 1
adc dword [ebp + 0x10], 0
mov eax, dword [ebp + 0x10]
mov dword [ebx + 0xf04], eax
jmp 0x4bfab7
mov bl, byte [ebp + 0x13]
mov byte [ecx + eax], bl
mov ebx, dword [ebp + 8]
inc edx
inc ecx
cmp edx, edi
jl 0x4bfa4e
cmp ecx, edi
je 0x4bfad5
mov eax, dword [ebx + 0xca8]
mov edi, ecx
mov dword [esi + 0xc0], eax
mov dword [esi + 0xbc], ecx
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x2a8]
test dword [eax + 0x40], 0x30000
je 0x4bfafc
push edi
mov edi, dword [ebp + 0xc]
push edi
call fcn.004cf177
pop ecx
pop ecx
test eax, eax
je 0x4bfaff
jmp 0x4bf98c
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push dword [esi + 0xbc]
push dword [esi + 0xc0]
push dword [edi + 0x2d0]
push edi
call fcn.004b67f6
add esp, 0x14
test eax, eax
jne 0x4bf98c
mov eax, dword [edi + 0x2d0]
lea ecx, [ebp - 0xc]
xor edx, edx
mov dword [ebp + 8], eax
push edx
push edx
push ecx
push 4
lea ecx, [ebp + 0x10]
push ecx
push edx
push edx
push 0x4004747b
push eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x4bfb68
push 4
lea eax, [ebp + 0x10]
push eax
push 0x1001
push 0xffff
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
test dword [ebx + 0xa8c], 0x4000000
je 0x4bfb88
push dword [ebp - 8]
push dword [esi + 0xc0]
push 4
push ebx
call fcn.004b6236
add esp, 0x10
mov eax, dword [ebp - 8]
cdq
add dword [esi + 0x18], eax
adc dword [esi + 0x1c], edx
push dword [esi + 0x1c]
push dword [esi + 0x18]
push ebx
call fcn.004bfdd4
mov ecx, dword [esi + 0x500]
add esp, 0xc
test cl, 0x40
je 0x4bfbb4
test ecx, 0x100
je 0x4bfbe0
mov eax, dword [esi + 0x18]
cmp eax, dword [ebx + 0xf00]
jne 0x4bfbe0
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebx + 0xf04]
jne 0x4bfbe0
or ecx, 4
push str.We_are_completely_uploaded_and_fine_n
push ebx
mov dword [esi + 0x500], ecx
call fcn.004b6387
pop ecx
pop ecx
mov eax, dword [esi + 0xbc]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x4bfc00
sub eax, ecx
add dword [esi + 0xc0], ecx
mov dword [esi + 0xbc], eax
jmp 0x4bf98a
push ebx
call fcn.004be687
pop ecx
test eax, eax
jne 0x4bf98c
mov eax, dword [ebx + 0xc60]
and dword [esi + 0xbc], 0
test byte [esi + 0x500], 4
mov dword [esi + 0xc0], eax
je 0x4bf98a
push esi
push edi
jmp 0x4bf9e4