Function at 0x406ee0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x49b950]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.0045d2b0
mov eax, dword [esi]
mov dword [esp + 0x28], 1
mov edi, dword [eax + 4]
cmp edi, 0xffffffff
jne 0x406f28
mov ebx, 0x2719
call fcn.0045d2b0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jmp 0x406f75
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [esp + 0x2c]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov edi, eax
call fcn.0045d2b0
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], esi
test edi, edi
jne 0x406f71
xor ebx, ebx
call fcn.0045d2b0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x20]
test ebx, ebx
je 0x406fcd
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x407189
test byte [eax + 0x1c], 2
je 0x407189
cmp byte [eax + 0x19], 2
jb 0x407189
push ebx
push dword [eax + 0x14]
mov edx, 0x48cbfc
push dword [eax + 0x10]
mov ecx, 0x69
call fcn.00401020
add esp, 0xc
mov eax, 0xffffffea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
mov eax, dword [esi]
add eax, 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.0040e780
cmp dword [esp + 0x10], 0
jne 0x407033
mov ecx, dword [0x49df20]
cmp ecx, 0x49df20
je 0x407033
test byte [ecx + 0x1c], 2
je 0x407033
cmp byte [ecx + 0x19], 5
jb 0x407033
cmp dword [esp + 0x28], 0
mov edx, str.FALSE
mov eax, str.TRUE
cmove eax, edx
push eax
push dword [ecx + 0x14]
mov edx, 0x48cbfc
push dword [ecx + 0x10]
mov ecx, 0x6a
call fcn.00401580
add esp, 0xc
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x40711a
mov dword [esp + 0x10], 0
call fcn.0045d2b0
mov ecx, dword [esi]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2c], edi
call fcn.0040b8f0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4070c5
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x407189
test byte [eax + 0x1c], 2
je 0x407189
cmp byte [eax + 0x19], 2
jb 0x407189
push ecx
push dword [eax + 0x14]
mov edx, 0x48cbfc
push dword [eax + 0x10]
mov ecx, 0x6d
call fcn.00401020
add esp, 0xc
mov eax, 0xffffffea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi]
add eax, 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e500
cmp dword [esp + 0x10], 0
jne 0x40711a
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x40711a
test byte [eax + 0x1c], 2
je 0x40711a
cmp byte [eax + 0x19], 5
jb 0x40711a
push dword [esp + 0x20]
mov edx, 0x48cbfc
push dword [eax + 0x14]
mov ecx, 0x6e
push dword [eax + 0x10]
call fcn.00401020
add esp, 0xc
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x4071f7
mov dword [esp + 0x10], 0
call fcn.0045d2b0
mov ecx, dword [esi]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
lea eax, [esp + 0x20]
push eax
mov dword [esp + 0x2c], edi
call fcn.0040b970
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x4071a0
mov eax, dword [0x49df20]
cmp eax, 0x49df20
je 0x407189
test byte [eax + 0x1c], 2
je 0x407189
cmp byte [eax + 0x19], 2
jb 0x407189
push ecx
push dword [eax + 0x14]
mov edx, 0x48cbfc
push dword [eax + 0x10]
mov ecx, 0x6f
call fcn.00401020
add esp, 0xc
mov eax, 0xffffffea
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0045d315
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
mov eax, dword [esi]
add eax, 4
push eax
lea eax, [esp + 0x24]
push eax
call fcn.0040e5c0
cmp dword [esp + 0x10], 0
jne 0x4071f7
mov ecx, dword [0x49df20]
cmp ecx, 0x49df20
je 0x4071f7
test byte [ecx + 0x1c], 2
je 0x4071f7
cmp byte [ecx + 0x19], 5
jb 0x4071f7
push dword [esp + 0x20]
mov edx, 0x48cbfc
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x70
call fcn.00401020
add esp, 0xc
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0045d315
mov esp, ebp
pop ebp
ret