Function at 0x408060
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a49f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4d0084]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
xor ebx, ebx
call fcn.00473ff0
mov eax, dword [esi]
mov dword [ebp - 0x18], 1
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x4080b3
call fcn.00473ff0
mov ecx, 0x2719
jmp 0x4080ec
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
mov esi, eax
call fcn.00473ff0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test esi, esi
jne 0x4080e9
call fcn.00473ff0
xor ecx, ecx
mov esi, dword [ebp - 0x14]
xor edx, edx
mov eax, fcn.00412b40
test ecx, ecx
cmove eax, edx
test eax, eax
je 0x408137
mov eax, dword [0x4d0a10]
cmp eax, 0x4d0a10
je 0x40812d
test byte [eax + 0x1c], 2
je 0x40812d
cmp byte [eax + 0x19], 2
jb 0x40812d
push ecx
push dword [eax + 0x14]
mov edx, 0x4bca90
mov ecx, 0x69
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
mov ebx, 0xffffffea
jmp 0x408374
mov eax, dword [esi]
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x40814a
call fcn.00473ff0
jmp 0x4081f1
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], 4
push eax
lea eax, [ebp - 0x18]
push eax
push 4
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_getsockopt]
mov edi, dword [ebp - 0x24]
mov esi, eax
call fcn.00473ff0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x40818a
call fcn.00473ff0
jmp 0x40818e
test eax, eax
jne 0x4081ee
sub edi, 1
je 0x4081a1
sub edi, 3
jne 0x408392
mov eax, dword [ebp - 0x18]
jmp 0x4081ac
xor eax, eax
cmp byte [ebp - 0x18], al
setne al
mov dword [ebp - 0x18], eax
mov edx, dword [0x4d0a10]
cmp edx, 0x4d0a10
je 0x4081ee
test byte [edx + 0x1c], 2
je 0x4081ee
cmp byte [edx + 0x19], 5
jb 0x4081ee
test eax, eax
mov ecx, str.TRUE
mov esi, str.FALSE
cmove ecx, esi
push ecx
push dword [edx + 0x14]
mov ecx, 0x6a
push dword [edx + 0x10]
mov edx, 0x4bca90
call fcn.00401f10
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4082b3
mov dword [ebp - 0x20], ebx
call fcn.00473ff0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], edi
push eax
push dword [esi]
lea eax, [ebp - 0x28]
push eax
call fcn.0040f4c0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x408268
mov eax, dword [0x4d0a10]
cmp eax, 0x4d0a10
je 0x40812d
test byte [eax + 0x1c], 2
je 0x40812d
cmp byte [eax + 0x19], 2
jb 0x40812d
push ecx
push dword [eax + 0x14]
mov edx, 0x4bca90
mov ecx, 0x6d
push dword [eax + 0x10]
call fcn.00401960
mov ebx, 0xffffffea
jmp 0x408371
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea eax, [ebp - 0x30]
push eax
call fcn.0040f540
cmp dword [ebp - 0x20], ebx
jne 0x4082b3
mov eax, dword [0x4d0a10]
cmp eax, 0x4d0a10
je 0x4082b3
test byte [eax + 0x1c], 2
je 0x4082b3
cmp byte [eax + 0x19], 5
jb 0x4082b3
push dword [ebp - 0x14]
mov edx, 0x4bca90
mov ecx, 0x6e
push dword [eax + 0x14]
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x408374
mov dword [ebp - 0x20], ebx
call fcn.00473ff0
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], edi
push eax
push dword [esi]
lea eax, [ebp - 0x30]
push eax
call fcn.0040f5f0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x408327
mov eax, dword [0x4d0a10]
cmp eax, 0x4d0a10
je 0x40812d
test byte [eax + 0x1c], 2
je 0x40812d
cmp byte [eax + 0x19], 2
jb 0x40812d
push ecx
push dword [eax + 0x14]
mov edx, 0x4bca90
mov ecx, 0x6f
push dword [eax + 0x10]
call fcn.00401960
mov ebx, 0xffffffea
jmp 0x408371
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi]
lea eax, [ebp - 0x30]
push eax
call fcn.0040f670
cmp dword [ebp - 0x20], ebx
jne 0x408374
mov ecx, dword [0x4d0a10]
cmp ecx, 0x4d0a10
je 0x408374
test byte [ecx + 0x1c], 2
je 0x408374
cmp byte [ecx + 0x19], 5
jb 0x408374
push dword [ebp - 0x24]
mov edx, 0x4bca90
push dword [ecx + 0x14]
push dword [ecx + 0x10]
mov ecx, 0x70
call fcn.00401960
add esp, 0xc
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004785e6
mov esp, ebp
pop ebp
ret
push str.boolean_socket_option_resize
lea ecx, [ebp - 0x34]
call fcn.00411ea0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.00411440
int3