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

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x50c
mov ebx, 0
lea eax, [ebp - 0x428]
mov dword [esp + 8], 0x400
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
lea edi, [ebp - 0x468]
cld
mov ecx, 0xc
mov eax, ebx
rep stosd dword es:[edi], eax
mov word [edi], 0
mov dword [ebp - 0x488], 0x412620
mov dword [ebp - 0x484], 0x412624
mov dword [ebp - 0x480], 0x412628
mov dword [ebp - 0x47c], 0x41262c
mov dword [ebp - 0x478], 0x412630
mov dword [ebp - 0x474], 0x412634
mov dword [ebp - 0x470], 0x412638
mov dword [ebp - 0x46c], 0x41263c
lea edi, [ebp - 0x4c8]
mov esi, 0x40d424
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x4d8]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetSystemTime
sub esp, 4
movzx eax, word [ebp - 0x4cc]
mov dword [esp + 0x20], eax
movzx eax, word [ebp - 0x4ce]
mov dword [esp + 0x1c], eax
movzx eax, word [ebp - 0x4d0]
mov dword [esp + 0x18], eax
movzx eax, word [ebp - 0x4d8]
mov dword [esp + 0x14], eax
movzx eax, word [ebp - 0x4d6]
mov eax, dword [ebp + eax*4 - 0x4c8]
mov dword [esp + 0x10], eax
movzx eax, word [ebp - 0x4d2]
mov dword [esp + 0xc], eax
movzx eax, word [ebp - 0x4d4]
mov eax, dword [ebp + eax*4 - 0x488]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x412670
lea eax, [ebp - 0x468]
mov dword [esp], eax
call sub.USER32.dll_wsprintfA
mov dword [esp + 8], 6
mov dword [esp + 4], 1
mov dword [esp], 2
call sub.WS2_32.DLL_socket
sub esp, 0xc
mov esi, eax
cmp eax, 0xffffffff
je 0x40672e
mov word [ebp - 0x28], 2
mov dword [esp], 0x19
call sub.WS2_32.DLL_htons
sub esp, 4
mov word [ebp - 0x26], ax
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_inet_addr
sub esp, 4
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x40633b
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.WS2_32.DLL_gethostbyname
sub esp, 4
test eax, eax
je 0x40672e
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
mov dword [esp + 8], 0x10
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.WS2_32.DLL_connect
sub esp, 0xc
cmp eax, 0xffffffff
je 0x40672e
mov dword [esp], esi
call fcn.004067e0
test eax, eax
je 0x40672e
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x41268a
lea ebx, [ebp - 0x428]
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x412694
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4126a6
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x4126b6
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4126bd
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4126ca
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
lea eax, [ebp - 0x468]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4126d5
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x4126e0
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4126f4
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x412704
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
test eax, eax
je 0x40669f
mov dword [esp + 4], 0x41273c
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x41276f
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
cmp dword [ebp + 0x24], 0
je 0x406552
mov dword [esp + 4], 0x412780
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
jmp 0x40656a
mov dword [esp + 4], 0x4127b4
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x4127e4
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x412806
lea ebx, [ebp - 0x428]
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x41276f
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x412810
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x412854
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x412888
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [ebp - 0x4dc], 0
lea eax, [ebp - 0x4dc]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp], eax
call fcn.004017f8
mov ebx, eax
mov dword [esp + 4], eax
mov dword [esp], esi
call fcn.00406746
test eax, eax
jne 0x40667a
mov dword [esp], ebx
call sub.KERNEL32.DLL_GlobalFree
sub esp, 4
jmp 0x40672e
mov dword [esp], ebx
call sub.KERNEL32.DLL_GlobalFree
sub esp, 4
mov dword [esp + 4], 0x4128ae
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
jmp 0x4066f4
mov dword [esp + 4], 0x4127b4
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x4127e4
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov eax, dword [ebp + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x412806
lea ebx, [ebp - 0x428]
mov dword [esp], ebx
call sub.USER32.dll_wsprintfA
mov dword [esp + 4], ebx
mov dword [esp], esi
call fcn.00406746
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x4128c1
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov dword [esp + 4], 0x4128c7
mov dword [esp], esi
call fcn.00406788
test eax, eax
je 0x40672e
mov dword [esp], esi
call sub.WS2_32.DLL_closesocket
sub esp, 4
mov eax, 1
jmp 0x40673e
mov dword [esp], esi
call sub.WS2_32.DLL_closesocket
sub esp, 4
mov eax, 0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret