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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4990db
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x20064
call fcn.004940f0
mov eax, dword [0x4c1de8]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
push edi
mov eax, esi
call fcn.0040cb80
test al, al
je 0x4408ff
push 0x10
xor ebx, ebx
push ebx
push esi
call fcn.0048a487
add esp, 0xc
jmp 0x44090a
push esi
call fcn.00489d61
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
cmp edx, ebx
jg 0x440986
jl 0x44091d
cmp eax, 1
jae 0x440986
mov eax, dword [0x4be40c]
mov dword [eax + 0x30], 0x57
cmp byte [eax + 0x104], bl
jne 0x44095c
mov ecx, dword [0x4c264c]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f2c4
call fcn.00401200
mov ecx, dword [esp + 0x20074]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49c820
push ebx
push 0x49f2c4
call fcn.0042ee20
mov ecx, dword [esp + 0x20074]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4c4e08]
or edi, 0xffffffff
mov dword [esp + 0x20], vtable.TextStream.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], ebx
cmp eax, edi
je 0x4409c6
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.DLL_GetCPInfo]
test eax, eax
jne 0x4409c6
mov byte [esp + 0x36], bl
mov dword [esp + 0x20], vtable.TextFile.0
mov dword [esp + 0x50], edi
mov ecx, dword [ebp + 0xc]
mov dword [esp + 0x2007c], ebx
mov eax, dword [0x4be40c]
mov esi, dword [eax + 0xf8]
push 0x30c
push ecx
lea ecx, [esp + 0x28]
and esi, 0x7fffffff
mov dword [esp + 0x30], ebx
call dword [0x4a4510]
test al, al
je 0x440a1b
mov eax, esi
mov ebx, 0x30c
lea ecx, [esp + 0x20]
call fcn.0046d9d0
xor ebx, ebx
test al, al
jne 0x440a70
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0x104], bl
jne 0x440a51
mov edx, dword [0x4c264c]
push edx
mov eax, edi
mov ecx, 0x49f2c4
call fcn.00401200
mov dword [esp + 0x2007c], edi
jmp 0x440c62
mov ecx, dword [ebp + 8]
push 0x49c820
push ebx
push 0x49f2c4
call fcn.0042ee20
mov dword [esp + 0x2007c], edi
jmp 0x440c62
xor edi, edi
cmp dword [esp + 0x14], ebx
jl 0x440b96
jg 0x440a90
cmp dword [esp + 0x10], ebx
jbe 0x440b96
jmp 0x440a90
push 1
push 0xffff
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x2c]
call fcn.0046db00
mov esi, eax
test esi, esi
je 0x440b10
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
sub eax, dword [0x4c4a7c]
mov ecx, dword [0x4be40c]
cmp eax, dword [ecx + 0xd4]
jbe 0x440af3
push 0
push 0
push 0
push 0
lea edx, [esp + 0x64]
push edx
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x440ae8
push 1
push 0xffffffffffffffff
call fcn.004012b0
add esp, 8
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov dword [0x4c4a7c], eax
add edi, 1
adc ebx, 0
cmp ebx, dword [esp + 0x14]
jl 0x440a90
jg 0x440b9a
cmp edi, dword [esp + 0x10]
jb 0x440a90
jmp 0x440b9a
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [0x4be40c]
mov dword [ecx + 0x30], eax
mov eax, dword [esp + 0x28]
test eax, eax
je 0x440b49
cmp dword [esp + 0x48], 0
jne 0x440b49
mov edx, dword [esp + 0x4c]
push eax
mov eax, dword [esp + 0x24]
push edx
mov edx, dword [eax + 0x10]
lea ecx, [esp + 0x28]
call edx
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x20]
xor eax, eax
mov word [esp + 0x44], ax
mov eax, dword [edx + 8]
lea ecx, [esp + 0x20]
call eax
mov ecx, dword [0x4be40c]
cmp byte [ecx + 0x104], 0
jne 0x440b7d
mov edx, dword [0x4c264c]
push edx
mov ecx, 0x49f2c4
jmp 0x440c4f
mov ecx, dword [ebp + 8]
push 0x49c820
push 0
push 0x49f2c4
call fcn.0042ee20
jmp 0x440c57
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x440bc4
cmp dword [esp + 0x48], 0
jne 0x440bc4
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x50]
push eax
mov eax, dword [edx + 0x10]
lea ecx, [esp + 0x28]
call eax
mov dword [esp + 0x28], 0
mov edx, dword [esp + 0x20]
mov eax, dword [edx + 8]
xor ecx, ecx
mov word [esp + 0x44], cx
lea ecx, [esp + 0x20]
call eax
test esi, esi
je 0x440be9
cmp word [esp + esi*2 + 0x6e], 0xa
jne 0x440be5
dec esi
test esi, esi
jne 0x440c2b
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [esp + 0x2c]
call fcn.00472870
test eax, eax
jne 0x440c37
lea ecx, [esp + 0x20]
mov dword [esp + 0x2007c], 0xffffffff
call fcn.004148e0
xor eax, eax
mov ecx, dword [esp + 0x20074]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 1
push 0
push esi
lea ecx, [esp + 0x7c]
push ecx
jmp 0x440bf1
mov edx, dword [0x4be40c]
mov eax, dword [0x4c264c]
mov dword [edx + 0x30], 0
push eax
mov ecx, 0x49c8d4
or eax, 0xffffffff
call fcn.00401200
mov dword [esp + 0x2007c], 0xffffffff
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.004148e0
mov ecx, dword [esp + 0x20074]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8