Function at 0x40129c
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x458
and dword [ebp - 0x44c], 0
mov dword [0x41f1e4], 0x693f
push 0x693f
call fcn.00403739
pop ecx
mov dword [0x41f1dc], eax
push 0x693f
push 0x40904c
push dword [0x41f1dc]
call fcn.004035ec
add esp, 0xc
push 0x100
call fcn.00403739
pop ecx
mov dword [0x41f1e0], eax
push 0x100
push 0x40f98c
push dword [0x41f1e0]
call fcn.004035ec
add esp, 0xc
mov eax, dword [ebp + 0x10]
mov dword [0x410768], eax
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x410778], eax
cmp dword [0x410778], 0
jne 0x40132f
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.VirtualProtect
push dword [0x410778]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x410764], eax
cmp dword [0x410764], 0
jne 0x401356
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
and dword [0x409038], 0
call fcn.0040103e
test eax, eax
jne 0x4013eb
and dword [0x409038], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x450], eax
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x454], eax
mov eax, dword [ebp - 0x454]
sub eax, dword [ebp - 0x450]
mov dword [ebp - 0x458], eax
cmp dword [ebp - 0x458], 0x2ee
jle 0x4013c8
cmp dword [ebp - 0x458], 0x3fc
jge 0x4013c8
mov dword [0x409038], 1
cmp dword [0x409038], 0
jne 0x4013eb
push dword [ebp - 0x458]
push str.FAILED_with_delay__d
lea eax, [ebp - 0x308]
push eax
call fcn.004036e7
add esp, 0xc
cmp dword [0x409038], 0
je 0x40154d
mov eax, dword [0x409040]
add eax, 7
mov dword [0x40903c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x410770
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push dword [0x41f1e4]
call fcn.00403739
pop ecx
mov dword [0x410760], eax
mov eax, dword [0x40903c]
imul eax, eax, 0x63
mov dword [0x40903c], eax
mov eax, dword [0x40903c]
imul eax, dword [0x409040]
mov ecx, dword [0x409040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40903c], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
and dword [ebp - 0x30c], 0
jmp 0x401470
mov eax, dword [ebp - 0x30c]
inc eax
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
cmp eax, dword [0x41f1e4]
jae 0x40152b
push 0x410770
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0x410770
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x41f1dc]
add eax, dword [ebp - 0x30c]
mov al, byte [eax]
mov byte [ebp - 0x208], al
mov eax, dword [0x40903c]
imul eax, dword [0x409040]
mov ecx, dword [0x409040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40903c], eax
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
movzx eax, byte [ebp - 0x208]
mov ecx, dword [0x410760]
add ecx, dword [ebp - 0x30c]
mov edx, dword [0x41f1e0]
mov al, byte [edx + eax]
mov byte [ecx], al
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
mov eax, dword [0x409040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x409040], eax
jmp 0x401463
push 0
push 0
push 0
call fcn.004035ec
add esp, 0xc
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
mov eax, dword [0x40903c]
imul eax, dword [0x409040]
mov ecx, dword [0x409040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40903c], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
push dword [0x41f1e4]
push 0x41077c
push dword [0x410760]
call fcn.00401fc9
add esp, 0xc
mov dword [ebp - 0x448], eax
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
mov dword [0x410760], 0x41077c
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
mov eax, dword [ebp - 0x448]
mov dword [0x41f1e4], eax
call fcn.00401182
cmp dword [0x409030], 9
jne 0x401603
and dword [0x409038], 0
mov eax, dword [0x40903c]
sub eax, 4
mov dword [0x409040], eax
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [ebp - 0x30c], 0x14
jmp 0x40161c
mov eax, dword [ebp - 0x30c]
inc eax
mov dword [ebp - 0x30c], eax
mov eax, dword [ebp - 0x30c]
cmp eax, dword [0x41f1e4]
jae 0x401744
mov eax, dword [0x410760]
add eax, dword [ebp - 0x30c]
movzx eax, byte [eax]
cmp eax, 0x44
jne 0x40173f
mov eax, dword [0x410760]
add eax, dword [ebp - 0x30c]
movzx eax, byte [eax - 1]
cmp eax, 0x43
jne 0x40173f
mov eax, dword [0x410760]
add eax, dword [ebp - 0x30c]
movzx eax, byte [eax - 2]
cmp eax, 0x46
jne 0x40173f
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
push 0x410770
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x30c]
mov ecx, dword [0x410760]
lea eax, [ecx + eax - 6]
mov dword [ebp - 0x318], eax
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
mov eax, dword [0x409040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x409040], eax
mov eax, dword [ebp - 0x318]
mov ecx, dword [0x409030]
mov dword [eax], ecx
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x409040]
add eax, 7
mov dword [0x40903c], eax
mov eax, dword [ebp - 0x30c]
mov ecx, dword [0x410760]
lea eax, [ecx + eax - 0xa]
mov dword [ebp - 0x314], eax
push 0x410770
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [0x409040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x409040], eax
mov eax, dword [ebp - 0x314]
mov ecx, dword [0x409034]
mov dword [eax], ecx
mov eax, dword [0x409040]
add eax, 7
mov dword [0x40903c], eax
jmp 0x40160f
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
call fcn.004011de
mov eax, dword [0x40903c]
imul eax, dword [0x409040]
mov ecx, dword [0x409040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40903c], eax
xor eax, eax
leave
ret 0x10