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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5419f3
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, 0x103d9b8
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.004fd720
test al, al
je 0x4fc248
mov eax, dword [ebp - 0x20]
mov edi, dword [ebx + 4]
mov ecx, eax
mov esi, 0x103d9b8
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.004fd700
mov edi, dword [ebp - 0x18]
cmp dword [edi + 0x28], 0xffffffff
je 0x4fc257
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 0x4fc284
lea ecx, [ebp - 0x30]
push 0xfcc880
push ecx
mov dword [ebp - 0x30], 1
call fcn.00518d22
mov eax, dword [0x103d980]
test eax, eax
jne 0x4fc305
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 0x4fc2c6
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x4fc2f0
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 0x4fc4a6
lea eax, [ebp - 0x24]
push 0xfcc880
push eax
mov dword [ebp - 0x24], ebx
call fcn.00518d22
lea eax, [ebp - 0x2c]
push 0xfcc880
push eax
mov dword [ebp - 0x2c], 3
call fcn.00518d22
lea ecx, [ebp - 0xa4]
call fcn.004fdba0
mov esi, dword [0x103d990]
mov byte [ebp - 4], 1
test esi, esi
jne 0x4fc323
mov esi, 0x103d9b8
mov cl, byte [ebp + 0xf]
push 0
mov byte [ebp - 0x50], cl
lea ecx, [ebp - 0x50]
call fcn.004feb60
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.004fd720
test al, al
je 0x4fc36c
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.004fd700
mov esi, dword [0x103d98c]
mov byte [ebp - 4], 2
test esi, esi
jne 0x4fc37f
mov esi, 0x103d9b8
mov al, byte [ebp + 0xf]
push 0
lea ecx, [ebp - 0x40]
mov byte [ebp - 0x40], al
call fcn.004feb60
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.004fd720
test al, al
je 0x4fc3c8
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.004fd700
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x40]
push eax
push ecx
mov ecx, 0x103d968
mov byte [ebp - 4], 3
call fcn.004fda60
push eax
lea eax, [ebp - 0x19]
sub esp, 0x10
mov ecx, 0x103d968
mov edx, esp
mov dword [ebp - 0x68], esp
push eax
mov dword [ebp - 0x20], edx
call fcn.004fda70
mov ecx, dword [ebp - 0x20]
push eax
call fcn.004fd220
mov ecx, 0x103d968
mov byte [ebp - 4], 4
call fcn.004fda50
push eax
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 3
call fcn.004fdcb0
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004feb60
mov ecx, dword [ebp - 0x4c]
mov byte [ebp - 4], 1
test ecx, ecx
je 0x4fc453
mov al, byte [ecx - 1]
dec ecx
test al, al
je 0x4fc44a
cmp al, 0xff
je 0x4fc44a
dec al
mov byte [ecx], al
jmp 0x4fc453
push ecx
call fcn.0052c081
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.004fd220
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 0x28]
push ecx
lea ecx, [ebp - 0xa4]
call fcn.004fdeb0
test eax, eax
jne 0x4fc497
lea edx, [ebp - 0x28]
push 0xfcc880
push edx
mov dword [ebp - 0x28], 2
call fcn.00518d22
lea ecx, [ebp - 0xa4]
mov byte [ebp - 4], 0
call fcn.004fdc10
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