Function at 0x42cf50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
jne 0x42cf8b
lea eax, [esp + 0x18]
mov edx, edi
call fcn.0042ce60
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x42cfca
mov eax, edi
call fcn.0042ce20
mov esi, eax
call fcn.004051c0
test eax, eax
je 0x42cfca
mov eax, dword [esp + 0x2c]
push eax
push esi
push str.Requested__s_is__d_n
push str.verbose:socket:buffer
call fcn.00405190
mov ecx, dword [esp + 0x3c]
push ecx
push esi
push str.Requested__s_is__d_n
push str.verbose:socket:buffer
call fcn.00405040
add esp, 0x20
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.WS2_32.dll_getsockopt]
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push edi
push 0xffff
push ebx
call ebp
test eax, eax
jne 0x42d05e
cmp dword [esp + 0x14], 4
jne 0x42d05e
call fcn.004051c0
test eax, eax
je 0x42d028
mov ecx, dword [esp + 0x10]
push ecx
push esi
push str.Original__s_is__d_n
push str.verbose:socket:buffer
call fcn.00405190
mov edx, dword [esp + 0x20]
push edx
push esi
push str.Original__s_is__d_n
push str.verbose:socket:buffer
call fcn.00405040
add esp, 0x20
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jl 0x42d05e
call fcn.004051c0
test eax, eax
je 0x42d05e
push esi
push str.New__s_size_is_smaller_than_original__n
push str.verbose:socket:buffer
call fcn.00405190
push esi
push str.New__s_size_is_smaller_than_original__n
push str.verbose:socket:buffer
call fcn.00405040
add esp, 0x18
cmp dword [esp + 0x2c], 0
jg 0x42d0a7
call fcn.004051c0
test eax, eax
je 0x42d09b
mov ecx, dword [esp + 0x10]
push ecx
push esi
push str._s_not_valid_or_not_specified__using_OS_default__d__n
push str.socket:buffer
call fcn.00405190
mov edx, dword [esp + 0x20]
push edx
push esi
push str._s_not_valid_or_not_specified__using_OS_default__d__n
push str.socket:buffer
call fcn.00405040
add esp, 0x20
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
push 4
lea eax, [esp + 0x30]
push eax
push edi
push 0xffff
push ebx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x42d199
call fcn.004051c0
test eax, eax
je 0x42d16f
push str.socket:buffer
call fcn.00404f90
add esp, 4
test eax, eax
jne 0x42d16f
call fcn.004051c0
test eax, eax
je 0x42d11b
mov ecx, dword [esp + 0x2c]
push ecx
push esi
push str.Set__s_to__d_n
push str.socket:buffer
call fcn.00405190
mov edx, dword [esp + 0x3c]
push edx
push esi
push str.Set__s_to__d_n
push str.socket:buffer
call fcn.00405040
add esp, 0x20
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push edi
push 0xffff
push ebx
call ebp
test eax, eax
jne 0x42d16f
cmp dword [esp + 0x14], 4
jne 0x42d16f
call fcn.004051c0
test eax, eax
je 0x42d16f
mov edx, dword [esp + 0x10]
push edx
push esi
push str.Now__s_is__d_n
push str.verbose:socket:buffer
call fcn.00405190
mov eax, dword [esp + 0x20]
push eax
push esi
push str.Now__s_is__d_n
push str.verbose:socket:buffer
call fcn.00405040
add esp, 0x20
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x10], eax
jge 0x42d219
push eax
push edi
push ebx
call fcn.0042cb90
add esp, 0xc
cmp eax, 0xffffffff
je 0x42d215
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call fcn.004051c0
test eax, eax
je 0x42d201
push 0x1d1
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405190
push 0x1d1
push str....._snmplib_snmpUDPDomain.c
push 0x473320
push 0x473318
call fcn.00405040
mov ecx, dword [esp + 0x4c]
push ecx
push esi
push str.couldnt_set__s_to__d_n
push str.socket:buffer
call fcn.00405190
mov edx, dword [esp + 0x5c]
push edx
push esi
push str.couldnt_set__s_to__d_n
push str.socket:buffer
call fcn.00405040
add esp, 0x40
mov eax, dword [esp + 0x2c]
push eax
push edi
push ebx
call fcn.0042cb90
add esp, 0xc
cmp eax, 0xffffffff
jne 0x42d219
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret