Function at 0x404900
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a975
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x42501c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xffffffff
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov ecx, dword [ebp - 0x10]
mov dword [ecx], eax
mov edx, dword [ebp - 0x10]
cmp dword [edx], 0xffffffff
jne 0x4049d6
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x14], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x14]
push eax
push str.Error_at_socket_:__d.
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x24], esp
mov edx, dword [ebp - 0x10]
add edx, 0x14
push edx
call fcn.00401b60
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0
push ecx
mov ecx, esp
mov dword [ebp - 0x2c], esp
push 0x41c0a4
call fcn.00401ba0
mov dword [ebp - 0x30], eax
mov byte [ebp - 4], 1
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
push 0x41c0f8
call fcn.004045f0
push SysReAllocStringLen
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x425e3c
call fcn.004043e0
mov eax, dword [ebp - 0x14]
jmp 0x404b36
push 0x10
mov eax, dword [ebp - 0x10]
add eax, 4
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x404a7c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x18], eax
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x18]
push eax
push str.Failed_to_connect_to_server_:__d.
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
push ecx
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x38], esp
mov edx, dword [ebp - 0x10]
add edx, 0x14
push edx
call fcn.00401b60
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 2
push ecx
mov ecx, esp
mov dword [ebp - 0x40], esp
push 0x41c164
call fcn.00401ba0
mov dword [ebp - 0x44], eax
mov byte [ebp - 4], 3
push ecx
mov ecx, esp
mov dword [ebp - 0x48], esp
push 0x41c170
call fcn.004045f0
push SysReAllocStringLen
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x425e3c
call fcn.004043e0
mov eax, dword [ebp - 0x18]
jmp 0x404b36
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx]
push eax
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0xffffffff
jne 0x404b1a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
push ecx
push str.Failed_to_communicate_with_Server_:__d.
mov edx, dword [ebp - 0x10]
add edx, 0x14
push edx
call fcn.00402860
add esp, 0xc
push ecx
mov ecx, esp
mov dword [ebp - 0x4c], esp
mov eax, dword [ebp - 0x10]
add eax, 0x14
push eax
call fcn.00401b60
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 4
push ecx
mov ecx, esp
mov dword [ebp - 0x54], esp
push str.SendData
call fcn.00401ba0
mov dword [ebp - 0x58], eax
mov byte [ebp - 4], 5
push ecx
mov ecx, esp
mov dword [ebp - 0x5c], esp
push 0x41c1f0
call fcn.004045f0
push SysReAllocStringLen
mov dword [ebp - 4], 0xffffffff
mov ecx, 0x425e3c
call fcn.004043e0
mov eax, dword [ebp - 0x1c]
jmp 0x404b36
push 2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx]
push edx
call dword [sym.imp.WS2_32.dll_shutdown]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 8