Function at 0x41c7dd
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 0x80]
mov byte [ebp - 5], 0
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x41c815
mov eax, dword [esi + 0x18]
or eax, dword [esi + 0x1c]
jne 0x41c815
lea eax, [ebp - 0x24]
push eax
push 7
pop edx
call fcn.0041590b
pop ecx
mov eax, dword [ebp + 8]
or dword [eax], 2
cmp dword [esi + 0xac], 0
jne 0x41c9f5
mov ecx, ebx
call fcn.0041bbfd
test eax, eax
jne 0x41cb81
cmp byte [esi + 0xbe], 0
mov eax, dword [ebx + 0x8f0]
mov dword [esi + 0xb0], eax
jne 0x41c8e4
cmp dword [esi + 0x88], 2
mov ecx, dword [esi + 0xb4]
jne 0x41c8a8
cmp dword [ecx + 0x1a0], 2
jne 0x41c8a8
and dword [esi + 0x74], 0xfffffffd
lea eax, [ebp - 0x24]
push eax
mov dword [esi + 0x88], 1
call fcn.0041ba43
lea edi, [esi + 0x78]
mov esi, eax
mov eax, dword [ebp + 8]
pop ecx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
and dword [eax], 0xfffffffd
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x6bc]
cdq
push edx
push eax
xor edx, edx
call fcn.004148a8
pop ecx
pop ecx
jmp 0x41cb7f
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x2a0]
test dword [eax + 0x44], 0x40003
je 0x41c8c5
cmp dword [ecx + 0x1a0], 1
sete byte [ebp - 5]
mov edx, dword [ebx + 0x4e4]
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0041bc70
pop ecx
test eax, eax
jne 0x41cb81
mov edi, dword [ebp + 8]
jmp 0x41c8e6
xor edi, edi
test edi, edi
jne 0x41c8f6
test byte [esi + 0x74], 0x20
jne 0x41cb7f
test edi, edi
jg 0x41c90e
mov edx, esi
mov ecx, ebx
call fcn.0041c7bf
test eax, eax
je 0x41cb7f
jmp 0x41cb81
cmp byte [ebp - 5], 0
mov dword [esi + 0xac], edi
jne 0x41c9f5
cmp byte [ebx + 0x6f2], 0
je 0x41c9f5
cmp dword [ebx + 0x95c], 0
jne 0x41c963
mov eax, dword [ebx + 0x4e4]
add eax, eax
push eax
call dword [0x53b9f0]
mov dword [ebx + 0x95c], eax
pop ecx
test eax, eax
jne 0x41c963
push str.Failed_to_alloc_scratch_buffer
push ebx
call fcn.00416cbd
pop ecx
pop ecx
push 0x1b
pop eax
jmp 0x41cb81
xor ecx, ecx
xor edx, edx
test edi, edi
jle 0x41c9df
mov eax, dword [esi + 0xb0]
mov al, byte [edx + eax]
mov byte [ebp + 0xb], al
cmp byte [ebp + 0xb], 0xa
mov eax, dword [ebx + 0x95c]
mov ebx, dword [ebp - 0x14]
jne 0x41c9d0
mov byte [eax + ecx], 0xd
inc ecx
mov eax, dword [ebx + 0x95c]
mov byte [ecx + eax], 0xa
cmp byte [ebx + 0x6f2], 0
jne 0x41c9d9
mov esi, dword [ebx + 0xc6c]
mov eax, dword [ebx + 0xc68]
and eax, esi
mov dword [ebp + 8], esi
lea esi, [ebx + 0x80]
cmp eax, 0xffffffff
je 0x41c9d9
add dword [ebx + 0xc68], 1
adc dword [ebp + 8], 0
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc6c], eax
jmp 0x41c9d9
mov bl, byte [ebp + 0xb]
mov byte [eax + ecx], bl
mov ebx, dword [ebp - 0x14]
inc edx
inc ecx
cmp edx, edi
jl 0x41c96b
cmp ecx, edi
je 0x41c9f5
mov eax, dword [ebx + 0x95c]
mov dword [esi + 0xb0], eax
mov dword [esi + 0xac], ecx
mov edi, dword [ebp - 0x10]
lea eax, [ebp + 8]
push eax
push dword [esi + 0xac]
mov ecx, ebx
push dword [esi + 0xb0]
mov edx, dword [edi + 0x2bc]
call fcn.00416d6c
add esp, 0xc
test eax, eax
jne 0x41cb81
mov edi, dword [edi + 0x2bc]
lea eax, [ebp - 0x10]
xor ecx, ecx
push ecx
push ecx
push eax
push 4
lea eax, [ebp - 0x14]
push eax
push ecx
push ecx
push 0x4004747b
push edi
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
jne 0x41ca5d
push 4
lea eax, [ebp - 0x14]
push eax
push 0x1001
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov eax, dword [esi + 0x30]
mov ecx, dword [esi + 0x34]
mov edi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
or eax, ecx
mov eax, edi
mov dword [ebp - 0x10], ecx
cdq
mov dword [ebp + 8], eax
je 0x41cabe
mov ecx, edx
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x10], ecx
jg 0x41ca89
mov edx, dword [ebp - 0xc]
jl 0x41ca91
cmp edx, eax
jb 0x41ca91
mov edx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], edx
push edx
push dword [esi + 0xb0]
mov ecx, ebx
push 2
pop edx
call fcn.00417277
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0xc]
sub dword [esi + 0x30], ecx
sbb dword [esi + 0x34], eax
mov eax, dword [ebp + 8]
sub eax, ecx
mov dword [ebp + 8], eax
sbb edx, dword [ebp - 0x10]
mov ecx, eax
mov dword [ebp - 0x14], edx
or ecx, edx
je 0x41cafe
push eax
mov eax, dword [esi + 0xb0]
mov ecx, ebx
sub eax, dword [ebp + 8]
add eax, edi
push eax
push 4
pop edx
call fcn.00417277
mov eax, dword [ebp + 8]
add dword [esi + 0x18], eax
mov eax, dword [ebp - 0x14]
adc dword [esi + 0x1c], eax
mov eax, dword [esi + 0x18]
pop ecx
pop ecx
mov ecx, dword [esi + 0x1c]
mov dword [ebx + 0x758], eax
mov dword [ebx + 0x75c], ecx
cmp byte [esi + 0xc3], 0
je 0x41cb10
cmp byte [esi + 0xc5], 0
je 0x41cb3a
mov eax, dword [esi + 0x18]
cmp eax, dword [ebx + 0xc68]
jne 0x41cb3a
mov eax, dword [esi + 0x1c]
cmp eax, dword [ebx + 0xc6c]
jne 0x41cb3a
push str.We_are_completely_uploaded_and_fine
push ebx
mov byte [esi + 0xbe], 1
call fcn.00416c42
pop ecx
pop ecx
mov eax, dword [esi + 0xac]
cmp eax, edi
je 0x41cb54
sub eax, edi
add dword [esi + 0xb0], edi
mov dword [esi + 0xac], eax
jmp 0x41cb7f
mov ecx, ebx
call fcn.0041bbfd
test eax, eax
jne 0x41cb81
mov eax, dword [ebx + 0x8f0]
and dword [esi + 0xac], 0
cmp byte [esi + 0xbe], 0
mov dword [esi + 0xb0], eax
jne 0x41c8f8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret