Function at 0x47f7a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c5983
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x98
push ebx
push esi
push edi
mov dword [ebp - 0x18], ecx
lea ebx, [ecx + 4]
mov edi, 0x616eb8
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
mov dword [ebp - 0x10], esp
dec ecx
push 1
mov dword [ebp - 0x20], ecx
push ecx
mov ecx, ebx
mov byte [ebp - 0x11], 1
mov dword [ebp - 4], 0
call fcn.00480cf0
test al, al
je 0x47f818
mov eax, dword [ebp - 0x20]
mov edi, dword [ebx + 4]
mov ecx, eax
mov esi, 0x616eb8
mov edx, ecx
push eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00480cd0
mov edi, dword [ebp - 0x18]
cmp dword [edi + 0x28], 0xffffffff
je 0x47f827
mov eax, dword [edi]
mov ecx, edi
call dword [eax]
push 6
mov ebx, 2
push 1
push ebx
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
mov dword [edi + 0x28], eax
jne 0x47f854
lea ecx, [ebp - 0x30]
push 0x5aee70
push ecx
mov dword [ebp - 0x30], 1
call fcn.00491bd0
mov eax, dword [0x616e80]
test eax, eax
jne 0x47f8d5
mov edx, dword [ebp + 0xc]
mov word [ebp - 0x60], bx
push edx
call dword [sym.imp.WS2_32.dll_htons]
mov esi, dword [ebp + 8]
mov word [ebp - 0x5e], ax
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
mov dword [ebp - 0x5c], eax
jne 0x47f896
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x47f8c0
mov eax, dword [eax + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp - 0x5c], edx
mov edx, dword [edi + 0x28]
lea ecx, [ebp - 0x60]
push 0x10
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x47fa76
lea eax, [ebp - 0x24]
push 0x5aee70
push eax
mov dword [ebp - 0x24], ebx
call fcn.00491bd0
lea eax, [ebp - 0x2c]
push 0x5aee70
push eax
mov dword [ebp - 0x2c], 3
call fcn.00491bd0
lea ecx, [ebp - 0xa4]
call fcn.00481170
mov esi, dword [0x616e90]
mov byte [ebp - 4], 1
test esi, esi
jne 0x47f8f3
mov esi, 0x616eb8
mov cl, byte [ebp + 0xf]
push 0
mov byte [ebp - 0x50], cl
lea ecx, [ebp - 0x50]
call fcn.004820f0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x50]
push ebx
call fcn.00480cf0
test al, al
je 0x47f93c
mov edi, dword [ebp - 0x4c]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x50]
call fcn.00480cd0
mov esi, dword [0x616e8c]
mov byte [ebp - 4], 2
test esi, esi
jne 0x47f94f
mov esi, 0x616eb8
mov al, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call fcn.004820f0
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebx, ecx
lea ecx, [ebp - 0x40]
push ebx
call fcn.00480cf0
test al, al
je 0x47f998
mov edi, dword [ebp - 0x3c]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x40]
call fcn.00480cd0
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push ecx
mov ecx, 0x616e68
mov byte [ebp - 4], 3
call fcn.00481030
push eax
lea eax, [ebp - 0x19]
sub esp, 0x10
mov ecx, 0x616e68
mov edx, esp
mov dword [ebp - 0x68], esp
push eax
mov dword [ebp - 0x20], edx
call fcn.00481040
mov ecx, dword [ebp - 0x20]
push eax
call fcn.004807f0
mov ecx, 0x616e68
mov byte [ebp - 4], 4
call fcn.00481020
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.00481280
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004820f0
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x47fa23
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x47fa1a
cmp al, 0xff
je 0x47fa1a
dec al
mov byte [ecx], al
jmp 0x47fa23
push ecx
call fcn.004b5b96
add esp, 4
mov edx, dword [ebp + 0xc]
lea eax, [ebp + 0xf]
push edx
mov edx, dword [ebp + 8]
sub esp, 0x10
mov ecx, esp
mov dword [ebp + 0xc], esp
push eax
push edx
call fcn.004807f0
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x28]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.00481480
test eax, eax
jne 0x47fa67
lea edx, [ebp - 0x28]
push 0x5aee70
push edx
mov dword [ebp - 0x28], 2
call fcn.00491bd0
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.004811e0
mov ecx, dword [ebp - 0x18]
mov al, byte [ebp - 0x11]
pop edi
pop esi
mov byte [ecx + 0x14], al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8