Function at 0x5a0b7c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0x11c], edx
mov dword [ebp - 0x118], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a0f64
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x484], 0
jne 0x5a0bcf
mov eax, 0x2726
call sym.MassSender.exe__Wsocket_WSocket_WSASetLastError_qqri
mov edx, 0x5a0f7c
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0f46
mov eax, dword [ebp - 4]
cmp byte [eax + 0x478], 0
jne 0x5a0bf7
mov eax, 0x2726
call sym.MassSender.exe__Wsocket_WSocket_WSASetLastError_qqri
mov edx, 0x5a0fa0
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0f46
mov eax, dword [ebp - 4]
cmp byte [eax + 0x470], 0
jne 0x5a0c1f
mov eax, 0x2726
call sym.MassSender.exe__Wsocket_WSocket_WSASetLastError_qqri
mov edx, 0x5a0fc8
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0f46
xor eax, eax
push ebp
push 0x5a0d11
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x479], 0
jne 0x5a0c7d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x47c]
call sym.MassSender.exe__Wsocket_WSocketResolveProto_qqr17System_AnsiString
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x474], ebx
cmp ebx, 0x11
jne 0x5a0c66
mov eax, dword [ebp - 4]
mov dword [eax + 0x498], 2
jmp 0x5a0c73
mov eax, dword [ebp - 4]
mov dword [eax + 0x498], 1
mov eax, dword [ebp - 4]
mov byte [eax + 0x479], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x485], 0
jne 0x5a0cda
lea edx, [ebp - 0x118]
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_GetProto_qqrv
mov edx, dword [ebp - 0x118]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x480]
call sym.MassSender.exe__Wsocket_WSocketResolvePort_qqr17System_AnsiStringt1
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x488], eax
mov eax, dword [ebp - 4]
mov ax, word [eax + 0x488]
call sym.MassSender.exe__Wsocket_WSocket_htons_qqrus
mov edx, dword [ebp - 4]
mov word [edx + 0x54a], ax
mov eax, dword [ebp - 4]
mov byte [eax + 0x485], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 0
jne 0x5a0d07
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x464]
call sym.MassSender.exe__Wsocket_WSocketResolveHost_qqr17System_AnsiString
mov edx, dword [ebp - 4]
mov dword [edx + 0x54c], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x468], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x5a0d54
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_DeleteBufferedData_qqrv
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x474]
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x498]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x46c]
call sym.MassSender.exe__Wsocket_WSocket_socket_qqriii
mov ebx, eax
mov eax, dword [ebp - 4]
mov dword [eax + 0x460], ebx
inc ebx
jne 0x5a0d9c
mov edx, 0x5a1004
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0f46
mov eax, dword [ebp - 4]
cmp dword [eax + 0x498], 2
jne 0x5a0ded
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d4], 0
je 0x5a0ded
mov dword [ebp - 8], 0xffffffff
push 4
lea eax, [ebp - 8]
push eax
push 4
push 0xffff
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
push eax
call sub.WSOCK32.DLL_setsockopt
test eax, eax
je 0x5a0ded
mov edx, 0x5a1014
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0f46
mov eax, dword [ebp - 4]
lea edx, [eax + 0x548]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
mov ecx, 0x10
call sym.MassSender.exe__Wsocket_WSocket_bind_qqrir11sockaddr_ini
test eax, eax
jne 0x5a0e19
mov dl, 2
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_ChangeState_qqr20Wsocket_TSocketState
jmp 0x5a0e36
mov edx, 0x5a1038
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x90]
jmp 0x5a0f46
mov eax, dword [ebp - 4]
cmp dword [eax + 0x498], 2
jne 0x5a0eaa
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4c9], 0
je 0x5a0eaa
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x4cc]
lea eax, [ebp - 0x111]
call fcn.00691ee8
lea eax, [ebp - 0x111]
push eax
call sub.WSOCK32.DLL_inet_addr
mov dword [ebp - 0x10], eax
push 0
call sub.WSOCK32.DLL_htonl
mov dword [ebp - 0xc], eax
push 8
lea eax, [ebp - 0x10]
push eax
push 5
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
push eax
call sub.WSOCK32.DLL_setsockopt
test eax, eax
je 0x5a0eaa
mov edx, 0x5a1048
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0f46
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x498]
cmp eax, 2
jne 0x5a0ed8
mov dl, 6
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_ChangeState_qqr20Wsocket_TSocketState
mov dl, 4
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_ChangeState_qqr20Wsocket_TSocketState
xor edx, edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
jmp 0x5a0f0d
dec eax
jne 0x5a0f0d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
mov edx, 5
call sym.MassSender.exe__Wsocket_WSocket_listen_qqrii
test eax, eax
jne 0x5a0efe
mov dl, 6
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_ChangeState_qqr20Wsocket_TSocketState
jmp 0x5a0f0d
mov edx, 0x5a106c
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0f46
mov edx, dword [ebp - 4]
mov eax, 0x2b
mov dword [edx + 0x4dc], eax
push eax
mov eax, dword [ebp - 4]
mov edx, dword [eax + 0x40]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
mov ecx, 0x401
call sym.MassSender.exe__Wsocket_WSocket_WSAAsyncSelect_qqriuiii
test eax, eax
je 0x5a0f46
mov edx, 0x5a107c
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5a0f6b
lea eax, [ebp - 0x11c]
mov edx, 2
call fcn.0069a958
ret