Function at 0x4c0910
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x14
xor ecx, ecx
push ebx
push ebp
push esi
mov esi, dword [esp + 0x24]
push edi
cmp dword [esi + 0x60], ecx
je 0x4c0b99
mov eax, dword [esi + 8]
mov ebx, dword [esi + 0xc]
cmp eax, ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
jle 0x4c09a8
mov dword [esp + 0x28], eax
mov eax, dword [ebx]
mov ecx, dword [ebx + 4]
xor edi, edi
test eax, eax
jle 0x4c099a
lea ebp, [ecx + 0xc]
mov ecx, dword [ebp - 4]
mov edx, 1
sub ecx, edi
lea ecx, [ecx + eax - 1]
sub eax, edi
shl edx, cl
mov ecx, dword [ebp]
lea ecx, [eax + ecx - 1]
mov eax, 1
imul edx, dword [ebx + 8]
shl eax, cl
mov ecx, dword [esi + 0x30]
imul eax, dword [ebx + 0xc]
test ecx, ecx
je 0x4c097d
cmp ecx, edx
jge 0x4c097d
mov edx, ecx
mov ecx, dword [esi + 0x34]
mov dword [esi + 0x30], edx
test ecx, ecx
je 0x4c098d
cmp ecx, eax
jge 0x4c098d
mov eax, ecx
mov dword [esi + 0x34], eax
mov eax, dword [ebx]
inc edi
add ebp, 0x14
cmp edi, eax
jl 0x4c0948
mov eax, dword [esp + 0x28]
add ebx, 0x10
dec eax
mov dword [esp + 0x28], eax
jne 0x4c093a
mov eax, dword [esi + 0x48]
xor edx, edx
mov dword [esi + 0x60], 0
mov dl, byte [eax + 1]
mov dword [esi + 0x1c], edx
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x1c]
xor edx, edx
mov dl, byte [ecx + 2]
cmp eax, edx
jge 0x4c0be6
cmp eax, dword [esi + 4]
jge 0x4c0be6
mov eax, dword [esi + 0x3c]
mov dword [esi + 0x2c], eax
mov ecx, dword [esi + 0x2c]
mov eax, dword [esi + 0x44]
cmp ecx, eax
jge 0x4c0bde
mov edx, dword [esi + 0x38]
mov dword [esi + 0x28], edx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x40]
cmp eax, ecx
jge 0x4c0bc7
mov ecx, dword [esi + 0x48]
xor eax, eax
mov ax, word [ecx + 4]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x18], eax
shl eax, 4
add eax, ecx
mov ecx, dword [esi + 0x48]
xor edx, edx
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
mov dx, word [ecx + 6]
cmp eax, edx
jge 0x4c0bb0
cmp eax, dword [esi + 8]
jge 0x4c0bb0
mov ebp, dword [esi + 0x10]
mov ecx, dword [esi + 0x1c]
cmp ecx, dword [ebp]
jge 0x4c0b9e
mov edx, dword [ebp + 4]
lea eax, [ecx + ecx*4]
lea eax, [edx + eax*4]
mov dword [esi + 0x14], eax
mov dword [esp + 0x18], eax
cmp dword [eax], 0
je 0x4c0b9e
mov edi, dword [ebp]
mov ebx, dword [ebp + 8]
sub edi, ecx
mov ecx, dword [eax + 8]
mov eax, dword [eax + 0xc]
dec edi
mov dword [esp + 0x28], ecx
mov ecx, edi
add eax, edi
mov ebp, dword [ebp + 0xc]
shl ebx, cl
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x38]
shl ebp, cl
mov ecx, dword [esi + 0x38]
lea eax, [ebx + eax - 1]
cdq
idiv ebx
mov dword [esp + 0x1c], eax
mov eax, dword [esi + 0x3c]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0x28]
cmp eax, ecx
jne 0x4c0ac1
mov eax, dword [esp + 0x1c]
mov ecx, edi
shl eax, cl
mov ecx, dword [esp + 0x28]
mov edx, 1
add ecx, edi
shl edx, cl
mov ecx, edx
xor edx, edx
div ecx
test edx, edx
jne 0x4c0adf
mov eax, dword [esp + 0x28]
mov edx, 1
lea ecx, [eax + edi]
mov eax, dword [esi + 0x28]
shl edx, cl
mov ecx, edx
cdq
idiv ecx
test edx, edx
jne 0x4c0b9e
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x3c]
cmp eax, ecx
jne 0x4c0b04
mov eax, dword [esp + 0x14]
mov ecx, edi
shl eax, cl
mov ecx, dword [esp + 0x10]
mov edi, 1
shl edi, cl
xor edx, edx
div edi
test edx, edx
jne 0x4c0b1d
mov ecx, dword [esp + 0x10]
mov eax, dword [esi + 0x2c]
mov edi, 1
shl edi, cl
cdq
idiv edi
test edx, edx
jne 0x4c0b9e
mov eax, dword [esi + 0x2c]
lea eax, [eax + ebp - 1]
cdq
idiv ebp
mov edx, dword [esp + 0x18]
mov ecx, dword [edx + 0xc]
mov edi, eax
mov eax, dword [esp + 0x14]
sar edi, cl
shr eax, cl
mov ecx, dword [esp + 0x28]
sub edi, eax
mov eax, edx
imul edi, dword [eax + 0x10]
mov eax, dword [esi + 0x28]
mov dword [esi + 0x24], 0
lea eax, [ebx + eax - 1]
cdq
idiv ebx
sar eax, cl
add edi, eax
mov eax, dword [esp + 0x1c]
shr eax, cl
sub edi, eax
mov dword [esi + 0x20], edi
mov edx, dword [esi + 0x24]
mov eax, dword [esi]
cmp edx, eax
jge 0x4c0b9e
mov eax, dword [esi + 0x48]
xor ecx, ecx
mov cx, word [eax + 8]
cmp edx, ecx
jge 0x4c0b9e
mov ecx, dword [esi + 0x14]
mov eax, dword [esi + 0x20]
mov ecx, dword [ecx + 4]
lea eax, [ecx + eax*4]
mov ecx, dword [eax]
cmp edx, ecx
jl 0x4c0b99
inc ecx
pop edi
pop esi
mov dword [eax], ecx
pop ebp
xor eax, eax
pop ebx
add esp, 0x14
ret
inc dword [esi + 0x24]
jmp 0x4c0b64
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x10]
inc ecx
add eax, 0x10
mov dword [esi + 0x18], ecx
jmp 0x4c0a12
mov ecx, dword [esi + 0x28]
mov edi, dword [esi + 0x30]
mov eax, ecx
cdq
idiv edi
sub ecx, edx
add ecx, edi
mov dword [esi + 0x28], ecx
jmp 0x4c09f0
mov ecx, dword [esi + 0x2c]
mov edi, dword [esi + 0x34]
mov eax, ecx
cdq
idiv edi
sub ecx, edx
add ecx, edi
mov dword [esi + 0x2c], ecx
jmp 0x4c09dc
inc dword [esi + 0x1c]
jmp 0x4c09ba
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x14
ret