Function at 0x6706cef0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x20
mov edx, dword [esp + 0x24]
push ebp
mov ebp, dword [eax]
mov eax, dword [esi + 0xc]
push edi
mov edi, ecx
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esi + 0x14]
push edx
lea eax, [eax + eax*8]
lea edx, [ecx + eax*2]
push edx
push ebp
mov dword [esp + 0x28], 0
call fcn.6706b970
add esp, 0x10
test eax, eax
jne 0x6706d0e7
mov eax, dword [esp + 0x14]
cmp ax, 8
je 0x6706cf3a
test eax, 0xff00
je 0x6706cf42
mov dword [esp + 0x18], 1
mov edx, dword [esi + 0x14]
lea eax, [esp + 8]
push eax
mov eax, dword [esi + 0xc]
lea ecx, [eax + eax*8]
movzx eax, word [edx + ecx*2]
push eax
lea ecx, [edi + 4]
push ecx
call fcn.6707a950
add esp, 0xc
test eax, eax
jne 0x6706d0e7
mov ax, word [esp + 8]
cmp ax, word [edi + 0xd]
jb 0x6706cf87
push 0x1570
call fcn.67079630
add esp, 4
pop edi
pop ebp
add esp, 0x20
ret
movzx eax, ax
lea edx, [eax + eax*2]
mov eax, dword [edi]
mov edi, dword [eax + edx*2]
lea eax, [eax + edx*2]
movzx eax, word [eax + 4]
test ax, ax
push ebx
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], eax
je 0x6706d0e1
jmp 0x6706cfb0
movzx ecx, word [edi + 6]
movzx edx, cx
add edx, dword [esi + 0xc]
cmp edx, dword [esi + 4]
ja 0x6706d0c4
mov eax, dword [edi]
movzx edx, word [esp + 0x1c]
mov dword [esp + 0x28], eax
mov ax, word [esp + 0x34]
cmp ax, 0xffff
mov dword [esp + 0x24], edx
je 0x6706cfe6
cmp ax, cx
jb 0x6706d0e1
mov cx, word [esi + 0xc]
mov eax, 1
add cx, ax
mov dword [esp + 0x10], eax
movzx ebx, cx
lea esp, [esp]
cmp ax, word [edi + 6]
jae 0x6706d0ed
mov eax, dword [esp + 0x30]
movzx edi, bx
lea edx, [esp + 0x18]
push edx
mov edx, dword [esi + 0x14]
push eax
lea ecx, [edi + edi*8]
lea eax, [edx + ecx*2]
push eax
push ebp
call fcn.6706b970
add esp, 0x10
test eax, eax
je 0x6706d076
cmp eax, 0xffff
jne 0x6706d0e6
mov edx, dword [esp + 0x14]
movzx ecx, word [esp + 0x10]
movzx eax, word [edx + 6]
sub eax, ecx
add eax, edi
cmp eax, dword [esi + 4]
je 0x6706d0c0
mov edx, dword [esp + 0x30]
add ebx, 1
movzx edi, bx
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
lea eax, [edi + edi*8]
lea edx, [ecx + eax*2]
push edx
push ebp
call fcn.6706b970
add esp, 0x10
test eax, eax
jne 0x6706d02e
mov eax, dword [esp + 0x18]
cmp ax, 8
je 0x6706d08f
test eax, 0xff00
jne 0x6706d08f
mov dword [esp + 0x24], 0
movzx eax, word [esp + 0x10]
mov ecx, dword [esp + 0x28]
movzx edx, word [ecx + eax*2 - 2]
mov ecx, dword [esi + 0x14]
mov edi, dword [esp + 0x14]
movzx eax, bx
lea eax, [eax + eax*8]
cmp dword [ecx + eax*2], edx
jne 0x6706d0c4
add dword [esp + 0x10], 1
mov eax, dword [esp + 0x10]
add ebx, 1
jmp 0x6706d000
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
add eax, 0xffff
add edi, 8
test ax, ax
mov dword [esp + 0x20], eax
mov dword [esp + 0x14], edi
jne 0x6706cfb0
mov eax, 0xffff
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
test ebp, ebp
je 0x6706d126
cmp dword [ebp], 0
je 0x6706d126
movzx eax, word [edi + 4]
xor edx, edx
cmp word [esp + 0x24], dx
setne dl
lea edx, [edx*4 + 4]
push edx
push eax
push ebp
call fcn.6706b800
add esp, 0xc
test eax, eax
je 0x6706d122
cmp eax, 0xffff
jne 0x6706d0e6
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0xc]
movzx edx, ax
movzx ebx, bx
add edx, ecx
cmp ebx, edx
jne 0x6706d19e
mov edx, dword [esi + 0x14]
lea ecx, [ecx + ecx*8]
cmp word [edx + ecx*2 + 0xe], 0
je 0x6706d16c
push 0xffff
push 0xffff
add edi, 4
push edi
push 1
push eax
push esi
call fcn.6706aab0
add esp, 0x18
test eax, eax
je 0x6706d265
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
push esi
call fcn.6706ac90
movzx eax, ax
push eax
mov eax, dword [esp + 0x18]
push 0xffff
add edi, 4
push edi
push 1
push eax
push esi
call fcn.6706aab0
add esp, 0x1c
test eax, eax
je 0x6706d265
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
push esi
call fcn.6706ac90
movzx ecx, word [edi + 4]
movzx ebx, ax
push ebx
push 0xffff
push ecx
push esi
call fcn.6706ab90
add esp, 0x14
test eax, eax
jne 0x6706d0e6
mov edx, dword [esp + 0x14]
movzx eax, word [edx + 6]
sub eax, 1
xor edi, edi
test eax, eax
jle 0x6706d265
jmp 0x6706d1e0
mov eax, dword [esi + 0xc]
mov edx, dword [esp + 0x30]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi + 0x14]
push edx
lea eax, [eax + eax*8]
lea edx, [ecx + eax*2]
push edx
push ebp
call fcn.6706b970
add esp, 0x10
test eax, eax
je 0x6706d248
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
push ebx
lea eax, [eax + eax*8]
mov edx, dword [ecx + eax*2]
push edi
push edx
push esi
call fcn.6706ab90
add esp, 0x10
test eax, eax
jne 0x6706d0e6
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x18]
push eax
mov eax, dword [esi + 0xc]
lea edx, [eax + eax*8]
mov eax, dword [esi + 0x14]
push ecx
lea ecx, [eax + edx*2]
push ecx
push ebp
call fcn.6706b970
add esp, 0x10
test eax, eax
jne 0x6706d204
add dword [esi + 0xc], 1
mov edx, dword [esp + 0x14]
movzx eax, word [edx + 6]
add edi, 1
movzx ecx, di
sub eax, 1
cmp ecx, eax
jl 0x6706d1e0
pop ebx
pop edi
xor eax, eax
pop ebp
add esp, 0x20
ret