Function at 0x4029f8
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 [str.s_tv_]
sub eax, 0x696
mov dword [str._tv_], eax
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
and dword [ebp - 8], 0
jmp 0x402a45
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 0x402c8a
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 [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x2000000
test eax, eax
je 0x402b3d
mov eax, dword [str.s_tv_]
sub eax, 0x696
mov dword [str._tv_], 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 [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
mov eax, dword [str._tv_]
imul eax, eax, 0x2c
mov dword [str.s_tv_], eax
jmp 0x402a35
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
mov eax, dword [ebp - 0x10]
shl eax, 4
mov ecx, dword [ebp - 0x20]
lea eax, [eax + ecx*8 + 0x40bba4]
mov ecx, dword [ebp - 0xc]
mov eax, dword [eax + ecx*4]
mov dword [ebp - 0x18], eax
mov eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
sub eax, dword [str.s_tv_]
add eax, 3
mov dword [str._tv_], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x4000000
test eax, eax
je 0x402bc9
mov eax, dword [ebp - 0x18]
or ah, 2
mov dword [ebp - 0x18], eax
mov eax, dword [str.s_tv_]
sub eax, 0x696
mov dword [str._tv_], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [str.s_tv_]
add eax, dword [str.s_tv_]
mov ecx, dword [str._tv_]
imul ecx, dword [str.s_tv_]
add eax, ecx
sub eax, dword [str._tv_]
mov dword [str._tv_], eax
cmp dword [ebp - 0x14], 0
jne 0x402c59
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x40
test eax, eax
je 0x402c3f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
mov eax, dword [eax + 0x20]
mov dword [ebp - 0x14], eax
jmp 0x402c59
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x24]
and eax, 0x80
test eax, eax
je 0x402c59
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 0x402c85
mov eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], 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 [sym.imp.KERNEL32.dll_VirtualProtect]
jmp 0x402a35
mov eax, dword [str.s_tv_]
add eax, dword [str._tv_]
sub eax, dword [str.s_tv_]
add eax, 0x17
mov dword [str.s_tv_], eax
mov eax, dword [str.s_tv_]
imul eax, dword [str.s_tv_]
imul eax, dword [str._tv_]
imul eax, dword [str._tv_]
add eax, 0x14
mov dword [str._tv_], eax
leave
ret