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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a5d28
mov eax, dword fs:[0]
push eax
mov eax, 0x20068
mov dword fs:[0], esp
call fcn.004a4980
mov eax, dword [0x4d3d98]
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 0x18], eax
mov ecx, esi
mov dword [ebp - 0x14], edi
call fcn.0040ded0
test al, al
je 0x440839
push 0x10
push 0
push esi
call fcn.00492e1e
mov ebx, eax
mov esi, edx
add esp, 0xc
mov dword [ebp - 0x10], ebx
mov dword [ebp + 0xc], esi
jmp 0x44084c
push esi
call fcn.00492a3a
add esp, 4
mov dword [ebp - 0x10], eax
mov ebx, eax
mov dword [ebp + 0xc], edx
mov esi, edx
test esi, esi
jg 0x44087f
jl 0x440857
cmp ebx, 1
jae 0x44087f
mov eax, dword [0x4ce8c8]
mov ecx, edi
push 1
mov dword [eax + 0x30], 0x57
call fcn.0042cfe0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
lea ecx, [ebp - 0x50]
call fcn.00414c70
mov dword [ebp - 0x50], vtable.TextFile.0
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x50]
mov eax, dword [0x4ce8c8]
mov eax, dword [eax + 0xfc]
and eax, 0x7fffffff
push eax
push 0x30c
push dword [ebp + 8]
call fcn.00470830
test al, al
jne 0x4408d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4ce8c8]
push 1
mov dword [ecx + 0x30], eax
jmp 0x440a7d
xorps xmm0, xmm0
movlpd qword [ebp - 0x58], xmm0
test esi, esi
jl 0x4409ff
jg 0x4408f1
test ebx, ebx
je 0x4409ff
mov ebx, dword [ebp - 0x54]
mov edi, dword [ebp - 0x58]
nop word [eax + eax]
push 1
push 0xffff
lea eax, [ebp - 0x20074]
push eax
lea ecx, [ebp - 0x50]
call fcn.004709c0
mov esi, eax
test esi, esi
je 0x44097e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x4ce8c8]
sub eax, dword [0x4d49c4]
cmp eax, dword [ecx + 0xd8]
jbe 0x440964
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x74]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x440959
mov edx, 1
or ecx, 0xffffffff
call fcn.00401e60
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4d49c4], eax
add edi, 1
adc ebx, 0
cmp ebx, dword [ebp + 0xc]
jl 0x440900
jg 0x440976
cmp edi, dword [ebp - 0x10]
jb 0x440900
mov edi, dword [ebp - 0x14]
jmp 0x440a02
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4ce8c8]
mov dword [ecx + 0x30], eax
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x4409ae
cmp dword [ebp - 0x24], 0
jne 0x4409ae
push eax
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
push dword [ebp - 0x20]
call dword [eax + 0x10]
mov dword [ebp - 0x48], 0
xor eax, eax
lea ecx, [ebp - 0x50]
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x50]
call dword [eax + 8]
mov eax, dword [0x4ce8c8]
cmp byte [eax + 0x108], 0
jne 0x4409e6
mov ecx, dword [0x4d166c]
push 1
push 0
push 0xffffffffffffffff
push 0x4bf994
call fcn.00475930
jmp 0x440a84
mov ecx, dword [ebp - 0x14]
push 0x4ac22c
push 0
push 0x4bf994
call fcn.0042cf00
jmp 0x440a84
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp - 0x48]
test eax, eax
je 0x440a23
cmp dword [ebp - 0x24], 0
jne 0x440a23
push eax
mov eax, dword [ebp - 0x50]
lea ecx, [ebp - 0x50]
push dword [ebp - 0x20]
call dword [eax + 0x10]
mov dword [ebp - 0x48], 0
xor eax, eax
lea ecx, [ebp - 0x50]
mov word [ebp - 0x28], ax
mov eax, dword [ebp - 0x50]
call dword [eax + 8]
test esi, esi
je 0x440a57
cmp word [ebp + esi*2 - 0x20076], 0xa
lea eax, [esi - 1]
cmovne eax, esi
test eax, eax
je 0x440a57
push 1
push 0
push eax
lea eax, [ebp - 0x20074]
push eax
jmp 0x440a5f
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x18]
call fcn.00475930
test eax, eax
jne 0x440a6f
xor esi, esi
jmp 0x440a86
mov eax, dword [0x4ce8c8]
push 0
mov dword [eax + 0x30], 0
mov ecx, edi
call fcn.0042cfe0
mov esi, eax
mov dword [ebp - 4], 1
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x50], vtable.TextFile.0
test eax, eax
je 0x440ab4
cmp dword [ebp - 0x24], 0
jne 0x440ab4
push eax
push dword [ebp - 0x20]
lea ecx, [ebp - 0x50]
call fcn.004712d0
mov dword [ebp - 0x48], 0
mov ecx, dword [ebp - 0x1c]
xor eax, eax
mov word [ebp - 0x28], ax
cmp ecx, 0xffffffff
je 0x440adf
mov eax, dword [ebp - 0x4c]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x440ad8
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x50], vtable.TextStream.0
test eax, eax
je 0x440af6
push eax
call fcn.004914e4
add esp, 4
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8