Function at 0x4057f0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create thread
Create udp socket
Initialize winsock library
Resolve dns

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x417bbd
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x1e0
mov eax, dword [0x422040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x18], ecx
lea eax, [ebp - 0x1e8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x40587e
push str.Failed_to_initialize_Winsock.
push dword [0x424018]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0040b1ae
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x424028], eax
cmp eax, 0xffffffff
jne 0x4058ad
push str.Failed_to_create_socket.
push dword [0x424018]
call dword [sym.imp.USER32.dll_SetWindowTextW]
call dword [sym.imp.WS2_32.dll_WSACleanup]
jmp 0x40585b
xorps xmm0, xmm0
mov dword [ebp - 0x58], 0
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x54], 2
movlpd qword [ebp - 0x48], xmm0
movlpd qword [ebp - 0x40], xmm0
mov dword [ebp - 0x50], 1
mov dword [ebp - 0x4c], 6
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0xf
mov byte [ebp - 0x30], 0
mov esi, 0x4237b4
mov dword [ebp - 4], 0
lea ecx, [esi + 1]
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x405900
sub esi, ecx
push esi
push 0x4237b4
cmp esi, 0xf
ja 0x40592a
lea eax, [ebp - 0x30]
mov dword [ebp - 0x20], esi
push eax
call fcn.0040c590
add esp, 0xc
mov byte [ebp + esi - 0x30], 0
jmp 0x405940
mov byte [ebp - 0x1ec], 0
lea ecx, [ebp - 0x30]
push dword [ebp - 0x1ec]
push esi
call fcn.00409140
mov esi, dword [0x423fe0]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push eax
push eax
push 0xb1
push esi
call edi
push str._r_nHost_Address:
push 0
push 0xc2
push esi
call edi
cmp dword [ebp - 0x1c], 0xf
lea edi, [ebp - 0x30]
mov esi, dword [0x423fe0]
cmova edi, dword [ebp - 0x30]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
push 0xb1
push esi
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0xc2
push esi
call edi
mov esi, dword [0x423fe0]
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
push eax
push eax
push 0xb1
push esi
call edi
push 0x41ec4c
push 0
push 0xc2
push esi
call edi
cmp dword [ebp - 0x1c], 0xf
lea ecx, [ebp - 0x58]
push 0x424034
push ecx
lea eax, [ebp - 0x30]
cmova eax, dword [ebp - 0x30]
push str.8888
push eax
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
je 0x4059f4
push str.Failed_to_get_address_info.
jmp 0x405a15
mov eax, dword [0x424034]
push dword [eax + 0x10]
push dword [eax + 0x18]
push dword [0x424028]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x405a68
push str.Failed_to_connect_to_server.
push dword [0x424018]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push dword [0x424028]
call dword [sym.imp.WS2_32.dll_closesocket]
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov esi, 1
mov ecx, dword [ebp - 0x1c]
cmp ecx, 0xf
jbe 0x405ad7
mov edx, dword [ebp - 0x30]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x405acd
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x405aec
jmp 0x405acd
push str.Connected_to_server.
push dword [0x424018]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push 8
call fcn.0040b3b9
mov ecx, dword [ebp - 0x18]
add esp, 4
mov dword [ebp - 0x18], eax
mov dword [eax], ecx
mov dword [eax + 4], 0x405420
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 1
push ecx
push 0
push eax
push 0x40a520
push 0
push 0
call fcn.0040e31f
add esp, 0x18
mov dword [ebp - 0x38], eax
test eax, eax
je 0x405ade
lea ecx, [ebp - 0x38]
mov byte [ebp - 4], 2
call fcn.00401220
xor esi, esi
cmp dword [ebp - 0x34], esi
jne 0x405af1
jmp 0x405a38
push ecx
push edx
call fcn.0040b63a
add esp, 8
mov eax, esi
jmp 0x405860
push 6
mov dword [ebp - 0x34], 0
call fcn.0040ae47
call fcn.0040e708
call fcn.0040e3b0
int3