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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x49942b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, 0x20064
call fcn.00494440
mov eax, dword [0x4c1e68]
push ebx
push esi
mov esi, ecx
mov dword [esp + 0x18], eax
push edi
mov eax, esi
call fcn.0040cb80
test al, al
je 0x440ccf
push 0x10
xor ebx, ebx
push ebx
push esi
call fcn.0048a7d7
add esp, 0xc
jmp 0x440cda
push esi
call fcn.0048a0b1
add esp, 4
xor ebx, ebx
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
cmp edx, ebx
jg 0x440d56
jl 0x440ced
cmp eax, 1
jae 0x440d56
mov eax, dword [0x4be40c]
mov dword [eax + 0x30], 0x57
cmp byte [eax + 0x104], bl
jne 0x440d2c
mov ecx, dword [0x4c26cc]
push ecx
or eax, 0xffffffff
mov ecx, 0x49f36c
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 0x4a6b2c
push ebx
push 0x49f36c
call fcn.0042f160
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 [0x4c4e88]
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 0x440d96
lea edx, [esp + 0x30]
push edx
push eax
mov dword [esp + 0x34], eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x440d96
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 [0x4a4610]
test al, al
je 0x440deb
mov eax, esi
mov ebx, 0x30c
lea ecx, [esp + 0x20]
call fcn.0046dce0
xor ebx, ebx
test al, al
jne 0x440e40
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4be40c]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0x104], bl
jne 0x440e21
mov edx, dword [0x4c26cc]
push edx
mov eax, edi
mov ecx, 0x49f36c
call fcn.00401200
mov dword [esp + 0x2007c], edi
jmp 0x441032
mov ecx, dword [ebp + 8]
push 0x4a6b2c
push ebx
push 0x49f36c
call fcn.0042f160
mov dword [esp + 0x2007c], edi
jmp 0x441032
xor edi, edi
cmp dword [esp + 0x14], ebx
jl 0x440f66
jg 0x440e60
cmp dword [esp + 0x10], ebx
jbe 0x440f66
jmp 0x440e60
push 1
push 0xffff
lea eax, [esp + 0x78]
push eax
lea eax, [esp + 0x2c]
call fcn.0046de10
mov esi, eax
test esi, esi
je 0x440ee0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [0x4c4afc]
mov ecx, dword [0x4be40c]
cmp eax, dword [ecx + 0xd4]
jbe 0x440ec3
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 0x440eb8
push 1
push 0xffffffffffffffff
call fcn.004012b0
add esp, 8
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c4afc], eax
add edi, 1
adc ebx, 0
cmp ebx, dword [esp + 0x14]
jl 0x440e60
jg 0x440f6a
cmp edi, dword [esp + 0x10]
jb 0x440e60
jmp 0x440f6a
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 0x440f19
cmp dword [esp + 0x48], 0
jne 0x440f19
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 0x440f4d
mov edx, dword [0x4c26cc]
push edx
mov ecx, 0x49f36c
jmp 0x44101f
mov ecx, dword [ebp + 8]
push 0x4a6b2c
push 0
push 0x49f36c
call fcn.0042f160
jmp 0x441027
mov esi, dword [esp + 0x1c]
mov eax, dword [esp + 0x28]
test eax, eax
je 0x440f94
cmp dword [esp + 0x48], 0
jne 0x440f94
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 0x440fb9
cmp word [esp + esi*2 + 0x6e], 0xa
jne 0x440fb5
dec esi
test esi, esi
jne 0x440ffb
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [esp + 0x2c]
call fcn.00472b80
test eax, eax
jne 0x441007
lea ecx, [esp + 0x20]
mov dword [esp + 0x2007c], 0xffffffff
call fcn.004148f0
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 0x440fc1
mov edx, dword [0x4be40c]
mov eax, dword [0x4c26cc]
mov dword [edx + 0x30], 0
push eax
mov ecx, 0x49c8d0
or eax, 0xffffffff
call fcn.00401200
mov dword [esp + 0x2007c], 0xffffffff
lea ecx, [esp + 0x20]
mov esi, eax
call fcn.004148f0
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