Function at 0x512840
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.004141a0
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x40], ecx
push 0x63c194
push 0x63c198
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.00412ab0
push 0x63c195
push 0x63c1a0
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.00412ab0
push 0x2f
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.00410360
push 0x3a
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.00410360
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.00410170
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.004d7b80
test eax, eax
jne 0x5128fa
push 0x63c1ac
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 0x63c1e4
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 0x512a9f
mov ecx, dword [ebp - 0x24]
add ecx, 0x18
call fcn.0049ea10
mov dword [ebp - 0x14], eax
cmp dword [ebp + 0x1c], 0
je 0x51291f
mov ecx, dword [ebp - 0x14]
push ecx
push str.HostnameResolveIpv6
mov ecx, dword [ebp + 0x1c]
call fcn.0044edd0
cmp dword [ebp + 0x14], 0
je 0x51292b
cmp dword [ebp + 0x1c], 0
jne 0x51294c
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.004b9f20
add esp, 0x14
jmp 0x512a9f
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.00513440
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 0x512ab0
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 0x512a99
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 0xc8
jle 0x512a07
push 0xa
call fcn.00440df0
add esp, 4
jmp 0x512a11
push 2
call fcn.00440df0
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 0x512a94
mov dword [ebp - 8], 0
push 0x74
mov edx, dword [ebp + 0x14]
push edx
mov ecx, dword [ebp + 0x1c]
call fcn.0044efa0
mov ecx, dword [ebp + 0x1c]
call fcn.0044ec90
movzx eax, al
test eax, eax
je 0x512a62
mov ecx, dword [ebp + 0x28]
mov byte [ecx], 1
push 0x63c22c
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 0x512a9f
cmp dword [ebp + 0x10], 0
je 0x512a94
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 4]
jbe 0x512a94
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 0x512a94
mov eax, dword [ebp + 0x2c]
mov byte [eax], 1
xor al, al
jmp 0x512a9f
jmp 0x5129da
mov ecx, dword [ebp - 0x24]
mov al, byte [ecx + 0x4c]
mov esp, ebp
pop ebp
ret 0x28