Function at 0x66f85780
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
push edi
mov edi, eax
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [eax + 0x20]
movzx eax, byte [ebx + 4]
movzx ecx, byte [ebx + 5]
mov dl, al
or dl, 4
cmp ecx, 0xb
mov byte [ebx + 4], dl
mov edx, dword [ebx + 0xc]
mov dword [edi + 0x20], edx
jne 0x66f85a30
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x66f859e0
test byte [ecx + 4], 3
jne 0x66f859a8
test byte [ecx + 6], 8
je 0x66f858d0
mov esi, dword [ebx + 0x18]
xor eax, eax
mov dword [esp + 0x14], eax
test esi, esi
je 0x66f85a90
xor ecx, ecx
jmp 0x66f857e5
inc ecx
cmp ecx, esi
jae 0x66f85810
mov eax, dword [ebx + 8]
lea edx, [eax + ecx*8]
mov eax, dword [edx + 4]
add eax, 4
cmp eax, 0xfffffff6
jbe 0x66f857e0
mov edx, dword [edx]
test byte [edx + 4], 3
je 0x66f857e0
mov eax, edi
inc ecx
call fcn.66f85480
cmp ecx, esi
jb 0x66f857e5
lea esi, [esi]
mov edx, dword [ebx + 0x1c]
test edx, edx
je 0x66f859c0
xor ebp, ebp
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x14]
xor esi, esi
mov dword [esp + 0x1c], edi
mov ecx, dword [ebx + 0x14]
mov ebx, edx
and eax, 8
mov edi, eax
lea esi, [esi]
lea esi, [esi]
cmp dword [ecx + 4], 0xffffffff
je 0x66f85890
test edi, edi
jne 0x66f85870
mov eax, dword [ecx + 0xc]
add eax, 4
cmp eax, 0xfffffff6
jbe 0x66f85870
mov edx, dword [ecx + 8]
test byte [edx + 4], 3
jne 0x66f85a20
lea esi, [esi]
lea esi, [esi]
test ebp, ebp
jne 0x66f85890
mov eax, dword [ecx + 4]
add eax, 4
cmp eax, 0xfffffff6
jbe 0x66f85890
mov edx, dword [ecx]
test byte [edx + 4], 3
jne 0x66f85a10
lea esi, [esi]
nop
inc esi
add ecx, 0x18
cmp ebx, esi
jae 0x66f85840
mov esi, dword [esp + 0x14]
mov ebx, dword [esp + 0x18]
test esi, esi
mov edx, dword [ebx + 0x1c]
jle 0x66f858b0
movzx eax, byte [ebx + 4]
and al, 0xfb
mov byte [ebx + 4], al
mov eax, dword [ebx + 0x18]
test edx, edx
lea eax, [eax*8 + 0x20]
je 0x66f858c5
lea edx, [edx + edx*2 + 3]
lea eax, [eax + edx*8]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [edi + 0x12c]
mov dword [esp], ecx
mov dword [esp + 8], eax
mov eax, 3
mov dword [esp + 4], eax
call fcn.66f8aae0
test eax, eax
je 0x66f857ca
cmp dword [eax + 4], 0xfffffffb
jne 0x66f857ca
mov edx, dword [eax]
movsx ebp, byte [edx + 0x14]
lea eax, [edx + 0x15]
test ebp, ebp
je 0x66f859e0
xor ecx, ecx
jmp 0x66f8592c
cmp ebp, 0x76
jne 0x66f85920
or ecx, 0x10
movsx ebp, byte [eax]
lea edx, [eax + 1]
test ebp, ebp
je 0x66f8593e
mov eax, edx
cmp ebp, 0x6b
jne 0x66f85918
movsx ebp, byte [eax]
lea edx, [eax + 1]
or ecx, 8
test ebp, ebp
jne 0x66f8592a
mov dword [esp + 0x14], ecx
test ecx, ecx
je 0x66f85d59
mov eax, dword [edi + 0xfc]
test eax, eax
jne 0x66f85adc
movzx eax, byte [ebx + 4]
mov ecx, dword [esp + 0x14]
and al, 0xe7
or al, cl
cmp ecx, 0x18
mov byte [ebx + 4], al
mov edx, dword [edi + 0x28]
mov dword [ebx + 0xc], edx
mov dword [edi + 0x28], ebx
je 0x66f85b88
mov ebp, dword [esp + 0x14]
and ebp, 0x10
je 0x66f85d3c
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x66f8581d
and al, 0xfb
mov byte [ebx + 4], al
mov eax, dword [ebx + 0x18]
lea eax, [eax*8 + 0x20]
jmp 0x66f858c5
mov edx, ecx
mov eax, edi
call fcn.66f85480
test byte [ecx + 6], 8
jne 0x66f857ca
jmp 0x66f858d0
mov ecx, dword [esp + 0x14]
mov eax, dword [ebx + 0x18]
test ecx, ecx
mov edx, eax
jle 0x66f859fc
and byte [ebx + 4], 0xfb
add esp, 0x2c
lea eax, [eax*8 + 0x20]
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [ebx + 0x18]
xor eax, eax
mov dword [esp + 0x14], eax
test esi, esi
jne 0x66f857db
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x66f8581b
lea eax, [edx*8 + 0x20]
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x1c]
call fcn.66f85480
jmp 0x66f85890
mov eax, dword [esp + 0x1c]
call fcn.66f85480
jmp 0x66f85870
cmp ecx, 8
jne 0x66f85b4e
mov edx, dword [ebx + 8]
test byte [edx + 4], 3
jne 0x66f85b42
cmp byte [ebx + 6], 0
je 0x66f85aa8
xor ecx, ecx
xor eax, eax
cmp byte [ebx + 7], 0
jne 0x66f85a6d
jmp 0x66f85b36
movzx eax, byte [ebx + 7]
inc ecx
cmp ecx, eax
jae 0x66f85b30
mov eax, dword [ebx + ecx*8 + 0x1c]
add eax, 4
cmp eax, 0xfffffff6
jbe 0x66f85a60
mov edx, dword [ebx + ecx*8 + 0x18]
test byte [edx + 4], 3
je 0x66f85a60
mov eax, edi
call fcn.66f85480
jmp 0x66f85a60
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x66f8581b
mov eax, 0x20
jmp 0x66f858c5
mov eax, dword [ebx + 0x10]
test byte [eax - 0x3c], 3
lea edx, [eax - 0x40]
jne 0x66f85b1c
xor eax, eax
cmp byte [ebx + 7], 0
je 0x66f85b10
xor ecx, ecx
jmp 0x66f85ac9
movzx eax, byte [ebx + 7]
inc ecx
cmp ecx, eax
jae 0x66f85b30
mov edx, dword [ebx + ecx*4 + 0x14]
test byte [edx + 4], 3
je 0x66f85ac0
mov eax, edi
call fcn.66f85480
jmp 0x66f85ac0
cmp ebx, dword [eax + 0x14]
nop
jne 0x66f85958
mov esi, dword [ebx + 0x18]
mov eax, 0xffffffef
mov dword [esp + 0x14], eax
test esi, esi
jne 0x66f857db
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x66f8581d
jmp 0x66f85a9b
lea eax, [eax*4 + 0x14]
jmp 0x66f858c5
mov eax, edi
call fcn.66f85480
cmp byte [ebx + 7], 0
jne 0x66f85abc
xor eax, eax
lea esi, [esi]
nop
cmp byte [ebx + 6], 0
je 0x66f85b10
lea eax, [eax*8 + 0x18]
jmp 0x66f858c5
mov eax, edi
call fcn.66f85480
jmp 0x66f85a46
cmp ecx, 7
jne 0x66f85bc4
mov eax, dword [ebx + 0x28]
and byte [eax + 4], 0xfc
mov eax, dword [ebx + 0x18]
mov ecx, eax
neg ecx
test eax, eax
jg 0x66f85b73
jmp 0x66f85b90
inc ecx
je 0x66f85b90
mov eax, dword [ebx + 0x10]
mov edx, dword [eax + ecx*4]
test byte [edx + 4], 3
je 0x66f85b70
mov eax, edi
call fcn.66f85480
jmp 0x66f85b70
mov edx, dword [ebx + 0x1c]
jmp 0x66f858ab
movzx eax, word [ebx + 0x26]
test eax, eax
jne 0x66f85ba0
mov eax, dword [ebx + 0x20]
jmp 0x66f858c5
mov edx, dword [edi + 0x2f8]
mov ecx, dword [edx + eax*4]
movzx eax, byte [ecx + 4]
mov dl, al
and dl, 3
je 0x66f85b98
and al, 0xfc
mov byte [ecx + 4], al
mov eax, dword [edi + 0x20]
mov dword [ecx + 0xc], eax
mov dword [edi + 0x20], ecx
jmp 0x66f85b98
cmp ecx, 6
jne 0x66f85d10
mov edx, dword [edi + 0x24]
and al, 0xfb
mov esi, dword [ebx + 0x1c]
mov dword [ebx + 0xc], edx
mov dword [edi + 0x24], ebx
lea ecx, [esi + 8]
mov byte [ebx + 4], al
mov eax, dword [ebx + 0x14]
cmp ecx, eax
jae 0x66f85c42
mov dword [esp + 0x14], edi
mov ebp, ecx
mov edi, ecx
mov ecx, eax
jmp 0x66f85bfb
add ebp, 8
cmp ebp, ecx
jae 0x66f85c1a
mov eax, dword [ebp + 4]
lea edx, [eax + 4]
cmp edx, 0xfffffff6
jbe 0x66f85bf4
mov edx, dword [ebp]
test byte [edx + 4], 3
je 0x66f85bf4
mov eax, dword [esp + 0x14]
call fcn.66f85480
jmp 0x66f85bf4
mov eax, ecx
mov ecx, edi
mov edi, dword [esp + 0x14]
mov edx, eax
sub edx, esi
add esi, 9
sub edx, 9
shr edx, 3
cmp eax, esi
lea edx, [edx*8 + 8]
mov eax, 8
cmovb edx, eax
add ecx, edx
cmp byte [edi + 0x11], 2
je 0x66f85cec
mov edx, dword [ebx + 0x24]
test byte [edx + 4], 3
jne 0x66f85ce0
mov eax, dword [ebx + 0x14]
mov esi, dword [ebx + 0x1c]
lea ecx, [eax - 8]
mov eax, dword [ebx + 0x10]
lea ebp, [eax - 8]
cmp esi, ebp
jae 0x66f85ca5
mov edx, dword [ebp]
mov eax, ebp
cmp byte [edx + 6], 0
jne 0x66f85c82
mov eax, dword [edx + 0x10]
movzx eax, byte [eax - 0x39]
lea eax, [ebp + eax*8]
cmp ecx, eax
cmovb ecx, eax
test byte [edx + 4], 3
jne 0x66f85cd7
mov eax, dword [ebp + 4]
test al, 3
jne 0x66f85cd0
movzx eax, byte [eax - 3]
lea eax, [eax*8 + 8]
sub ebp, eax
cmp esi, ebp
jb 0x66f85c6c
mov eax, dword [ebx + 0x18]
add ecx, 8
mov dword [esp], ebx
cmp ecx, eax
cmovbe eax, ecx
sub eax, esi
sar eax, 3
mov dword [esp + 4], eax
call fcn.66f8dd60
mov eax, dword [ebx + 0x2c]
lea eax, [eax*8 + 0x38]
jmp 0x66f858c5
and eax, 0xfffffff8
sub ebp, eax
jmp 0x66f85c68
mov eax, edi
call fcn.66f85480
jmp 0x66f85c8d
mov eax, edi
call fcn.66f85480
jmp 0x66f85c59
mov edx, dword [ebx + 0x2c]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + edx*8]
cmp ecx, eax
jae 0x66f85c4c
mov dword [ecx + 4], 0xffffffff
add ecx, 8
cmp ecx, eax
jb 0x66f85cfd
jmp 0x66f85c4c
cmp word [ebx + 0x40], 0
je 0x66f85d20
mov edx, ebx
mov eax, edi
call fcn.66f85610
movzx eax, word [ebx + 6]
mov edx, dword [ebx + 0x18]
imul eax, eax, 0xc
lea edx, [eax + edx*4]
mov eax, dword [ebx + 8]
sub eax, dword [ebx + 0x14]
lea eax, [edx + eax*8 + 0x50]
jmp 0x66f858c5
mov eax, dword [ebx + 0x18]
test eax, eax
mov esi, eax
jne 0x66f857db
mov edx, dword [ebx + 0x1c]
test edx, edx
jne 0x66f8581d
jmp 0x66f859cd
mov esi, dword [ebx + 0x18]
test esi, esi
jne 0x66f857db
jmp 0x66f85afa