Function at 0x66e318
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
push edi
mov edi, eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], edi
test eax, eax
jle 0x66e55d
mov esi, dword [ebp + 8]
dec dword [ebp + 0x10]
cmp dword [esi + 0x10], 0
je 0x66e55d
cmp edi, 1
jl 0x66e526
test edi, edi
je 0x66e55d
cmp edi, dword [esi + 8]
ja 0x66e4f6
mov eax, dword [esi + 0xc]
cmp dword [eax + edi*4], 1
je 0x66e50e
mov ecx, eax
lea eax, [ecx + edi*4]
mov ecx, dword [eax]
cmp ecx, 1
lea edx, [ecx + 1]
mov dword [eax], edx
jg 0x66e55d
push 0
lea eax, [esp + 0x20]
push eax
mov eax, dword [esi + 4]
push edi
call fcn.00664ab8
add esp, 0xc
test eax, eax
jne 0x66e54c
mov ecx, dword [esp + 0x1c]
mov ebx, dword [ecx]
mov dword [esp + 0x14], ebx
cmp dword [ebp + 0xc], eax
je 0x66e48e
movzx eax, byte [ebx + 4]
movzx edx, byte [ebx + 5]
movzx ecx, byte [ebx + 6]
shl eax, 8
or eax, edx
movzx edx, byte [ebx + 7]
shl eax, 8
or eax, ecx
mov ecx, dword [esi]
shl eax, 8
or eax, edx
cmp byte [ecx + 0x13], 0
mov dword [esp + 0x18], eax
je 0x66e3f4
mov edx, dword [ebp + 0x14]
push edx
push 0
mov al, 2
mov ecx, esi
call fcn.0066e288
mov eax, dword [esp + 0x20]
add esp, 8
mov ecx, dword [esi]
movzx edx, word [ecx + 0x18]
shr edx, 2
sub edx, 2
cmp eax, edx
jle 0x66e421
mov ebx, dword [ebp + 0x14]
push edi
push 0x100a9e20
call fcn.0066e1b8
mov ebx, dword [esp + 0x1c]
add esp, 8
dec dword [ebp + 0x10]
jmp 0x66e4b6
test eax, eax
jle 0x66e489
add ebx, 0xa
mov dword [esp + 0x10], eax
movzx esi, byte [ebx - 2]
movzx eax, byte [ebx - 1]
movzx ecx, byte [ebx]
movzx edx, byte [ebx + 1]
shl esi, 8
or esi, eax
mov eax, dword [ebp + 8]
shl esi, 8
or esi, ecx
mov ecx, dword [eax]
shl esi, 8
or esi, edx
cmp byte [ecx + 0x13], 0
je 0x66e46a
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
push edx
push 0
mov al, 2
mov edi, esi
call fcn.0066e288
add esp, 8
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 8]
mov eax, esi
call fcn.0066e228
add ebx, 4
sub dword [esp + 0x10], 1
jne 0x66e42c
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x18]
sub dword [ebp + 0x10], eax
jmp 0x66e4b6
mov eax, dword [esi]
cmp byte [eax + 0x13], 0
je 0x66e4b6
cmp dword [ebp + 0x10], 0
jle 0x66e4b6
mov ecx, dword [ebp + 0x14]
push ecx
push edi
mov ecx, ebx
call fcn.0065e388
mov edi, eax
mov al, 4
mov ecx, esi
call fcn.0066e288
add esp, 8
movzx edi, byte [ebx]
movzx edx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
movzx ecx, byte [ebx + 3]
shl edi, 8
or edi, edx
shl edi, 8
or edi, eax
mov eax, dword [esp + 0x1c]
mov esi, dword [eax + 0x10]
shl edi, 8
or edi, ecx
call fcn.00660898
call fcn.00664a58
cmp dword [ebp + 0x10], 0
jg 0x66e339
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
push edi
push 0x100a9d40
call fcn.0066e1b8
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
push edi
push 0x100a9d58
call fcn.0066e1b8
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x10]
mov ebx, dword [ebp + 0x14]
push edx
push eax
inc ecx
push ecx
push 0x100a9dcc
call fcn.0066e1b8
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, dword [ebp + 0x14]
push edi
push 0x100a9e08
call fcn.0066e1b8
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret