Function at 0x5a04d0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5a09a0
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x460], 0xffffffff
je 0x5a0518
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4d6], 7
je 0x5a0518
mov edx, 0x5a09b8
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x5a0985
mov eax, dword [ebp - 4]
cmp byte [eax + 0x484], 0
jne 0x5a0536
mov edx, 0x5a09e0
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x5a0985
mov eax, dword [ebp - 4]
cmp byte [eax + 0x470], 0
jne 0x5a0554
mov edx, 0x5a0a04
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x5a0985
mov eax, dword [ebp - 4]
cmp byte [eax + 0x478], 0
jne 0x5a0572
mov edx, 0x5a0a30
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x5c]
jmp 0x5a0985
xor eax, eax
push ebp
push 0x5a069c
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x479], 0
jne 0x5a05d0
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 0x5a05b9
mov eax, dword [ebp - 4]
mov dword [eax + 0x498], 2
jmp 0x5a05c6
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 0x5a0627
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_GetProto_qqrv
mov edx, dword [ebp - 0xc]
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 + 0x47a], 0
jne 0x5a0665
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_GetProto_qqrv
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x48c]
call sym.MassSender.exe__Wsocket_WSocketResolvePort_qqr17System_AnsiStringt1
movzx eax, ax
mov edx, dword [ebp - 4]
mov dword [edx + 0x490], eax
mov eax, dword [ebp - 4]
mov byte [eax + 0x47a], 1
mov eax, dword [ebp - 4]
cmp byte [eax + 0x468], 0
jne 0x5a0692
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 0x5a06d9
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 0x5a0721
mov edx, 0x5a0a6c
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0985
mov dl, 1
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_ChangeState_qqr20Wsocket_TSocketState
mov eax, dword [ebp - 4]
cmp dword [eax + 0x498], 2
jne 0x5a07de
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
mov eax, dword [ebp - 4]
cmp byte [eax + 0x4c9], 0
je 0x5a078f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x4d0]
cmp eax, 1
je 0x5a078f
mov dword [ebp - 8], eax
push 4
lea eax, [ebp - 8]
push eax
push 3
push 0
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
push eax
call sub.WSOCK32.DLL_setsockopt
test eax, eax
je 0x5a078f
mov edx, 0x5a0a88
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0985
mov eax, dword [ebp - 4]
cmp dword [eax + 0x54c], 0xffffffff
jne 0x5a08cc
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
mov ecx, 0x20
mov edx, 0xffff
call sym.MassSender.exe__Wsocket_WSocket_setsockopt_qqriiipci
test eax, eax
je 0x5a08cc
mov edx, 0x5a0ab0
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0985
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
mov ecx, 4
mov edx, 0xffff
call sym.MassSender.exe__Wsocket_WSocket_setsockopt_qqriiipci
test eax, eax
je 0x5a0819
mov edx, 0x5a0ad4
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0985
mov eax, dword [ebp - 4]
test byte [eax + 0x4d5], 2
je 0x5a0860
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
mov ecx, 1
mov edx, 6
call sym.MassSender.exe__Wsocket_WSocket_setsockopt_qqriiipci
test eax, eax
je 0x5a0860
mov edx, 0x5a0af8
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0985
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SetLingerOption_qqrv
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 8]
push eax
push 4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x460]
mov ecx, 8
mov edx, 0xffff
call sym.MassSender.exe__Wsocket_WSocket_setsockopt_qqriiipci
test eax, eax
je 0x5a08a3
mov edx, 0x5a0b28
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0985
mov eax, dword [ebp - 4]
cmp dword [eax + 0x490], 0
jne 0x5a08c4
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x494]
mov edx, 0x5a0b4c
call fcn.0069acc4
je 0x5a08cc
mov eax, dword [ebp - 4]
mov edx, dword [eax]
call dword [edx + 0x50]
mov edx, dword [ebp - 4]
mov eax, 0x3b
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 0x5a0907
mov edx, 0x5a0b5c
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_SocketError_qqr17System_AnsiString
jmp 0x5a0985
mov eax, dword [ebp - 4]
cmp dword [eax + 0x498], 2
jne 0x5a0929
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 0x5a0985
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_connect_qqrir11sockaddr_ini
test eax, eax
jne 0x5a0955
mov dl, 3
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_ChangeState_qqr20Wsocket_TSocketState
jmp 0x5a0985
call sym.MassSender.exe__Wsocket_WSocket_WSAGetLastError_qqrv
cmp eax, 0x2733
jne 0x5a096d
mov dl, 3
mov eax, dword [ebp - 4]
call sym.MassSender.exe__Wsocket_TCustomWSocket_ChangeState_qqr20Wsocket_TSocketState
jmp 0x5a0985
call sym.MassSender.exe__Wsocket_WSocket_WSAGetLastError_qqrv
mov edx, dword [ebp - 4]
mov dword [edx + 0x3c], eax
mov edx, 0x5a0b74
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 0x5a09a7
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0069a958
ret