Function at 0x100a70f0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
cmp dword [esp + 0x1c], 0
push ebx
mov ebx, dword [esp + 0x18]
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 4
jne 0x100a712b
mov edx, dword [esp + 0x28]
lea edi, [esp + 0x18]
mov ecx, ebx
call fcn.100a6fd0
mov esi, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
jmp 0x100a71a0
cmp ebx, 0x1001
jne 0x100a7148
cmp dword [esp + 0x28], 0
je 0x100a7141
mov esi, str.server_send_buffer
jmp 0x100a716a
mov esi, str.client_send_buffer
jmp 0x100a716a
cmp ebx, 0x1002
jne 0x100a7165
cmp dword [esp + 0x28], 0
je 0x100a715e
mov esi, str.server_receive_buffer
jmp 0x100a716a
mov esi, str.client_receive_buffer
jmp 0x100a716a
mov esi, str.unknown_buffer
call fcn.10095620
test eax, eax
je 0x100a71a0
mov eax, dword [esp + 0x2c]
push eax
push esi
push str.Requested__s_is__d_n
push str.verbose:socket:buffer
call fcn.100955c0
mov ecx, dword [esp + 0x3c]
push ecx
push esi
push str.Requested__s_is__d_n
push str.verbose:socket:buffer
call fcn.10095470
add esp, 0x20
mov edi, 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 ebx
push 0xffff
push edi
call ebp
test eax, eax
jne 0x100a7234
cmp dword [esp + 0x14], 4
jne 0x100a7234
call fcn.10095620
test eax, eax
je 0x100a71fe
mov ecx, dword [esp + 0x10]
push ecx
push esi
push str.Original__s_is__d_n
push str.verbose:socket:buffer
call fcn.100955c0
mov edx, dword [esp + 0x20]
push edx
push esi
push str.Original__s_is__d_n
push str.verbose:socket:buffer
call fcn.10095470
add esp, 0x20
mov eax, dword [esp + 0x10]
cmp eax, dword [esp + 0x2c]
jl 0x100a7234
call fcn.10095620
test eax, eax
je 0x100a7234
push esi
push str.New__s_size_is_smaller_than_original__n
push str.verbose:socket:buffer
call fcn.100955c0
push esi
push str.New__s_size_is_smaller_than_original__n
push str.verbose:socket:buffer
call fcn.10095470
add esp, 0x18
cmp dword [esp + 0x2c], 0
jg 0x100a727d
call fcn.10095620
test eax, eax
je 0x100a7271
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.100955c0
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.10095470
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 ebx
push 0xffff
push edi
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jne 0x100a736f
call fcn.10095620
test eax, eax
je 0x100a7345
push str.socket:buffer
call fcn.100953e0
add esp, 4
test eax, eax
jne 0x100a7345
call fcn.10095620
test eax, eax
je 0x100a72f1
mov ecx, dword [esp + 0x2c]
push ecx
push esi
push str.Set__s_to__d_n
push str.socket:buffer
call fcn.100955c0
mov edx, dword [esp + 0x3c]
push edx
push esi
push str.Set__s_to__d_n
push str.socket:buffer
call fcn.10095470
add esp, 0x20
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0xffff
push edi
call ebp
test eax, eax
jne 0x100a7345
cmp dword [esp + 0x14], 4
jne 0x100a7345
call fcn.10095620
test eax, eax
je 0x100a7345
mov edx, dword [esp + 0x10]
push edx
push esi
push str.Now__s_is__d_n
push str.verbose:socket:buffer
call fcn.100955c0
mov eax, dword [esp + 0x20]
push eax
push esi
push str.Now__s_is__d_n
push str.verbose:socket:buffer
call fcn.10095470
add esp, 0x20
mov eax, dword [esp + 0x2c]
cmp dword [esp + 0x10], eax
jge 0x100a73ef
push eax
push ebx
push edi
call fcn.100a6d60
add esp, 0xc
cmp eax, 0xffffffff
je 0x100a73eb
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
call fcn.10095620
test eax, eax
je 0x100a73d7
push 0x140
push str.D:P4VSRC_COMMON_SFHostCommonSamsungFrameworkSourcesMAINSamsungFrameworkCmnNetSNMP_snmplib_transports_snmpSocketBaseDomain.c
push str.__s___d:_n
push str.trace
call fcn.100955c0
push 0x140
push str.D:P4VSRC_COMMON_SFHostCommonSamsungFrameworkSourcesMAINSamsungFrameworkCmnNetSNMP_snmplib_transports_snmpSocketBaseDomain.c
push str.__s___d:_n
push str.trace
call fcn.10095470
mov ecx, dword [esp + 0x4c]
push ecx
push esi
push str.couldnt_set__s_to__d_n
push str.socket:buffer
call fcn.100955c0
mov edx, dword [esp + 0x5c]
push edx
push esi
push str.couldnt_set__s_to__d_n
push str.socket:buffer
call fcn.10095470
add esp, 0x40
mov eax, dword [esp + 0x2c]
push eax
push ebx
push edi
call fcn.100a6d60
add esp, 0xc
cmp eax, 0xffffffff
jne 0x100a73ef
mov eax, dword [esp + 0x2c]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret