Function at 0x522080
Capabilities:
Check for time delay via gettickcount
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp + 0x28]
mov byte [eax], 0
mov ecx, dword [ebp + 0x2c]
mov byte [ecx], 0
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.004239b0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x40], ecx
push 0x650194
push 0x650198
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.004222c0
push 0x650195
push 0x6501a0
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.004222c0
push 0x2f
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.0041fb70
push 0x3a
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.0041fb70
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.0041f980
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.00424460
test eax, eax
jne 0x52213a
push 0x6501ac
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x10]
call edx
mov eax, dword [ebp + 8]
push eax
push 0x6501e4
mov ecx, dword [ebp + 0x18]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0x18]
mov eax, dword [edx + 0x28]
call eax
xor al, al
jmp 0x5222df
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.0055afa0
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], 0
je 0x52215f
mov ecx, dword [ebp - 0x14]
push ecx
push str.HostnameResolveIpv6
mov ecx, dword [ebp + 0x1c]
call fcn.0045e630
cmp dword [ebp + 0x14], 0
je 0x52216b
cmp dword [ebp + 0x1c], 0
jne 0x52218c
mov edx, dword [ebp + 0x24]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x20]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x14]
push eax
call fcn.004c9730
add esp, 0x14
jmp 0x5222df
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + 0x14]
mov dword [ecx + 0xc], edx
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x1c]
mov dword [eax + 0x10], ecx
mov edx, dword [ebp - 0x24]
mov byte [edx + 8], 1
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0x20]
mov dword [eax + 0x44], ecx
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp + 0x24]
mov dword [edx + 0x48], eax
mov ecx, dword [ebp - 0x24]
mov byte [ecx + 0x4c], 0
push 0x3e9
mov ecx, dword [ebp - 0x24]
call fcn.00522c80
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 4], eax
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 0x24]
push eax
push 0x5222f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push str.Resolving_domain_name__IPV4_IPV6_...
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x14]
call edx
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0x24]
movzx ecx, byte [eax + 8]
test ecx, ecx
je 0x5222d9
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xc8
jle 0x522247
push 0xa
call fcn.00450660
add esp, 4
jmp 0x522251
push 2
call fcn.00450660
add esp, 4
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x14]
jb 0x5222d4
mov dword [ebp - 8], 0
push 0x74
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.0045e800
mov ecx, dword [ebp + 0x1c]
call fcn.0045e4f0
movzx eax, al
test eax, eax
je 0x5222a2
mov ecx, dword [ebp + 0x28]
mov byte [ecx], 1
push 0x65022c
mov edx, dword [ebp + 0x18]
mov eax, dword [edx]
mov ecx, dword [ebp + 0x18]
mov edx, dword [eax + 0x10]
call edx
xor al, al
jmp 0x5222df
cmp dword [ebp + 0x10], 0
je 0x5222d4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jbe 0x5222d4
mov ecx, dword [ebp - 0x1c]
sub ecx, dword [ebp - 4]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
cmp edx, dword [ebp + 0x10]
jbe 0x5222d4
mov eax, dword [ebp + 0x2c]
mov byte [eax], 1
xor al, al
jmp 0x5222df
jmp 0x52221a
mov ecx, dword [ebp - 0x24]
mov al, byte [ecx + 0x4c]
mov esp, ebp
pop ebp
ret 0x28