Function at 0x402c7d
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 [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push 0x40ba98
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
and dword [ebp - 8], 0
jmp 0x402ccd
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 0x402eb1
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
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x2000000
test eax, eax
je 0x402d9c
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405018]
add eax, 7
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]
mov eax, dword [0x405018]
imul eax, dword [0x405018]
sub eax, 3
mov dword [0x405014], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
jmp 0x402cbd
mov eax, dword [0x405018]
add eax, 7
mov dword [0x405014], eax
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*8 + 0x40b668]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
test eax, eax
je 0x402de7
mov eax, dword [ebp - 0x18]
or ah, 2
mov dword [ebp - 0x18], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], eax
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [0x405014]
sub eax, 4
mov dword [0x405018], eax
cmp dword [ebp - 0x14], 0
jne 0x402e6d
mov eax, dword [0x405018]
shl eax, 3
mov dword [0x405018], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x40
test eax, eax
je 0x402e53
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
jmp 0x402e6d
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x80
test eax, eax
je 0x402e6d
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 0x402eac
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
mov eax, dword [0x405014]
mov ecx, dword [0x405018]
lea eax, [ecx + eax - 9]
mov dword [0x405014], 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 [0x40ba8c]
jmp 0x402cbd
mov eax, dword [0x405018]
shl eax, 1
mov dword [0x405014], eax
leave
ret