Function at 0x1004dd40
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
push edi
mov ecx, dword [esi + 4]
mov dword [esp + 0x18], esi
cmp ecx, eax
je 0x1004dd63
mov byte [esi + 0xfc], 0
test eax, eax
cmove eax, ecx
mov ecx, dword [esi + 0xc8]
mov dword [ebp + 8], eax
mov eax, dword [ecx]
push 0x8e
call dword [eax + 0x20]
mov ecx, dword [esi + 0xc8]
mov edi, eax
mov eax, dword [ecx]
push 0x8f
call dword [eax + 0x20]
mov ebx, eax
call fcn.100066b0
lea esi, [eax + 0x1a0]
push esi
mov dword [esp + 0x24], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x20]
mov edx, dword [esi]
sub edx, dword [eax + 0x198]
mov ecx, dword [esi + 4]
sbb ecx, dword [eax + 0x19c]
push 0
push 0x3e8
push ecx
push edx
call fcn.10099e00
mov esi, dword [esp + 0x20]
push dword [esi + 0x1cc]
push dword [esi + 0x1c8]
push edx
push eax
call fcn.100a4aa0
test edx, edx
jl 0x1004de11
jg 0x1004ddec
cmp eax, 0x3e8
jbe 0x1004de11
lea eax, [esi + 0x198]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
push edi
call fcn.10014190
mov dword [esi + 4], eax
mov eax, dword [0x101e2ddc]
add esp, 8
mov dword [esi + 0x15c], eax
mov eax, dword [esi + 4]
mov dword [esp + 0x1c], eax
call fcn.100066b0
mov eax, dword [eax + 8]
mov dword [esp + 0x20], eax
call fcn.100066b0
mov ecx, eax
call fcn.10003b20
mov dword [esp + 0x10], eax
call fcn.100066b0
lea esi, [eax + 0x1c0]
push esi
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [esp + 0x14]
mov edx, dword [esi]
sub edx, dword [eax + 0x1b8]
mov ecx, dword [esi + 4]
sbb ecx, dword [eax + 0x1bc]
push 0
push 0x3e8
push ecx
push edx
call fcn.10099e00
mov esi, dword [esp + 0x14]
push dword [esi + 0x1cc]
push dword [esi + 0x1c8]
push edx
push eax
call fcn.100a4aa0
test edx, edx
jl 0x1004deb6
jg 0x1004de91
cmp eax, 0x3e8
jbe 0x1004deb6
lea eax, [esi + 0x1b8]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push ebx
push edi
call fcn.10013f00
mov dword [esi + 0x10], eax
mov eax, dword [0x101e2ddc]
add esp, 8
mov dword [esi + 0x15c], eax
mov eax, dword [esi + 0x10]
mov dword [esp + 0x14], eax
call fcn.100066b0
mov eax, dword [eax + 0x15c]
mov dword [esp + 0x24], eax
call fcn.100066b0
add eax, 0x144
cmp dword [eax + 0x14], 8
jb 0x1004dede
mov eax, dword [eax]
mov ecx, str.typeeasy.exe
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x1004df09
test dx, dx
je 0x1004df05
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x1004df09
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004dee3
xor eax, eax
jmp 0x1004df0e
sbb eax, eax
or eax, 1
test eax, eax
jne 0x1004df2c
call fcn.100066b0
mov esi, dword [eax + 0x18]
mov dword [esp + 0x10], esi
call fcn.100066b0
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x14], ecx
jmp 0x1004df34
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
cmp dword [esp + 0x24], 1
jg 0x1004df80
mov edx, dword [esp + 0x1c]
cmp edi, edx
jge 0x1004df50
mov edi, esi
mov esi, dword [esp + 0x18]
sub edi, dword [esi + 0x3c]
add edi, edx
jmp 0x1004df60
mov eax, esi
mov esi, dword [esp + 0x18]
sub eax, dword [esi + 0x3c]
add eax, edx
cmp edi, eax
cmovg edi, eax
mov edx, dword [esp + 0x20]
cmp ebx, edx
jge 0x1004df71
mov ebx, ecx
sub ebx, dword [esi + 0x40]
add ebx, edx
jmp 0x1004dfbe
mov eax, ecx
sub eax, dword [esi + 0x40]
add eax, edx
cmp ebx, eax
jle 0x1004dfbe
mov ebx, eax
jmp 0x1004dfbe
mov eax, dword [esp + 0x1c]
cmp edi, eax
jge 0x1004df95
mov edi, esi
mov esi, dword [esp + 0x18]
sub edi, dword [esi + 0x3c]
add edi, eax
jmp 0x1004dfa3
mov eax, esi
mov esi, dword [esp + 0x18]
sub eax, dword [esi + 0x3c]
cmp edi, eax
cmovg edi, eax
mov eax, dword [esp + 0x20]
cmp ebx, eax
jge 0x1004dfb4
mov ebx, ecx
sub ebx, dword [esi + 0x40]
add ebx, eax
jmp 0x1004dfbe
mov eax, ecx
sub eax, dword [esi + 0x40]
cmp ebx, eax
cmovg ebx, eax
mov ecx, dword [esi + 0xc8]
push edi
mov eax, dword [ecx]
push 0x8e
call dword [eax + 0x2c]
mov ecx, dword [esi + 0xc8]
push ebx
mov eax, dword [ecx]
push 0x8f
call dword [eax + 0x2c]
test edi, edi
jne 0x1004e006
test ebx, ebx
jne 0x1004e006
mov eax, dword [esi + 0x3c]
mov ebx, dword [esp + 0x14]
sub ebx, dword [esi + 0x40]
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [esp + 0x10]
cdq
sub eax, edx
mov edi, eax
sar ecx, 1
sar edi, 1
sub edi, ecx
mov ecx, dword [0x101ed6c8]
test ecx, ecx
jne 0x1004e03e
push 8
call fcn.10092352
mov ecx, eax
add esp, 4
test ecx, ecx
je 0x1004e036
mov dword [ecx], vtable.CImeProc.0
mov byte [ecx + 4], 1
mov dword [0x101e88a8], 0
jmp 0x1004e038
xor ecx, ecx
mov dword [0x101ed6c8], ecx
mov eax, dword [ecx]
call dword [eax + 0x10]
mov edx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
mov eax, dword [esp + 0x10]
cmp edi, edx
cmovl edi, edx
cmp ebx, ecx
cmovl ebx, ecx
sub eax, dword [esi + 0x3c]
cmp dword [esp + 0x24], 1
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], ebx
jg 0x1004e082
add eax, edx
cmp eax, edi
jge 0x1004e077
cmp eax, edx
cmovl eax, edx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esi + 0x40]
add eax, ecx
jmp 0x1004e095
cmp eax, edi
jge 0x1004e08e
cmp eax, edx
cmovl eax, edx
mov dword [esi + 0x20], eax
mov eax, dword [esp + 0x14]
sub eax, dword [esi + 0x40]
cmp eax, ebx
jge 0x1004e0a1
cmp eax, ecx
cmovl eax, ecx
mov dword [esi + 0x24], eax
mov edi, dword [ebp + 8]
push edi
mov ecx, esi
call fcn.10042680
push edi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004e0cd
push edi
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x1004e0cd
push 1
push 0
push edi
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8