Function at 0x411890
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, 0x4dd8f8
call fcn.004cfcb8
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, 0x4dd7f4
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 0x4118f3
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411c5e
mov cl, byte [ebx]
test cl, cl
jne 0x41190a
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411c5e
call fcn.00411564
mov cl, byte [0x4dd7d8]
test cl, cl
je 0x41193d
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5cb5e0
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 0x41196d
mov byte [ebp + eax - 0x140], 0
lea eax, [eax + ebx + 1]
push eax
call fcn.004d5554
pop ecx
test eax, eax
je 0x411977
mov dword [ebp + 0x10], eax
jmp 0x411977
mov dl, byte [ebx + eax]
test dl, dl
je 0x411977
inc eax
jmp 0x41193f
mov dword [ebp - 0x28], 0x14
lea ecx, [ebp - 0x140]
push ecx
call sub.WSOCK32.dll_inet_addr
mov edi, eax
cmp edi, 0xffffffff
je 0x4119c5
mov al, byte [0x4dd7d8]
test al, al
je 0x4119be
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5cb5ec
call fcn.0040312c
add esp, 0x20
mov bl, 1
jmp 0x411aec
mov al, byte [0x4dd7d8]
test al, al
je 0x4119f2
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5cb5fc
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 0x411a30
push 2
call fcn.0041151c
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411c5e
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 0x411a80
mov dl, byte [ebp - 0x37]
test dl, dl
jne 0x411a80
mov cl, byte [ebp - 0x36]
cmp cl, 0x35
jne 0x411a80
mov al, byte [ebp - 0x35]
cmp al, 0x35
jne 0x411a80
push 2
call fcn.0041151c
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411c5e
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 0x5cb60c
push eax
call fcn.004d1ac0
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 0x411aec
push 2
call fcn.0041151c
pop ecx
mov dword [esi], 0xffffffff
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411c5e
mov dword [ebp - 0x28], 0x6e
mov cl, byte [0x4dd7d8]
test cl, cl
je 0x411b21
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5cb618
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 0x411b4e
push 3
call fcn.0041151c
pop ecx
xor eax, eax
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411c5e
mov dword [ebp - 0x28], 0x78
mov cl, byte [0x4dd7d8]
test cl, cl
je 0x411b83
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5cb621
call fcn.0040312c
add esp, 0x20
mov dword [ebp - 0x28], 0x8c
test bl, bl
jne 0x411b9d
mov eax, dword [ebp - 0x2c]
mov edx, dword [eax + 0xc]
mov ecx, dword [edx]
mov eax, dword [ecx]
mov dword [ebp - 0x38], eax
jmp 0x411ba0
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 [0x4dd7d8]
test cl, cl
je 0x411be2
push 0
push 6
push 0x48
push 0x154
push 0xc8
push 0x96
push 0
push 0x5cb630
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 0x411c1e
push 4
call fcn.0041151c
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 0x411c5e
mov eax, 1
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
jmp 0x411c5e
mov esp, ebp
mov edi, dword [ebp - 0x14c]
mov esi, dword [ebp - 0x148]
mov ebx, dword [ebp - 0x144]
pop ebp
ret