Function at 0x402cb6
Capabilities:
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
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
and dword [ebp - 8], 0
jmp 0x402cf3
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 0x402ec8
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 0x40bab0
call dword [sym.imp.KERNEL32.DLL_QueryPerformanceCounter]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x2000000
test eax, eax
je 0x402da0
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], 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]
push 0
call dword [sym.imp.KERNEL32.DLL_Sleep]
jmp 0x402ce3
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*8 + 0x40b680]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x405018]
add eax, 8
mov dword [0x405018], eax
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
test eax, eax
je 0x402df7
mov eax, dword [ebp - 0x18]
or ah, 2
mov dword [ebp - 0x18], eax
mov eax, dword [0x405014]
imul eax, dword [0x405018]
mov ecx, dword [0x405018]
imul ecx, ecx, 5
sub eax, ecx
mov dword [0x405014], eax
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
cmp dword [ebp - 0x14], 0
jne 0x402e8b
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x40
test eax, eax
je 0x402e71
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
jmp 0x402e8b
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x80
test eax, eax
je 0x402e8b
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 0x402ec3
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], 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 [0x40baa4]
jmp 0x402ce3
mov eax, dword [0x405014]
imul eax, eax, 0x63
mov dword [0x405014], eax
leave
ret