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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1007df55
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x1009400c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp byte [0x100940e6], 0
je 0x1002effd
cmp byte [0x101db6f5], 0
mov edx, dword [0x67c290]
jne 0x1002ed04
mov eax, dword [0x67c27c]
cmp eax, 0xc0
je 0x1002ecdc
cmp eax, 0xdc
jne 0x1002effd
cmp edx, 1
jne 0x1002effd
mov byte [0x101db6f7], 0
mov byte [0x101db6f5], dl
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101f3efc], eax
mov al, 1
jmp 0x1002efff
lea eax, [ecx - 1]
cmp eax, 0xe
ja case.0x1002ed17.3
movzx eax, byte [eax + 0x1002f034]
jmp dword [eax*4 + 0x1002f020]
mov eax, dword [0x67c27c]
cmp edx, 1
jne case.0x1002ed17.3
cmp eax, 0x26
jne 0x1002ee2d
cmp dword [0x101f4500], 0
je case.0x1002ed17.3
mov eax, dword [0x101f44fc]
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
add eax, 8
push eax
call fcn.10007ae0
mov dword [ebp - 4], 0
mov eax, dword [0x101f44fc]
mov esi, dword [eax]
mov ecx, dword [esi]
dec dword [0x101f4500]
mov eax, dword [esi + 4]
mov dword [eax], ecx
mov eax, dword [esi + 4]
mov dword [ecx + 4], eax
mov ecx, dword [esi + 0x1c]
cmp ecx, 0x10
jb 0x1002edaa
mov eax, dword [esi + 8]
inc ecx
cmp ecx, 0x1000
jb 0x1002eda0
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1002ee27
mov eax, edx
push ecx
push eax
call fcn.1004d7a1
add esp, 8
push 0x20
push esi
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0xf
mov byte [esi + 8], 0
call fcn.1004d7a1
add esp, 8
lea eax, [ebp - 0x28]
push eax
push dword [0x101f44fc]
call fcn.1002f8b0
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
push 0xc8
push 0x101f3df0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov edx, dword [ebp - 0x14]
add esp, 0xc
cmp edx, 0x10
jb case.0x1002ed17.3
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002eec2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002eec2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
cmp eax, 0x28
jne case.0x1002ed17.3
cmp dword [0x101f4500], 0
je case.0x1002ed17.3
mov eax, dword [0x101f44fc]
lea ecx, [ebp - 0x40]
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.10007ae0
mov dword [ebp - 4], 1
call fcn.1002f640
lea eax, [ebp - 0x40]
push eax
mov eax, dword [0x101f44fc]
push dword [eax]
call fcn.1002f8b0
cmp dword [ebp - 0x2c], 0x10
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push 0xc8
push 0x101f3df0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
mov edx, dword [ebp - 0x2c]
add esp, 0xc
cmp edx, 0x10
jb case.0x1002ed17.3
mov ecx, dword [ebp - 0x40]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1002eec2
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1002eec2
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1004d7a1
add esp, 8
mov al, 1
jmp 0x1002efff
cmp byte [0x101db6f7], 0
mov ecx, dword [0x67c288]
jne 0x1002eef0
mov byte [0x101db6f7], 1
mov al, 1
jmp 0x1002efff
cmp ecx, 0xd
jne 0x1002ef23
call fcn.1002e870
test al, al
jne 0x1002ef0b
push str.Error:_Command_not_recognized_
call fcn.1002e470
add esp, 4
mov dword [0x101db74c], 0
mov al, 1
mov byte [0x101f3df0], 0
jmp 0x1002efff
cmp ecx, 8
jne 0x1002ef70
mov eax, dword [0x101db74c]
sub eax, 1
mov dword [0x101db74c], eax
jns 0x1002ef45
mov dword [0x101db74c], 0
xor eax, eax
jmp 0x1002ef50
cmp eax, 0xc8
jae 0x1002f019
mov byte [eax + 0x101f3df0], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101db748], eax
mov al, 1
mov byte [0x101db6f6], 1
jmp 0x1002efff
cmp ecx, 0x1f
jle case.0x1002ed17.3
cmp ecx, 0x7f
jge case.0x1002ed17.3
mov eax, dword [0x101db74c]
mov byte [eax + 0x101f3df0], cl
inc eax
mov dword [0x101db74c], eax
cmp eax, 0xc8
jl 0x1002ef4a
mov dword [0x101db74c], 0xc7
mov eax, 0xc7
jmp 0x1002ef50
mov byte [0x101db6f5], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x101f3efc], eax
mov al, 1
jmp 0x1002efff
cmp dword [0x61684c], 0
mov eax, dword [0x101db738]
jle 0x1002efe9
mov ecx, dword [0x101db740]
add eax, 3
mov dword [0x101db738], eax
cmp eax, ecx
jl case.0x1002ed17.3
lea eax, [ecx - 1]
mov dword [0x101db738], eax
mov al, 1
jmp 0x1002efff
sub eax, 3
mov ecx, 0
cmovs eax, ecx
mov dword [0x101db738], eax
mov al, 1
jmp 0x1002efff
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1004d763
mov esp, ebp
pop ebp
ret
call fcn.1004de30
nop
push ds
in eax, dx
add dl, byte [eax]
shr esi, cl
add dl, byte [eax]
mov ebp, 0xa71002ef
out dx, eax
add dl, byte [eax]
stc
out dx, eax
add dl, byte [eax]
add byte [ecx], al
add al, 2
add al, 4
add al, 4
add al, 4
add al, 4
add al, 4
add ecx, esp
int3