Function at 0x5c9390
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Receive data
Receive data on socket
Send data
Send data on socket

Disassembly:
push 0xffffffffffffffff
push 0x799f73
mov eax, dword fs:[0]
push eax
mov eax, 0x108c
call fcn.00564f40
mov eax, dword [0x856918]
xor eax, esp
mov dword [esp + 0x1088], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x856918]
xor eax, esp
push eax
lea eax, [esp + 0x10a0]
mov dword fs:[0], eax
mov eax, dword [esp + 0x10b4]
mov ecx, dword [esp + 0x10bc]
mov edi, dword [esp + 0x10b0]
mov ebp, dword [esp + 0x10c0]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
test eax, eax
je 0x5c9712
cmp dword [esp + 0x10b8], 0
je 0x5c9712
push edi
call fcn.00406ba9
mov esi, eax
add esp, 4
test esi, esi
je 0x5c96cd
cmp esi, 0xffffffff
je 0x5c96cd
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x5c949d
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
lea edx, [esp + 0x3c]
push edx
call fcn.004083af
push eax
lea eax, [esp + 0x28]
push str.CSimpleSocket::SendData___failed_to_create_socket_with_error:
push eax
mov dword [esp + 0x10bc], 1
call fcn.00404cfa
push 1
push eax
mov byte [esp + 0x10c4], 2
call fcn.00404ae8
add esp, 0x1c
lea ecx, [esp + 0x1c]
call fcn.00402ed7
lea ecx, [esp + 0x38]
call fcn.00402ed7
test ebp, ebp
je 0x5c9496
mov dword [ebp], 0
call esi
jmp 0x5c9717
xor eax, eax
push 0x50
mov dword [esp + 0x90], eax
mov dword [esp + 0x94], eax
mov dword [esp + 0x98], eax
mov dword [esp + 0x9c], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x10
lea edx, [esp + 0x90]
push edx
mov ecx, 2
push ebx
mov word [esp + 0x9a], ax
mov word [esp + 0x98], cx
mov dword [esp + 0x9c], esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x5c955a
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
push eax
lea eax, [esp + 0x20]
push eax
call fcn.004083af
push eax
lea ecx, [esp + 0x44]
push str.CSimpleSocket::SendData___failed_to_connect_to_server_with_error:
push ecx
mov dword [esp + 0x10bc], 3
call fcn.00404cfa
push 1
push eax
mov byte [esp + 0x10c4], 4
call fcn.00404ae8
add esp, 0x1c
lea ecx, [esp + 0x38]
call fcn.00402ed7
lea ecx, [esp + 0x1c]
call fcn.00402ed7
test ebp, ebp
je 0x5c9553
mov dword [ebp], 0
call esi
jmp 0x5c9717
xor edi, edi
lea esp, [esp]
mov eax, dword [esp + 0x10b8]
lea edx, [edi + 0x800]
mov esi, 0x800
cmp edx, eax
jb 0x5c957a
mov esi, eax
sub esi, edi
mov eax, dword [esp + 0x14]
push 0
push esi
add eax, edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x5c9630
add edi, esi
cmp edi, dword [esp + 0x10b8]
jne 0x5c9560
push 0
push 0x1000
lea eax, [esp + 0xa4]
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp esi, 0xffffffff
jne 0x5c969c
lea ecx, [esp + 0x70]
push edi
push ecx
call fcn.004083af
push eax
lea edx, [esp + 0x60]
push str.CSimpleSocket::SendData___failed_to_receive_data_from_server_with_error:
push edx
mov dword [esp + 0x10bc], 7
call fcn.00404cfa
push 1
push eax
mov byte [esp + 0x10c4], 8
call fcn.00404ae8
add esp, 0x1c
lea ecx, [esp + 0x54]
call fcn.00402ed7
lea ecx, [esp + 0x70]
call fcn.00402ed7
test ebp, ebp
je 0x5c96c2
push ebx
mov dword [ebp], 0
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x5c9717
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
lea ecx, [esp + 0x1c]
push esi
push ecx
call fcn.004083af
push eax
lea edx, [esp + 0x44]
push str.CSimpleSocket::SendData___failed_to_send_data_to_server_with_error:
push edx
mov dword [esp + 0x10bc], 5
call fcn.00404cfa
push 1
push eax
mov byte [esp + 0x10c4], 6
call fcn.00404ae8
add esp, 0x1c
lea ecx, [esp + 0x38]
call fcn.00402ed7
lea ecx, [esp + 0x1c]
call fcn.00402ed7
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
test ebp, ebp
je 0x5c9695
mov dword [ebp], 0
mov eax, esi
jmp 0x5c9717
mov eax, dword [esp + 0x18]
test eax, eax
je 0x5c96c2
test ebp, ebp
je 0x5c96c2
cmp dword [ebp], esi
jbe 0x5c96c2
push esi
lea ecx, [esp + 0xa0]
push ecx
push eax
call fcn.00564f70
add esp, 0xc
mov dword [ebp], esi
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
mov eax, edi
jmp 0x5c9717
push edi
lea edx, [esp + 0x20]
push str.CSimpleSocket::SendData___Failed_to_resolve:
push edx
call fcn.00404cfa
push 1
push eax
mov dword [esp + 0x10bc], 0
call fcn.00404ae8
add esp, 0x14
cmp dword [esp + 0x34], 0x10
jb 0x5c9707
mov eax, dword [esp + 0x20]
push eax
call fcn.00564155
add esp, 4
test ebp, ebp
je 0x5c9712
mov dword [ebp], 0
mov eax, 1
mov ecx, dword [esp + 0x10a0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x1088]
xor ecx, esp
call fcn.00564b24
add esp, 0x1098
ret