Function at 0x4a4d2b
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 0x4a4d67
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.004a452f
test eax, eax
je 0x4a4da2
push 0x17
push str.TCP_init_failed_in_soap_bind__
mov ecx, ebx
call fcn.004a4713
mov edx, eax
mov ecx, ebx
call fcn.004acf70
pop ecx
pop ecx
mov eax, edi
jmp 0x4a5004
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.004a8e36
lea ecx, [ebp - 4]
mov edx, eax
push ecx
lea ecx, [ebp - 0x54]
push ecx
mov ecx, esi
call fcn.004a000d
mov ecx, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], ecx
test eax, eax
je 0x4a4e2c
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.005e1ae0
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.004a0046
mov ecx, dword [ebp - 0x14]
jmp 0x4a4e35
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
test ecx, ecx
je 0x4a4e58
push 0x17
push str.getaddrinfo_failed_in_soap_bind__
call fcn.004a2215
mov edx, eax
mov ecx, ebx
call fcn.004acf70
pop ecx
pop ecx
or eax, 0xffffffff
jmp 0x4a5004
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 0x4a4e95
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.004a4713
jmp 0x4a4e45
test byte [ebx + 0xc], 4
je 0x4a4ea1
mov dword [ebx + 0x3068], eax
cmp dword [ebx + 0x44], 0
mov esi, dword [sym.imp.WS2_32.dll_setsockopt]
je 0x4a4ed1
push 4
lea ecx, [ebp - 8]
push ecx
push dword [ebx + 0x44]
push 0xffff
push eax
call esi
test eax, eax
je 0x4a4ed1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_failed_in_soap_bind__
jmp 0x4a4e86
mov eax, dword [ebx + 8]
or eax, dword [ebx + 0xc]
test al, 0x10
je 0x4a4f03
push 4
lea eax, [ebp - 8]
push eax
push 8
push 0xffff
push dword [ebx + 0x3064]
call esi
test eax, eax
je 0x4a4f03
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_SO_KEEPALIVE_failed_in_soap_bind__
jmp 0x4a4e86
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
push dword [ebx + 0x3064]
call esi
test eax, eax
je 0x4a4f31
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_SO_SNDBUF_failed_in_soap_bind__
jmp 0x4a4e86
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1002
push 0xffff
push dword [ebx + 0x3064]
call esi
test eax, eax
je 0x4a4f5f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_SO_RCVBUF_failed_in_soap_bind__
jmp 0x4a4e86
test byte [ebx + 0xc], 4
jne 0x4a4f8d
push 4
lea eax, [ebp - 8]
push eax
push 1
push 6
push dword [ebx + 0x3064]
call esi
test eax, eax
je 0x4a4f8d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x17
push str.setsockopt_TCP_NODELAY_failed_in_soap_bind__
jmp 0x4a4e86
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 0x4a4fc7
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, ebx
mov dword [ebx + 0x16140], eax
call fcn.004a522a
push 0x17
push str.bind_failed_in_soap_bind__
jmp 0x4a4e8c
test byte [ebx + 0xc], 4
jne 0x4a4ffe
push 0
push dword [ebx + 0x3064]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
je 0x4a4ffe
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, ebx
mov dword [ebx + 0x16140], eax
call fcn.004a522a
push 0x17
push str.listen_failed_in_soap_bind__
jmp 0x4a4e8c
mov eax, dword [ebx + 0x3064]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret