Function at 0x1006cc90
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x44
push ebx
mov ebx, dword [esp + 0x50]
xor edx, edx
push esi
mov esi, dword [esp + 0x50]
push edi
mov ecx, dword [ebx + 0x10c]
xor edi, edi
imul ecx, dword [ebx + 0x104]
mov eax, dword [esi + 0x5c]
mov dword [esp + 0x34], edi
div ecx
mov dword [esp + 0x3c], eax
cmp dword [ebx + 0x4c], edi
jle 0x1006cf1f
mov eax, dword [esp + 0x64]
xor ecx, ecx
sub dword [esp + 0x68], eax
mov dword [esp + 0x38], ecx
push ebp
mov ebx, dword [ebx + 0x54]
add ebx, ecx
mov dword [esp + 0x4c], ebx
mov ecx, dword [ebx + 8]
imul ecx, dword [esp + 0x60]
mov edx, dword [ebx + 0xc]
mov ebp, edx
imul ebp, dword [esp + 0x40]
imul edx, dword [esp + 0x64]
mov dword [esp + 0x44], ecx
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x1c], edx
cmp dword [ebx + 0x20], ecx
jbe 0x1006cefa
mov edx, dword [esp + 0x6c]
add edx, eax
mov dword [esp + 0x50], edx
nop dword [eax]
mov eax, dword [esi + 4]
push 1
push dword [ebx + 0xc]
mov eax, dword [eax + 0x20]
push ecx
push dword [edx]
push esi
call eax
xor edi, edi
mov dword [esp + 0x5c], eax
add esp, 0x14
mov dword [esp + 0x30], edi
cmp dword [ebx + 0xc], edi
jle 0x1006ceda
mov edx, dword [esp + 0x10]
mov eax, ebp
mov esi, dword [esp + 0x1c]
sub eax, edx
sub eax, esi
lea ecx, [edx + esi]
shl ecx, 7
shl eax, 7
mov dword [esp + 0x18], ecx
mov dword [esp + 0x14], eax
xor esi, esi
mov dword [esp + 0x2c], esi
cmp dword [ebx + 0x1c], esi
jbe 0x1006ceb6
mov eax, dword [esp + 0x44]
mov edx, dword [esp + 0x58]
add eax, esi
push 0
push dword [ebx + 8]
mov ecx, dword [edx + 4]
push eax
mov eax, dword [esp + 0x74]
push dword [eax]
mov eax, dword [ecx + 0x20]
push edx
call eax
xor ebp, ebp
mov dword [esp + 0x3c], eax
add esp, 0x14
cmp dword [ebx + 8], ebp
jle 0x1006ce9e
mov ecx, esi
shl ecx, 7
mov dword [esp + 0x24], ecx
nop
mov eax, dword [esp + 0x48]
mov edx, dword [esp + 0x28]
mov eax, dword [eax + edi*4]
add eax, ecx
mov ecx, dword [esp + 0x10]
add ecx, dword [esp + 0x1c]
cmp ecx, dword [esp + 0x34]
jae 0x1006ce1c
mov ebx, dword [esp + 0x14]
add ebx, 0xffffff80
mov dword [esp + 0x20], 8
add ebx, dword [edx + ebp*4]
nop dword [eax]
xor edi, edi
mov edx, ebx
mov esi, eax
movzx ecx, word [edx]
lea edx, [edx + 4]
mov word [esi], cx
lea esi, [esi + 0x20]
movzx ecx, word [edx - 2]
add edi, 2
neg cx
mov word [esi - 0x10], cx
cmp edi, 8
jl 0x1006cde6
add ebx, 0x10
add eax, 2
sub dword [esp + 0x20], 1
jne 0x1006cde0
mov ebx, dword [esp + 0x4c]
mov edi, dword [esp + 0x30]
jmp 0x1006ce85
mov esi, dword [edx + ebp*4]
lea edx, [eax + 0x20]
add esi, dword [esp + 0x18]
xor ecx, ecx
nop dword [eax + eax]
movzx eax, word [ecx + esi]
lea edx, [edx + 2]
mov word [edx - 0x22], ax
movzx eax, word [ecx + esi + 2]
mov word [edx - 0x12], ax
movzx eax, word [esi + ecx + 4]
mov word [edx - 2], ax
movzx eax, word [esi + ecx + 6]
mov word [edx + 0xe], ax
movzx eax, word [esi + ecx + 8]
mov word [edx + 0x1e], ax
movzx eax, word [esi + ecx + 0xa]
mov word [edx + 0x2e], ax
movzx eax, word [esi + ecx + 0xc]
mov word [edx + 0x3e], ax
movzx eax, word [esi + ecx + 0xe]
add ecx, 0x10
mov word [edx + 0x4e], ax
cmp ecx, 0x80
jl 0x1006ce30
mov ecx, dword [esp + 0x24]
inc ebp
sub ecx, 0xffffff80
mov dword [esp + 0x24], ecx
cmp ebp, dword [ebx + 8]
jl 0x1006cdb0
mov esi, dword [esp + 0x2c]
add esi, dword [ebx + 8]
mov dword [esp + 0x2c], esi
cmp esi, dword [ebx + 0x1c]
jb 0x1006cd75
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
inc edi
add eax, 0xffffff80
sub ecx, 0xffffff80
mov dword [esp + 0x30], edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], ecx
cmp edi, dword [ebx + 0xc]
jl 0x1006cd66
mov ebp, dword [esp + 0x34]
mov esi, dword [esp + 0x58]
mov ecx, dword [esp + 0x10]
add ecx, dword [ebx + 0xc]
mov edx, dword [esp + 0x50]
mov dword [esp + 0x10], ecx
cmp ecx, dword [ebx + 0x20]
jb 0x1006cd20
mov eax, dword [esp + 0x68]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x5c]
inc edi
mov ecx, dword [esp + 0x3c]
add eax, 4
add ecx, 0x58
mov dword [esp + 0x38], edi
mov dword [esp + 0x3c], ecx
mov dword [esp + 0x68], eax
cmp edi, dword [ebx + 0x4c]
jl 0x1006ccd4
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x44
ret