Function at 0x4019e8
Capabilities:
Create tcp socket
Resolve dns
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, edx
push ebx
sub esp, 0x4a0
cmp dword [0x412030], 4
mov dword [ebp - 0x4a8], eax
ja 0x401bf0
add eax, 7
lea ebx, [ebp - 0x48c]
push eax
push ebx
call sub.KERNEL32.DLL_lstrcpyA
push eax
call sub.KERNEL32.DLL_lstrlenA
mov dword [ebp - 0x4a4], eax
mov edx, 0x2f
mov eax, ebx
call fcn.0040134d
mov edi, eax
xor eax, eax
test edi, edi
je 0x401ca8
mov byte [edi], 0
mov edx, 0x3a
mov eax, ebx
call fcn.0040134d
mov dword [ebp - 0x4ac], 0x50
test eax, eax
je 0x401a75
mov byte [eax], 0
lea edx, [ebp - 0x4a0]
inc eax
push 0
call fcn.0040136b
movzx eax, ax
mov dword [ebp - 0x4ac], eax
pop eax
push dword [ebp - 0x4ac]
call sub.WS2_32.DLL_htons
mov word [ebp - 0x49a], ax
test esi, esi
je 0x401a8f
mov eax, dword [esi]
jmp 0x401ac1
lea ebx, [ebp - 0x48c]
push ebx
call sub.WS2_32.DLL_inet_addr
mov dword [ebp - 0x498], eax
inc eax
jne 0x401ac7
push ebx
call sub.WS2_32.DLL_gethostbyname
test eax, eax
je 0x401bf0
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
test eax, eax
je 0x401bf0
mov eax, dword [eax]
mov dword [ebp - 0x498], eax
push 6
push 1
push 2
mov word [ebp - 0x49c], 2
call sub.WS2_32.DLL_socket
cmp eax, 0xffffffff
mov esi, eax
je 0x401bf0
push 0x28
lea edx, [ebp - 0x49c]
call fcn.0040172d
pop ebx
test eax, eax
je 0x401b03
push esi
call sub.WS2_32.DLL_closesocket
jmp 0x401bf0
mov eax, dword [ebp - 0x4a4]
add eax, 0x92
and eax, 0xfffffffc
call fcn.00405c00
lea ebx, [esp + 0xf]
push dword [ebp - 0x4ac]
and ebx, 0xfffffff0
cmp word [ebp - 0x4ac], 0x50
lea eax, [ebp - 0x48c]
push eax
lea eax, [edi + 1]
push eax
mov eax, 0x410380
je 0x401b42
mov eax, 0x410320
push eax
push ebx
call sub.USER32.dll_wsprintfA
push 0
push eax
push ebx
lea ebx, [ebp - 0x40c]
push esi
mov dword [ebp - 0x4a4], eax
call sub.WS2_32.DLL_send
push 0x28
mov edx, ebx
mov eax, esi
push 0x400
call fcn.00401625
add esp, 0x1c
cmp eax, 0xb
jle 0x401af8
push 0x4102bc
push ebx
mov byte [ebp - 0x405], 0x30
mov byte [ebp - 0x400], 0
call sub.KERNEL32.DLL_lstrcmpiA
test eax, eax
jne 0x401af8
jmp 0x401ba1
inc eax
je 0x401af8
push 0x28
lea edx, [ebp - 0x40c]
mov eax, esi
push 0x400
call fcn.00401625
pop edx
test eax, eax
mov dword [ebp - 0x4a4], eax
pop ecx
jne 0x401b9a
cmp dword [ebp + 8], 0
je 0x401bd1
mov dword [0x412030], 0
mov eax, 0x14
call fcn.00401000
mov dword [eax], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], esi
jmp 0x401ca8
cmp dword [0x4121d0], 0
je 0x401ca6
call fcn.00401832
push 0
push 0
push 0
push 4
push 0x4102e0
call dword [0x4121d0]
test eax, eax
mov esi, eax
je 0x401ca6
push 4
lea ebx, [ebp - 0x4a4]
push ebx
push 2
mov dword [ebp - 0x4a4], 0x9c40
push eax
call dword [0x412200]
push 4
push ebx
push 6
push esi
call dword [0x412200]
push 4
push ebx
push 5
push esi
call dword [0x412200]
push 0
push 0x84280300
push 0
push 0
push dword [ebp - 0x4a8]
push esi
call dword [0x4121e0]
test eax, eax
mov ebx, eax
je 0x401c9f
cmp dword [ebp + 8], 0
je 0x401c87
mov eax, dword [0x412030]
cmp eax, 4
ja 0x401c87
inc eax
mov dword [0x412030], eax
mov eax, 0x14
call fcn.00401000
mov dword [eax], esi
mov dword [eax + 0x10], 0
mov dword [eax + 4], ebx
jmp 0x401ca8
push esi
call dword [0x412210]
xor eax, eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret