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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x531eb0
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x585184]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [ebp + 0x10]
mov esi, 0x80400000
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov ecx, dword [ebp + 0x14]
mov dword [ebp - 0x50], ecx
xor ecx, ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x45], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 7
mov word [ebp - 0x2c], cx
mov dword [ebp - 4], ecx
cmp dword [edi + 4], ecx
jne 0x44625b
lea ecx, [ebp - 0x45]
push ecx
lea ecx, [ebp - 0x2c]
push ecx
push eax
mov ecx, ebx
call fcn.00445860
test al, al
je 0x44625b
cmp byte [ebp - 0x45], 0
mov eax, 0x80c0f000
mov ecx, edi
cmovne esi, eax
lea eax, [ebp - 0x2c]
push esi
sub esp, 8
mov dword [ebp - 0x4c], esi
push eax
push ebx
call fcn.00446b70
test eax, eax
jne 0x446049
lea esi, [edi + 0x20]
mov dword [ebp - 0x58], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 1
lea edx, [ebp - 0x2c]
cmp dword [ebp - 0x18], 8
push ecx
push dword [ebp - 0x4c]
cmovae edx, dword [ebp - 0x2c]
mov ecx, ebx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.00445ea0
add esp, 0x10
mov dword [edi + 4], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
jne 0x44603c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x44603c
push dword [ebp - 0x4c]
lea eax, [ebp - 0x2c]
mov ecx, edi
sub esp, 8
push eax
push ebx
call fcn.00446b70
mov byte [ebp - 4], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
je 0x446061
mov ecx, edi
call fcn.004471b0
cmp eax, 0x12e
jne 0x446252
lea esi, [edi + 0x20]
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x5c]
or eax, 0x80200000
push ecx
push eax
push dword [ebp - 0x50]
mov ecx, ebx
mov dword [ebp - 0x58], eax
push dword [ebp - 0x54]
call fcn.00445ea0
add esp, 0x10
mov dword [edi + 4], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
jne 0x4460ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x4460ca
push dword [ebp - 0x58]
lea eax, [ebp - 0x2c]
mov ecx, edi
sub esp, 8
push eax
push ebx
call fcn.00446b70
mov byte [ebp - 4], 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
mov byte [ebp - 0x45], 0
je 0x446243
mov ecx, edi
call fcn.004471b0
cmp eax, 0x12e
jne 0x446243
push str.Location
lea ecx, [ebp - 0x78]
call fcn.00404380
mov byte [ebp - 4], 3
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
call fcn.00446960
mov byte [ebp - 4], 5
mov edx, dword [ebp - 0x64]
cmp edx, 8
jb 0x446155
mov ecx, dword [ebp - 0x78]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x44614b
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4462ce
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x68], 0
mov dword [ebp - 0x64], 7
mov word [ebp - 0x78], ax
cmp dword [ebp - 0x34], eax
je 0x4461ec
mov ecx, dword [edi + 4]
mov byte [ebp - 0x45], 1
call fcn.004455f0
mov dword [ebp - 0x60], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 6
lea edx, [ebp - 0x44]
cmp dword [ebp - 0x30], 8
push ecx
push dword [ebp - 0x4c]
cmovae edx, dword [ebp - 0x44]
mov ecx, ebx
push dword [ebp - 0x50]
push dword [ebp - 0x54]
call fcn.00445ea0
add esp, 0x10
mov dword [edi + 4], eax
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [edi + 4], 0
jne 0x4461df
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x2f19
jne 0x4461df
push dword [ebp - 0x4c]
lea eax, [ebp - 0x44]
mov ecx, edi
sub esp, 8
push eax
push ebx
call fcn.00446b70
mov byte [ebp - 4], 5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov byte [ebp - 4], 0
mov edx, dword [ebp - 0x30]
cmp edx, 8
jb 0x44622a
mov ecx, dword [ebp - 0x44]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446220
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4462d3
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
mov word [ebp - 0x44], ax
cmp byte [ebp - 0x45], al
jne 0x446252
mov ecx, dword [edi + 4]
call fcn.004455f0
mov dword [edi + 4], 0
cmp dword [edi + 4], 0
setne bl
jmp 0x44625d
xor bl, bl
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x44629a
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x446290
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4462d8
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
mov al, bl
mov dword [ebp - 0x18], 7
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00502346
mov esp, ebp
pop ebp
ret 0x14
call fcn.00506759
call fcn.00506759
call fcn.00506759
int3