Function at 0x4022b0
Capabilities:
Check for time delay via queryperformancecounter
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x4022f7
push 0
call dword [sym.imp.kernel32.dll_Sleep]
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
xor eax, eax
jmp 0x40280d
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x10], ecx
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
push 0
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 0x10]
cmp dword [eax], 0x4550
je 0x40234c
push 0
push 0
push 0
call fcn.004035ec
add esp, 0xc
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
xor eax, eax
jmp 0x40280d
mov eax, dword [0x409040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x409040], eax
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
mov eax, dword [ebp - 0x10]
push dword [eax + 0x34]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, dword [0x40903c]
imul eax, eax, 0x63
mov dword [0x40903c], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x4023dc
push 4
push 0x2000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0x20], eax
mov eax, dword [0x409040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x409040], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
cmp dword [ebp - 0x20], 0
jne 0x402412
mov eax, dword [0x409040]
add eax, 7
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
xor eax, eax
jmp 0x40280d
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
push 0
push 0
push 0
call fcn.004035ec
add esp, 0xc
push 0x14
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov dword [ebp - 4], eax
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 4], ecx
mov eax, dword [0x409040]
shl eax, 1
mov dword [0x40903c], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
mov eax, dword [ebp - 4]
and dword [eax + 0xc], 0
mov eax, dword [0x409040]
add eax, 8
mov dword [0x409040], eax
mov eax, dword [ebp - 4]
and dword [eax + 8], 0
push 0
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [ebp - 4]
and dword [eax + 0x10], 0
mov eax, dword [0x409040]
shl eax, 1
mov dword [0x40903c], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x50]
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
push 4
push 0x1000
mov eax, dword [ebp - 0x10]
push dword [eax + 0x54]
push dword [ebp - 0x20]
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
mov eax, dword [0x40903c]
sub eax, 4
mov dword [0x409040], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0x3c]
mov ecx, dword [ebp - 0x10]
add eax, dword [ecx + 0x54]
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x1c]
call fcn.004035ec
add esp, 0xc
push 0
call dword [sym.imp.kernel32.dll_Sleep]
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x1c]
add ecx, dword [eax + 0x3c]
mov eax, dword [ebp - 4]
mov dword [eax], ecx
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
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
mov dword [eax + 0x34], ecx
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
push 0
push 0
push 0
call fcn.004035ec
add esp, 0xc
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0040280f
add esp, 0xc
mov eax, dword [0x40903c]
imul eax, eax, 0x63
mov dword [0x40903c], eax
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x20]
sub ecx, dword [eax + 0x34]
mov dword [ebp - 0xc], ecx
mov eax, dword [0x409040]
shl eax, 1
mov dword [0x40903c], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
cmp dword [ebp - 0xc], 0
je 0x402622
push dword [ebp - 0xc]
push dword [ebp - 4]
call fcn.00402c55
pop ecx
pop ecx
mov eax, dword [0x409040]
add eax, 7
mov dword [0x40903c], eax
push 0
call dword [sym.imp.kernel32.dll_Sleep]
push dword [ebp - 4]
call fcn.00402e2b
pop ecx
test eax, eax
jne 0x402649
jmp 0x40280b
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [0x40903c]
imul eax, eax, 0x63
mov dword [0x40903c], eax
push dword [ebp - 4]
call fcn.004029f7
pop ecx
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 [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x402796
push 0
call dword [sym.imp.kernel32.dll_Sleep]
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x28]
mov dword [ebp - 8], ecx
push 0
call dword [sym.imp.kernel32.dll_Sleep]
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
cmp dword [ebp - 8], 0
jne 0x4026f0
mov eax, dword [0x40903c]
imul eax, dword [0x409040]
mov ecx, dword [0x409040]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x40903c], eax
jmp 0x402809
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
push 0
push 1
push dword [ebp - 0x20]
call dword [ebp - 8]
mov dword [ebp - 0x18], eax
mov eax, dword [0x409040]
xor edx, edx
push 0xc
pop ecx
div ecx
mov dword [0x409040], eax
cmp dword [ebp - 0x18], 0
jne 0x402763
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
jmp 0x402807
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
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
mov eax, dword [0x409040]
shl eax, 3
mov dword [0x409040], eax
mov eax, dword [ebp - 4]
jmp 0x40280d
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]
push dword [ebp - 4]
call fcn.00403335
pop ecx
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
xor eax, eax
jmp 0x40280d
jmp 0x4027b6
jmp 0x4027b6
jmp 0x4027b6
leave
ret