Function at 0x406e80
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x49a690]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, ecx
push edi
mov dword [esp + 0x20], esi
call fcn.0045db30
mov eax, dword [esi]
mov dword [esp + 0x28], 1
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x406ec7
mov ebx, 0x2719
call fcn.0045db30
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
jmp 0x406f14
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.0045db30
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 0x406f10
xor ebx, ebx
call fcn.0045db30
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], eax
mov esi, dword [esp + 0x20]
test ebx, ebx
je 0x406f6c
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x407120
test byte [eax + 0x1c], 2
je 0x407120
cmp byte [eax + 0x19], 2
jb 0x407120
push ebx
push dword [eax + 0x14]
mov edx, 0x48bbf4
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.0045db95
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x2c]
push eax
push dword [esi]
lea eax, [esp + 0x2c]
push eax
call fcn.0040ea10
cmp dword [esp + 0x10], 0
jne 0x406fce
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x406fce
test byte [ecx + 0x1c], 2
je 0x406fce
cmp byte [ecx + 0x19], 5
jb 0x406fce
cmp dword [esp + 0x28], 0
mov edx, str.FALSE
mov eax, str.TRUE
cmove eax, edx
push eax
push dword [ecx + 0x14]
mov edx, 0x48bbf4
push dword [ecx + 0x10]
mov ecx, 0x6a
call fcn.00401580
add esp, 0xc
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4070b1
mov dword [esp + 0x10], 0
call fcn.0045db30
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.0040b820
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x407060
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x407120
test byte [eax + 0x1c], 2
je 0x407120
cmp byte [eax + 0x19], 2
jb 0x407120
push ecx
push dword [eax + 0x14]
mov edx, 0x48bbf4
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.0045db95
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esi]
lea eax, [esp + 0x24]
push eax
call fcn.0040e7d0
cmp dword [esp + 0x10], 0
jne 0x4070b1
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x4070b1
test byte [eax + 0x1c], 2
je 0x4070b1
cmp byte [eax + 0x19], 5
jb 0x4070b1
push dword [esp + 0x20]
mov edx, 0x48bbf4
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 0x40718a
mov dword [esp + 0x10], 0
call fcn.0045db30
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.0040b8a0
mov ecx, dword [esp + 0x10]
test ecx, ecx
je 0x407137
mov eax, dword [0x49cf18]
cmp eax, 0x49cf18
je 0x407120
test byte [eax + 0x1c], 2
je 0x407120
cmp byte [eax + 0x19], 2
jb 0x407120
push ecx
push dword [eax + 0x14]
mov edx, 0x48bbf4
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.0045db95
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x24]
push eax
push dword [esi]
lea eax, [esp + 0x24]
push eax
call fcn.0040e890
cmp dword [esp + 0x10], 0
jne 0x40718a
mov ecx, dword [0x49cf18]
cmp ecx, 0x49cf18
je 0x40718a
test byte [ecx + 0x1c], 2
je 0x40718a
cmp byte [ecx + 0x19], 5
jb 0x40718a
push dword [esp + 0x20]
mov edx, 0x48bbf4
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.0045db95
mov esp, ebp
pop ebp
ret