Function at 0x480450
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53b13e
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x58c758]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, 1
test eax, eax
je 0x480744
push 0x64
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 0x44]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x48049d
jmp 0x480744
lea ecx, [ebp - 0x18]
call fcn.00403840
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x40]
add eax, 0x28
push eax
lea ecx, [ebp - 0x20]
call fcn.00447c10
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.0049ef00
test eax, eax
je 0x480502
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.00449000
push eax
lea ecx, [ebp - 0x18]
call fcn.00401970
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.0049ef00
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x40]
add ecx, 0xc
call fcn.00481ad0
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x20]
call fcn.00447c40
lea ecx, [ebp - 0x18]
call fcn.004086e0
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x480533
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401eb0
jmp 0x480478
mov dword [ebp - 0x10], 0
jmp 0x480545
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x48]
jge 0x480607
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 8]
push edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 4]
push ecx
push ecx
mov ecx, esp
mov dword [ebp - 0x3c], esp
lea edx, [ebp - 0x18]
push edx
call fcn.00401e10
mov dword [ebp - 0x44], eax
call fcn.00481490
add esp, 0xc
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x28], 0
jne 0x4805d7
push 0
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x58fb50], 0
je 0x4805d3
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push 0x548f50
push 0x58f750
call fcn.004045b0
add esp, 0x14
jmp 0x480607
cmp dword [0x58fb50], 0
je 0x480602
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
mov edx, dword [ebp - 0x28]
push edx
push 0x548ef0
push 0x58f750
call fcn.004045b0
add esp, 0x18
jmp 0x48053c
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x48]
jge 0x480626
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401eb0
jmp 0x480478
mov dword [ebp - 0x10], 0
jmp 0x480638
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0x10]
cmp ecx, dword [eax + 0x48]
jge 0x4806e0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x30], eax
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 8]
push eax
mov ecx, dword [ebp - 0x40]
mov edx, dword [ecx + 4]
push edx
lea ecx, [ebp - 0x18]
call fcn.0043e290
push eax
call fcn.00481020
add esp, 0xc
mov dword [ebp - 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [ebp - 0x30]
mov dword [ebp - 0x38], eax
cmp dword [ebp - 0x34], 0
jne 0x4806b9
push 0
mov eax, dword [ebp - 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x58fb50], 0
je 0x4806b7
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x38]
push eax
push 0x548f50
push 0x58f750
call fcn.004045b0
add esp, 0x14
jmp 0x4806e0
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
mov eax, dword [ebp - 0x38]
push eax
mov ecx, dword [ebp - 0x34]
push ecx
push str.wininet
push 0x58f750
call fcn.004045b0
add esp, 0x18
jmp 0x48062f
mov edx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x10]
cmp eax, dword [edx + 0x48]
jge 0x4806ff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401eb0
jmp 0x480478
mov ecx, dword [ebp - 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
push 0x3e8
mov edx, dword [ebp - 0x40]
mov eax, dword [edx + 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x480730
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401eb0
jmp 0x480744
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00401eb0
jmp 0x480478
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret