Function at 0x49e6ea
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
and dword [ebp - 4], 0
push ebx
push esi
mov ebx, ecx
mov dword [ebp - 0xc], 0x10000
push edi
or edi, 0xffffffff
mov dword [ebp - 8], 1
mov esi, edx
mov eax, dword [ebx + 0x3064]
cmp eax, edi
je 0x49e726
push eax
push ebx
call dword [ebx + 0x2ff0]
pop ecx
pop ecx
mov dword [ebx + 0x3064], edi
mov ecx, ebx
mov dword [ebx + 0x3068], edi
mov dword [ebx + 0x1613c], 1
call fcn.0049deee
test eax, eax
je 0x49e761
push 0x17
push str.TCP_init_failed_in_soap_bind__
mov ecx, ebx
call fcn.0049e0d2
mov edx, eax
mov ecx, ebx
call fcn.004a692f
pop ecx
pop ecx
mov eax, edi
jmp 0x49e9c3
xor eax, eax
mov dword [ebx + 0x1613c], 2
push 8
pop ecx
lea edi, [ebp - 0x54]
mov edx, 0xe76
rep stosd dword es:[edi], eax
and dword [ebp - 0x50], eax
mov ecx, ebx
test byte [ebx + 0xc], 4
mov dword [ebp - 0x54], 1
setne al
inc eax
mov dword [ebp - 0x4c], eax
call fcn.004a27f5
lea ecx, [ebp - 4]
mov edx, eax
push ecx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, esi
call fcn.004999e0
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x49e7eb
push 8
pop ecx
push dword [eax + 0x10]
mov esi, eax
lea edi, [ebp - 0x34]
push dword [eax + 0x18]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + 0x171c0]
push edi
call fcn.005b98c0
mov ecx, dword [ebp - 4]
add esp, 0xc
mov esi, dword [ecx + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebx + 0x17240], esi
call fcn.00499a19
mov ecx, dword [ebp - 0x14]
jmp 0x49e7f4
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x49e817
push 0x17
push str.getaddrinfo_failed_in_soap_bind__
call fcn.0049bbd4
mov edx, eax
mov ecx, ebx
call fcn.004a692f
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x49e9c3
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x30]
call dword [sym.imp.WS2_32.dll_socket]
and dword [ebx + 0x1613c], 0
mov dword [ebx + 0x3064], eax
cmp eax, 0xffffffff
jne 0x49e854
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.socket_failed_in_soap_bind__
mov dword [ebx + 0x16140], eax
mov ecx, ebx
call fcn.0049e0d2
jmp 0x49e804
test byte [ebx + 0xc], 4
je 0x49e860
mov dword [ebx + 0x3068], eax
cmp dword [ebx + 0x44], 0
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x49e890
push 4
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 0x44]
push 0xffff
push eax
call esi
test eax, eax
je 0x49e890
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_failed_in_soap_bind__
jmp 0x49e845
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
test al, 0x10
je 0x49e8c2
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push dword [ebx + 0x3064]
call esi
test eax, eax
je 0x49e8c2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_SO_KEEPALIVE_failed_in_soap_bind__
jmp 0x49e845
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push dword [ebx + 0x3064]
call esi
test eax, eax
je 0x49e8f0
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_SO_SNDBUF_failed_in_soap_bind__
jmp 0x49e845
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1002
push 0xffff
push dword [ebx + 0x3064]
call esi
test eax, eax
je 0x49e91e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_SO_RCVBUF_failed_in_soap_bind__
jmp 0x49e845
test byte [ebx + 0xc], 4
jne 0x49e94c
push 4
lea eax, [ebp - 8]
push eax
push 1
push 6
push dword [ebx + 0x3064]
call esi
test eax, eax
je 0x49e94c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_TCP_NODELAY_failed_in_soap_bind__
jmp 0x49e845
push dword [ebp - 0x10]
and dword [ebx + 0x1613c], 0
push edi
push dword [ebx + 0x3064]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
je 0x49e986
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, ebx
mov dword [ebx + 0x16140], eax
call fcn.0049ebe9
push 0x17
push str.bind_failed_in_soap_bind__
jmp 0x49e84b
test byte [ebx + 0xc], 4
jne 0x49e9bd
push 0
push dword [ebx + 0x3064]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x49e9bd
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, ebx
mov dword [ebx + 0x16140], eax
call fcn.0049ebe9
push 0x17
push str.listen_failed_in_soap_bind__
jmp 0x49e84b
mov eax, dword [ebx + 0x3064]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret