Function at 0x4cc230
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [ecx + 0x1f0]
push ebx
mov ebx, dword [ecx]
mov dword [esp + 0x20], ecx
mov ecx, dword [ebp + 8]
mov dword [esp + 0x28], eax
push esi
mov esi, edx
lea eax, [ecx*8]
mov dword [esp + 0xc], esi
sub eax, ecx
inc eax
cmp dword [ebp + 0x10], 0
push edi
mov edi, dword [esi + 8]
mov edx, dword [edi + eax*8 + 0x10]
lea ecx, [edi + eax*8]
mov eax, dword [ecx + 0x18]
mov dword [esp + 0x20], edi
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
je 0x4cc292
cmp dword [ebp + 0xc], 0
jne 0x4cc93c
cmp word [edi], 1
jg 0x4cc93c
mov eax, dword [edx + 0x28]
mov ecx, dword [edx + 8]
test eax, eax
je 0x4cc2a6
cmp dword [esi + 0x28], 0
jne 0x4cc93c
cmp dword [edx + 0x2c], 0
jne 0x4cc93c
cmp dword [esi + 0x24], 0
je 0x4cc2c4
test eax, eax
je 0x4cc2c4
cmp dword [edx + 0x18], 0
jne 0x4cc93c
cmp word [ecx], 0
je 0x4cc93c
test byte [edx + 6], 1
jne 0x4cc2d8
test eax, eax
je 0x4cc2ec
cmp word [edi], 1
jg 0x4cc93c
cmp dword [ebp + 0xc], 0
jne 0x4cc93c
mov cx, word [esi + 6]
and cx, 1
je 0x4cc300
cmp dword [ebp + 0x10], 0
jne 0x4cc93c
mov edi, dword [esi + 0x18]
test edi, edi
je 0x4cc311
cmp dword [edx + 0x18], 0
jne 0x4cc93c
cmp dword [ebp + 0xc], 0
je 0x4cc321
cmp dword [edx + 0x18], 0
jne 0x4cc93c
test eax, eax
je 0x4cc32f
cmp dword [esi + 0xc], 0
jne 0x4cc93c
mov eax, dword [esp + 0x14]
test byte [eax + 0x15], 0x20
jne 0x4cc93c
cmp dword [edx + 0x1c], 0
je 0x4cc3d2
cmp dword [edx + 0x18], 0
jne 0x4cc93c
cmp dword [ebp + 0xc], 0
jne 0x4cc93c
test cx, cx
jne 0x4cc93c
mov eax, dword [esp + 0x20]
cmp word [eax], 1
jne 0x4cc93c
mov eax, edx
test byte [eax + 6], 5
jne 0x4cc93c
mov ecx, dword [eax + 0x1c]
test ecx, ecx
je 0x4cc38f
cmp byte [eax + 4], 0x70
jne 0x4cc93c
mov eax, dword [eax + 8]
test eax, eax
je 0x4cc93c
cmp word [eax], 1
jne 0x4cc93c
mov eax, ecx
test eax, eax
jne 0x4cc374
test edi, edi
je 0x4cc3d2
mov edi, dword [edi]
test edi, edi
jle 0x4cc3d2
mov eax, dword [esi + 0x18]
mov eax, dword [eax + 0xc]
add eax, 0xe
lea ecx, [ecx]
cmp word [eax], 0
je 0x4cc93c
inc ecx
add eax, 0x14
cmp ecx, edi
jl 0x4cc3c0
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x30]
mov dword [ecx + 0x1f0], eax
mov eax, dword [edx + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
je 0x4cc481
nop
mov eax, dword [esp + 0x10]
mov edx, eax
mov edi, dword [esi + 0x18]
mov esi, dword [esi + 0x28]
push 0
mov ecx, dword [eax + 0x1c]
mov dword [esp + 0x20], ecx
mov ecx, ebx
mov dword [eax + 0x18], 0
mov dword [eax + 8], 0
mov dword [eax + 0x1c], 0
mov dword [eax + 0x28], 0
call fcn.004ad700
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x28], esi
mov esi, ecx
mov ecx, dword [esp + 0x20]
mov dword [esi + 0x18], edi
mov dword [esi + 8], ecx
mov byte [esi + 4], 0x70
mov dword [esi + 0x24], 0
test eax, eax
jne 0x4cc453
mov eax, dword [esp + 0x1c]
jmp 0x4cc461
mov ecx, dword [esp + 0x1c]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], 0
mov dword [esi + 0x1c], eax
cmp byte [ebx + 0x1e], 0
jne 0x4cc930
mov eax, dword [esp + 0x24]
mov eax, dword [eax + 0x1c]
mov dword [esp + 0x24], eax
test eax, eax
jne 0x4cc3f0
mov edx, dword [esp + 0x14]
mov edi, dword [edx + 0x10]
mov ecx, dword [edx]
mov dword [esp + 0x34], edi
mov dword [esp + 0x1c], edi
test ebx, ebx
je 0x4cc4c3
test ecx, ecx
je 0x4cc4c3
cmp ecx, dword [ebx + 0xf0]
jb 0x4cc4c3
cmp ecx, dword [ebx + 0xf4]
jae 0x4cc4c3
mov eax, dword [ebx + 0xec]
mov dword [ecx], eax
dec dword [ebx + 0xe4]
mov dword [ebx + 0xec], ecx
mov ecx, dword [edx + 4]
jmp 0x4cc4d7
push ecx
call fcn.00490120
mov edx, dword [esp + 0x18]
add esp, 4
mov ecx, dword [edx + 4]
test ebx, ebx
je 0x4cc504
test ecx, ecx
je 0x4cc504
cmp ecx, dword [ebx + 0xf0]
jb 0x4cc504
cmp ecx, dword [ebx + 0xf4]
jae 0x4cc504
mov eax, dword [ebx + 0xec]
mov dword [ecx], eax
dec dword [ebx + 0xe4]
mov dword [ebx + 0xec], ecx
mov ecx, dword [edx + 8]
jmp 0x4cc518
push ecx
call fcn.00490120
mov eax, dword [esp + 0x18]
add esp, 4
mov ecx, dword [eax + 8]
test ebx, ebx
je 0x4cc542
test ecx, ecx
je 0x4cc542
cmp ecx, dword [ebx + 0xf0]
jb 0x4cc542
cmp ecx, dword [ebx + 0xf4]
jae 0x4cc542
mov eax, dword [ebx + 0xec]
mov dword [ecx], eax
dec dword [ebx + 0xe4]
mov dword [ebx + 0xec], ecx
jmp 0x4cc54b
push ecx
call fcn.00490120
add esp, 4
mov edx, dword [esp + 0x14]
mov ecx, dword [edx + 0xc]
mov dword [edx], 0
mov dword [edx + 4], 0
mov dword [edx + 8], 0
mov dword [edx + 0x10], 0
test ecx, ecx
je 0x4cc59f
movzx eax, word [ecx + 0x20]
cmp eax, 1
jne 0x4cc593
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 0x20c]
mov dword [ecx + 0x44], eax
mov dword [edx + 0x20c], ecx
mov edx, dword [esp + 0x14]
jmp 0x4cc598
dec eax
mov word [ecx + 0x20], ax
mov dword [edx + 0xc], 0
mov ecx, dword [ebp + 8]
lea eax, [ecx*8]
sub eax, ecx
shl eax, 3
mov dword [esp + 0x30], eax
mov eax, dword [edi + 8]
mov ecx, dword [esi + 8]
mov byte [esp + 0xf], 0
mov dword [esp + 0x28], eax
movsx edi, word [eax]
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], ecx
test ecx, ecx
je 0x4cc5d9
mov al, byte [edx + 0x15]
mov byte [esp + 0xf], al
jmp 0x4cc5fa
push 0
push 0
xor edx, edx
mov ecx, ebx
call fcn.004b8f10
mov ecx, eax
add esp, 8
mov dword [esp + 0x20], ecx
mov dword [esi + 8], ecx
test ecx, ecx
je 0x4cc8e2
cmp edi, 1
jle 0x4cc627
mov eax, dword [ebp + 8]
mov edx, ecx
inc eax
mov ecx, ebx
push eax
lea eax, [edi - 1]
push eax
call fcn.004b8dc0
mov ecx, eax
add esp, 8
mov dword [esi + 8], ecx
cmp byte [ebx + 0x1e], 0
mov dword [esp + 0x20], ecx
jne 0x4cc8e2
test edi, edi
jle 0x4cc686
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x30]
add esi, 8
add edi, 8
mov dword [esp + 0x28], esi
add edi, ecx
mov dword [esp + 0x24], edi
mov edx, dword [edi + 0x20]
mov ecx, ebx
call fcn.004b8cd0
mov ecx, 0xe
push 0x38
rep movsd dword es:[edi], dword [esi]
mov esi, dword [esp + 0x2c]
push 0
push esi
call fcn.004e14f0
mov edi, dword [esp + 0x30]
add esi, 0x38
add edi, 0x38
mov dword [esp + 0x34], esi
add esp, 0xc
mov dword [esp + 0x24], edi
sub dword [esp + 0x2c], 1
jne 0x4cc643
mov esi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x30]
mov al, byte [esp + 0xf]
mov byte [edx + ecx + 0x1d], al
xor ecx, ecx
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
cmp dword [eax], ecx
jle 0x4cc6da
xor edi, edi
mov esi, eax
mov eax, dword [esi + 0xc]
cmp dword [eax + edi + 4], 0
jne 0x4cc6ca
mov edx, dword [eax + edi + 8]
test edx, edx
je 0x4cc6ca
mov ecx, ebx
call fcn.00490490
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi + 4], eax
mov ecx, dword [esp + 0x2c]
inc ecx
add edi, 0x14
mov dword [esp + 0x2c], ecx
cmp ecx, dword [esi]
jl 0x4cc6a6
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov eax, dword [esi]
mov dword [esp + 0x28], eax
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
test eax, eax
je 0x4cc738
cmp dword [eax], 0
mov dword [esp + 0x2c], 0
jle 0x4cc738
xor edi, edi
mov esi, eax
nop
mov edx, dword [esi + 0xc]
push ecx
push dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edx + edi]
call fcn.004cbf30
mov ecx, dword [esi + 0xc]
lea edi, [edi + 0x14]
add esp, 8
mov dword [edi + ecx - 0x14], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esi]
jl 0x4cc700
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
cmp dword [ebp + 0xc], 0
je 0x4cc7ae
mov eax, dword [esi + 0x10]
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
test eax, eax
je 0x4cc798
cmp dword [eax], 0
mov dword [esp + 0x2c], 0
jle 0x4cc798
xor edi, edi
mov esi, eax
mov edx, dword [esi + 0xc]
push ecx
push dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edx + edi]
call fcn.004cbf30
mov ecx, dword [esi + 0xc]
lea edi, [edi + 0x14]
add esp, 8
mov dword [edi + ecx - 0x14], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esi]
jl 0x4cc760
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
push dword [edi]
mov edx, dword [esi + 0x14]
mov ecx, ebx
push dword [esp + 0x1c]
call fcn.004cbf30
add esp, 8
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4cc7c1
mov dword [esi + 0x18], eax
mov dword [edi + 0x18], 0
jmp 0x4cc81b
mov eax, dword [esi + 0x18]
mov dword [esp + 0x28], eax
test eax, eax
je 0x4cc81b
cmp dword [eax], 0
mov ecx, dword [edi]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x2c], 0
jle 0x4cc81b
xor edi, edi
mov esi, eax
mov edx, dword [esi + 0xc]
push ecx
push dword [esp + 0x1c]
mov ecx, ebx
mov edx, dword [edi + edx]
call fcn.004cbf30
mov ecx, dword [esi + 0xc]
lea edi, [edi + 0x14]
add esp, 8
mov dword [edi + ecx - 0x14], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
inc eax
mov dword [esp + 0x2c], eax
cmp eax, dword [esi]
jl 0x4cc7e3
mov esi, dword [esp + 0x10]
mov edi, dword [esp + 0x1c]
mov edx, dword [edi + 0xc]
test edx, edx
je 0x4cc832
push 0
push 0
mov ecx, ebx
call fcn.004ace00
add esp, 8
jmp 0x4cc834
xor eax, eax
cmp dword [ebp + 0x10], 0
mov ecx, ebx
mov edx, dword [esi + 0xc]
mov dword [esp + 0x2c], eax
je 0x4cc88a
mov dword [esi + 0x14], edx
mov dword [esi + 0xc], eax
push dword [edi]
push dword [esp + 0x1c]
call fcn.004cbf30
mov dword [esi + 0x14], eax
mov ecx, ebx
mov edx, dword [edi + 0x14]
push 0
push 0
call fcn.004ace00
mov edx, dword [esi + 0x14]
mov ecx, ebx
push eax
call fcn.004ac770
add esp, 0x14
mov dword [esi + 0x14], eax
mov edx, dword [edi + 0x10]
mov ecx, ebx
push 0
call fcn.004ad110
add esp, 4
mov dword [esi + 0x10], eax
jmp 0x4cc8ab
push dword [edi]
push dword [esp + 0x1c]
call fcn.004cbf30
push dword [esp + 0x34]
mov edx, eax
mov dword [esi + 0xc], eax
mov ecx, ebx
call fcn.004ac770
add esp, 0xc
mov dword [esi + 0xc], eax
mov ax, word [edi + 6]
and ax, 1
or word [esi + 6], ax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4cc8c8
mov dword [esi + 0x28], eax
mov dword [edi + 0x28], 0
mov esi, dword [esi + 0x1c]
mov edi, dword [edi + 0x1c]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x10], esi
mov dword [esp + 0x1c], edi
test esi, esi
jne 0x4cc5b2
mov esi, dword [esp + 0x34]
test esi, esi
je 0x4cc930
mov edx, esi
mov ecx, ebx
call fcn.004c5690
test ebx, ebx
je 0x4cc927
cmp esi, dword [ebx + 0xf0]
jb 0x4cc927
cmp esi, dword [ebx + 0xf4]
jae 0x4cc927
mov eax, dword [ebx + 0xec]
mov dword [esi], eax
mov eax, 1
dec dword [ebx + 0xe4]
mov dword [ebx + 0xec], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call fcn.00490120
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret