Function at 0x4029f7
Capabilities:
Check for time delay via queryperformancecounter
Enumerate pe sections
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
movzx ecx, word [ecx + 0x14]
lea eax, [eax + ecx + 0x18]
mov dword [ebp - 4], eax
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [0x409040]
shl eax, 1
mov dword [0x40903c], eax
and dword [ebp - 8], 0
jmp 0x402a3f
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
add eax, 0x28
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax]
movzx eax, word [eax + 6]
cmp dword [ebp - 8], eax
jge 0x402c3f
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x20000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x40000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x80000000
neg eax
sbb eax, eax
neg eax
mov dword [ebp - 0xc], eax
push 0
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [0x409040]
add eax, 8
mov dword [0x409040], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x2000000
test eax, eax
je 0x402afb
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
push 0x4000
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 8]
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, dword [0x409040]
add eax, 8
mov dword [0x409040], eax
jmp 0x402a2f
mov eax, dword [0x40903c]
sub eax, 4
mov dword [0x409040], eax
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*8 + 0x40fac8]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [0x40903c]
sub eax, 4
mov dword [0x409040], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
test eax, eax
je 0x402b59
mov eax, dword [ebp - 0x18]
or ah, 2
mov dword [ebp - 0x18], eax
push 0
call dword [sym.imp.kernel32.dll_Sleep]
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
push 0
push 0
push 0
call fcn.0040362a
add esp, 0xc
mov eax, dword [0x409040]
imul eax, dword [0x409040]
sub eax, 3
mov dword [0x40903c], eax
cmp dword [ebp - 0x14], 0
jne 0x402bf2
push 0x410770
call dword [sym.imp.kernel32.dll_QueryPerformanceCounter]
mov eax, dword [0x40903c]
sub eax, 4
mov dword [0x409040], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x40
test eax, eax
je 0x402bd8
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
jmp 0x402bf2
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x80
test eax, eax
je 0x402bf2
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jbe 0x402c3a
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
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
mov eax, dword [ebp - 4]
push dword [eax + 0x10]
mov eax, dword [ebp - 4]
push dword [eax + 8]
call dword [0x410764]
jmp 0x402a2f
mov eax, dword [0x40903c]
mov ecx, dword [0x409040]
lea eax, [ecx + eax - 9]
mov dword [0x40903c], eax
leave
ret