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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4e9eed
push eax
mov eax, 0x2006c
mov dword fs:[0], esp
call fcn.004e88a0
mov eax, dword [0x520308]
push ebx
mov ebx, ecx
mov dword [ebp - 0x48], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x54], ebx
call fcn.00405350
mov ecx, edx
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x4c], ecx
test ecx, ecx
jg 0x4622ab
jl 0x46224b
cmp eax, 1
jae 0x4622ab
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x462287
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
push 0x4f03e8
push 0
push 0x5068e4
mov ecx, ebx
call fcn.0044d520
pop ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x521974]
mov dword [ebp - 0x44], vtable.TextStream.0
mov dword [ebp - 0x40], 0
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x38], 0
mov dword [ebp - 0x34], 0xffffffff
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
cmp eax, 0xffffffff
je 0x4622fb
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x34], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
neg eax
sbb al, al
and byte [ebp - 0x2a], al
push esi
mov dword [ebp - 0x44], vtable.TextFile.0
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x44]
mov eax, dword [0x51b98c]
mov eax, dword [eax + 0xfc]
and eax, 0x7fffffff
push eax
push 0x30c
push dword [ebp + 8]
call fcn.004ac9f0
test al, al
jne 0x462385
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51b98c]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x46236b
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
mov esi, eax
jmp 0x462536
push 0x4f03e8
push 0
push 0x5068e4
mov ecx, ebx
call fcn.0044d520
mov esi, eax
jmp 0x462536
mov eax, dword fs:[0x24]
xorps xmm0, xmm0
movlpd qword [ebp - 0x5c], xmm0
mov ebx, dword [ebp - 0x58]
push edi
mov edi, dword [ebp - 0x5c]
mov dword [ebp + 0xc], eax
nop dword [eax]
push 1
push 0xffff
lea eax, [ebp - 0x20078]
push eax
lea ecx, [ebp - 0x44]
call fcn.004acbe0
mov esi, eax
test esi, esi
je 0x4624ba
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [0x51b98c]
sub eax, dword [0x521784]
cmp eax, dword [ecx + 0xd8]
jbe 0x462413
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x462408
mov eax, dword [ebp + 0xc]
cmp dword [0x5203dc], eax
jne 0x462408
mov edx, 1
or ecx, 0xffffffff
call fcn.00401860
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x521784], eax
add edi, 1
adc ebx, 0
cmp ebx, dword [ebp - 0x4c]
jl 0x4623a0
jg 0x462429
cmp edi, dword [ebp - 0x50]
jb 0x4623a0
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x46244a
cmp dword [ebp - 0x18], 0
jne 0x46244a
mov eax, dword [ebp - 0x44]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call dword [eax + 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
lea ecx, [ebp - 0x44]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
call dword [eax + 8]
test esi, esi
je 0x46247b
cmp word [ebp + esi*2 - 0x2007a], 0xa
jne 0x46246d
add esi, 0xffffffff
je 0x46247b
push 1
push 0
push esi
lea eax, [ebp - 0x20078]
push eax
jmp 0x462483
push 1
push 0
push 0xffffffffffffffff
push 0
mov ecx, dword [ebp - 0x48]
call fcn.004b3e10
test eax, eax
jne 0x462496
xor esi, esi
jmp 0x462535
mov eax, dword [0x51b98c]
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x4f04b0
mov dword [eax + 0x30], 0
call fcn.004b3e10
jmp 0x462533
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x51b98c]
mov dword [ecx + 0x30], eax
mov ecx, dword [ebp - 0x3c]
test ecx, ecx
je 0x4624ea
cmp dword [ebp - 0x18], 0
jne 0x4624ea
mov eax, dword [ebp - 0x44]
push ecx
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call dword [eax + 0x10]
mov dword [ebp - 0x3c], 0
xor eax, eax
lea ecx, [ebp - 0x44]
mov word [ebp - 0x1c], ax
mov eax, dword [ebp - 0x44]
call dword [eax + 8]
mov eax, dword [0x51b98c]
test byte [eax + 0x100], 1
jne 0x46251f
mov ecx, dword [0x51eabc]
push 1
push 0
push 0xffffffffffffffff
push 0x5068e4
call fcn.004b3e10
jmp 0x462533
mov ecx, dword [ebp - 0x54]
push 0x4f03e8
push 0
push 0x5068e4
call fcn.0044d520
mov esi, eax
pop edi
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x44], vtable.TextFile.0
test eax, eax
je 0x462564
cmp dword [ebp - 0x18], 0
jne 0x462564
push eax
push dword [ebp - 0x14]
lea ecx, [ebp - 0x44]
call fcn.004ad590
mov dword [ebp - 0x3c], 0
mov ecx, dword [ebp - 0x10]
xor eax, eax
mov word [ebp - 0x1c], ax
cmp ecx, 0xffffffff
je 0x46258f
mov eax, dword [ebp - 0x40]
and eax, 0x10000003
cmp eax, 0x10000000
je 0x462588
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x10], 0xffffffff
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x44], vtable.TextStream.0
test eax, eax
je 0x4625b5
push 0x2000
push 0
push eax
call fcn.004cc590
push dword [ebp - 0x14]
call fcn.004cfed0
add esp, 0x10
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 8