Function at 0x407f90
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a35f8
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x4cf084]
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.00472b60
mov eax, dword [esi]
mov dword [ebp - 0x18], 1
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x407fe3
call fcn.00472b60
mov ecx, 0x2719
jmp 0x40801c
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.00472b60
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, eax
test esi, esi
jne 0x408019
call fcn.00472b60
xor ecx, ecx
mov esi, dword [ebp - 0x14]
xor edx, edx
mov eax, fcn.00412a70
test ecx, ecx
cmove eax, edx
test eax, eax
je 0x408067
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x40805d
test byte [eax + 0x1c], 2
je 0x40805d
cmp byte [eax + 0x19], 2
jb 0x40805d
push ecx
push dword [eax + 0x14]
mov edx, 0x4bb9ac
mov ecx, 0x69
push dword [eax + 0x10]
call fcn.00401960
add esp, 0xc
mov ebx, 0xffffffea
jmp 0x4082a4
mov eax, dword [esi]
mov edi, dword [eax]
cmp edi, 0xffffffff
jne 0x40807a
call fcn.00472b60
jmp 0x408121
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.00472b60
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test esi, esi
jne 0x4080ba
call fcn.00472b60
jmp 0x4080be
test eax, eax
jne 0x40811e
sub edi, 1
je 0x4080d1
sub edi, 3
jne 0x4082c2
mov eax, dword [ebp - 0x18]
jmp 0x4080dc
xor eax, eax
cmp byte [ebp - 0x18], al
setne al
mov dword [ebp - 0x18], eax
mov edx, dword [0x4cfa10]
cmp edx, 0x4cfa10
je 0x40811e
test byte [edx + 0x1c], 2
je 0x40811e
cmp byte [edx + 0x19], 5
jb 0x40811e
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, 0x4bb9ac
call fcn.00401f10
add esp, 0xc
mov esi, dword [ebp - 0x14]
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4081e3
mov dword [ebp - 0x20], ebx
call fcn.00472b60
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.0040f3f0
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x408198
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x40805d
test byte [eax + 0x1c], 2
je 0x40805d
cmp byte [eax + 0x19], 2
jb 0x40805d
push ecx
push dword [eax + 0x14]
mov edx, 0x4bb9ac
mov ecx, 0x6d
push dword [eax + 0x10]
call fcn.00401960
mov ebx, 0xffffffea
jmp 0x4082a1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea eax, [ebp - 0x30]
push eax
call fcn.0040f470
cmp dword [ebp - 0x20], ebx
jne 0x4081e3
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x4081e3
test byte [eax + 0x1c], 2
je 0x4081e3
cmp byte [eax + 0x19], 5
jb 0x4081e3
push dword [ebp - 0x14]
mov edx, 0x4bb9ac
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 0x4082a4
mov dword [ebp - 0x20], ebx
call fcn.00472b60
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.0040f520
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x408257
mov eax, dword [0x4cfa10]
cmp eax, 0x4cfa10
je 0x40805d
test byte [eax + 0x1c], 2
je 0x40805d
cmp byte [eax + 0x19], 2
jb 0x40805d
push ecx
push dword [eax + 0x14]
mov edx, 0x4bb9ac
mov ecx, 0x6f
push dword [eax + 0x10]
call fcn.00401960
mov ebx, 0xffffffea
jmp 0x4082a1
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x24]
push eax
push dword [esi]
lea eax, [ebp - 0x30]
push eax
call fcn.0040f5a0
cmp dword [ebp - 0x20], ebx
jne 0x4082a4
mov ecx, dword [0x4cfa10]
cmp ecx, 0x4cfa10
je 0x4082a4
test byte [ecx + 0x1c], 2
je 0x4082a4
cmp byte [ecx + 0x19], 5
jb 0x4082a4
push dword [ebp - 0x24]
mov edx, 0x4bb9ac
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.00477156
mov esp, ebp
pop ebp
ret
push str.boolean_socket_option_resize
lea ecx, [ebp - 0x34]
call fcn.00411dd0
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0
call fcn.00411370
int3