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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec0
push ebx
push esi
push edi
mov ebx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov eax, 0x4de938
call fcn.004d08c0
xor edx, edx
mov dword [ebp - 0x28], edx
mov word [ebp - 0x14], 8
mov word [ebp - 0x14], 8
push esi
lea edi, [ebp - 0x140]
mov esi, 0x4de834
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
pop esi
test ebx, ebx
mov dword [ebp - 0x28], 0xa
mov dword [esi], 0xffffffff
jne 0x411a83
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411dee
mov cl, byte [ebx]
test cl, cl
jne 0x411a9a
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411dee
call fcn.00411814
mov cl, byte [0x4de818]
test cl, cl
je 0x411acd
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5ccba0
call fcn.0040312c
add esp, 0x20
xor eax, eax
mov dl, byte [ebx + eax]
mov byte [ebp + eax - 0x140], dl
movsx ecx, dl
cmp ecx, 0x3a
jne 0x411afd
mov byte [ebp + eax - 0x140], 0
lea eax, [eax + ebx + 1]
push eax
call fcn.004d615c
pop ecx
test eax, eax
je 0x411b07
mov dword [ebp + 0x10], eax
jmp 0x411b07
mov dl, byte [ebx + eax]
test dl, dl
je 0x411b07
inc eax
jmp 0x411acf
mov dword [ebp - 0x28], 0x14
lea ecx, [ebp - 0x140]
push ecx
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
je 0x411b55
mov al, byte [0x4de818]
test al, al
je 0x411b4e
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5ccbac
call fcn.0040312c
add esp, 0x20
mov bl, 1
jmp 0x411c7c
mov al, byte [0x4de818]
test al, al
je 0x411b82
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5ccbbc
call fcn.0040312c
add esp, 0x20
mov dword [ebp - 0x28], 0x1e
mov bl, 1
lea eax, [ebp - 0x140]
push eax
call sub.WSOCK32.dll_gethostbyname
mov dword [ebp - 0x2c], eax
mov edx, dword [ebp - 0x2c]
test edx, edx
jne 0x411bc0
push 2
call fcn.0041169c
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411dee
mov dword [ebp - 0x28], 0x32
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
mov ecx, dword [edx]
mov dword [ebp - 0x38], ecx
mov al, byte [ebp - 0x38]
cmp al, 0x7f
jne 0x411c10
mov dl, byte [ebp - 0x37]
test dl, dl
jne 0x411c10
mov cl, byte [ebp - 0x36]
cmp cl, 0x35
jne 0x411c10
mov al, byte [ebp - 0x35]
cmp al, 0x35
jne 0x411c10
push 2
call fcn.0041169c
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411dee
mov dword [ebp - 0x28], 0x46
xor ecx, ecx
xor eax, eax
mov cl, byte [ebp - 0x35]
xor edx, edx
push ecx
xor ecx, ecx
mov al, byte [ebp - 0x36]
push eax
lea eax, [ebp - 0x140]
mov dl, byte [ebp - 0x37]
push edx
mov cl, byte [ebp - 0x38]
push ecx
push 0x5ccbcc
push eax
call fcn.004d26c8
add esp, 0x18
lea edx, [ebp - 0x140]
mov dword [ebp - 0x28], 0x5a
push edx
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
jne 0x411c7c
push 2
call fcn.0041169c
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411dee
mov dword [ebp - 0x28], 0x6e
mov cl, byte [0x4de818]
test cl, cl
je 0x411cb1
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5ccbd8
call fcn.0040312c
add esp, 0x20
push 6
push 1
push 2
call sub.WSOCK32.dll_socket
mov dword [esi], eax
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x411cde
push 3
call fcn.0041169c
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411dee
mov dword [ebp - 0x28], 0x78
mov cl, byte [0x4de818]
test cl, cl
je 0x411d13
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5ccbe1
call fcn.0040312c
add esp, 0x20
mov dword [ebp - 0x28], 0x8c
test bl, bl
jne 0x411d2d
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
jmp 0x411d30
mov dword [ebp - 0x38], edi
mov word [ebp - 0x3c], 2
mov dx, word [ebp + 0x10]
push edx
call sub.WSOCK32.dll_htons
mov word [ebp - 0x3a], ax
mov cl, byte [0x4de818]
test cl, cl
je 0x411d72
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5ccbf0
call fcn.0040312c
add esp, 0x20
mov dword [ebp - 0x28], 0x96
push 0x10
lea eax, [ebp - 0x3c]
push eax
mov edx, dword [esi]
push edx
call sub.WSOCK32.dll_connect
inc eax
jne 0x411dae
push 4
call fcn.0041169c
pop ecx
mov ecx, dword [esi]
push ecx
call sub.WSOCK32.dll_closesocket
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411dee
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411dee
mov esp, ebp
mov edi, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x144]
pop ebp
ret