Function at 0x4c2f100
Capabilities:
Enumerate pe sections

Disassembly:
movzx eax, word [esp + 0xc]
push ebx
push ebp
xor ecx, ecx
dec eax
push esi
lea ebp, [eax + eax*2]
mov eax, dword [esp + 0x14]
movzx esi, ax
lea ebp, [ebp*8 + 0x28]
imul esi, ebp
add esi, 0x10
cmp ax, 1
push edi
jne 0x4c2e128
mov eax, dword [esp + 0x14]
test byte [eax + 0x1c], 1
je 0x4c2e128
mov ecx, 1
test esi, esi
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 4]
je 0x4c2e191
mov eax, dword [edi + 8]
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [edi + 0xc]
sar eax, 1
add edx, esi
cmp edx, eax
jle 0x4c2e14b
test ecx, ecx
je 0x4c2e191
push esi
call fcn.04c33fd0
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x4c2e191
add dword [edi + 0xc], esi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x1c]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x18]
mov eax, ebx
mov dword [ebx + 0xc], ebp
call fcn.04c2e0b0
mov eax, dword [esp + 0x14]
pop edi
pop esi
mov dword [eax + 0x38], ebx
pop ebp
mov al, 1
pop ebx
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
sub esp, 8
push edi
mov edi, dword [esp + 0x10]
mov ecx, dword [edi + 0x38]
mov ax, word [ecx]
cmp ax, word [ecx + 6]
mov dword [esp + 4], 0
jae 0x4c2f02c
push edi
call fcn.04c2e570
add esp, 4
xor al, al
pop edi
add esp, 8
ret
movzx eax, word [esp + 0x18]
mov edx, dword [esp + 0x14]
dec eax
push ebx
movzx ebx, word [ecx + 6]
push ebp
lea ebp, [eax + eax*2]
movzx eax, word [ecx + 0xa]
push esi
movzx esi, dx
lea ebp, [ebp*8 + 0x28]
imul esi, ebp
add esi, 0x10
dec eax
lea eax, [eax + eax*2]
lea eax, [eax*8 + 0x28]
imul eax, ebx
add eax, 0x10
cmp dx, 1
jne 0x4c2f079
test byte [edi + 0x1c], 1
je 0x4c2f079
mov dword [esp + 0x10], 1
mov ebx, dword [edi + 4]
mov edi, esi
sub edi, eax
test esi, esi
mov dword [esp + 0x14], ebx
je 0x4c2f0f6
mov eax, dword [ebx + 8]
lea eax, [eax + eax*2]
cdq
sub eax, edx
mov edx, dword [ebx + 0xc]
sar eax, 1
add edx, edi
cmp edx, eax
jle 0x4c2f0a4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4c2f0f6
push esi
push ecx
call fcn.04c34000
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x4c2f0f6
mov eax, dword [esp + 0x14]
add dword [eax + 0xc], edi
mov ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esp + 0x20]
mov eax, ebx
mov dword [ebx + 0xc], ebp
mov word [ebx + 0xa], dx
call fcn.04c2e0b0
mov eax, dword [esp + 0x1c]
pop esi
pop ebp
mov dword [eax + 0x38], ebx
pop ebx
mov al, 1
pop edi
add esp, 8
ret
pop esi
pop ebp
pop ebx
xor al, al
pop edi
add esp, 8
ret
mov eax, dword [esp + 8]
test ax, ax
mov edx, dword [esp + 0xc]
jne 0x4c2f122
test dx, dx
jne 0x4c2f122
mov eax, dword [esp + 4]
push eax
call fcn.04c2e570
add esp, 4
mov al, 1
ret
mov ecx, dword [esp + 4]
push esi
mov esi, dword [ecx + 0x38]
test esi, esi
jne 0x4c2f140
pop esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
jmp 0x4c2e0f0
cmp dx, word [esi + 0xa]
jne 0x4c2f151
push ecx
call fcn.04c2e300
add esp, 4
pop esi
ret
pop esi
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
jmp 0x4c2f000