Function at 0x4c01bd
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x208]
mov eax, dword [eax]
test byte [eax + 0xc], 1
push esi
push edi
mov dword [ebp - 0x20], ecx
mov dword [ebp - 8], eax
je 0x4c01e6
xor eax, eax
jmp 0x4c0687
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebx + 8]
imul eax, eax, 0x38
lea esi, [eax + ecx + 8]
mov dword [ebp - 0x24], eax
mov eax, dword [esi + 0x18]
mov dword [ebp - 0x14], eax
mov eax, dword [esi + 0x10]
xor edi, edi
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0xc], eax
cmp dword [ebp + 0x10], edi
je 0x4c0216
cmp dword [ebp + 0x14], edi
je 0x4c0221
jmp 0x4c01df
cmp dword [ebp + 0x14], edi
je 0x4c0221
cmp word [ecx], 1
jg 0x4c01df
mov edx, dword [eax + 0x28]
mov ecx, dword [eax + 8]
cmp edx, edi
je 0x4c0230
cmp dword [ebx + 0x28], edi
jne 0x4c01df
cmp dword [eax + 0x2c], edi
jne 0x4c01df
cmp dword [ebx + 0x24], edi
je 0x4c023e
cmp edx, edi
jne 0x4c01df
cmp word [ecx], di
je 0x4c01df
test byte [eax + 6], 1
jne 0x4c01df
cmp edx, edi
je 0x4c025b
mov ecx, dword [ebp - 0x10]
cmp word [ecx], 1
jg 0x4c01df
cmp dword [ebp + 0x10], edi
jne 0x4c01df
mov cx, word [ebx + 6]
and cx, 1
je 0x4c026e
cmp dword [ebp + 0x14], edi
jne 0x4c01df
cmp dword [ebx + 0x18], edi
je 0x4c027c
cmp dword [eax + 0x18], edi
jne 0x4c01df
cmp dword [ebp + 0x10], edi
je 0x4c028a
cmp dword [eax + 0x18], edi
jne 0x4c01df
cmp edx, edi
je 0x4c0297
cmp dword [ebx + 0xc], edi
jne 0x4c01df
test byte [esi + 0x15], 0x20
jne 0x4c01df
cmp dword [eax + 0x1c], edi
je 0x4c032f
cmp dword [eax + 0x18], edi
jne 0x4c01df
cmp dword [ebp + 0x10], edi
jne 0x4c01df
cmp cx, di
jne 0x4c01df
mov ecx, dword [ebp - 0x10]
cmp word [ecx], 1
jne 0x4c01df
test byte [eax + 6], 5
jne 0x4c01df
mov ecx, dword [eax + 0x1c]
cmp ecx, edi
je 0x4c02ed
cmp byte [eax + 4], 0x71
jne 0x4c01df
mov eax, dword [eax + 8]
cmp eax, edi
je 0x4c01df
cmp word [eax], 1
jne 0x4c01df
mov eax, ecx
cmp eax, edi
jne 0x4c02d2
mov eax, dword [ebx + 0x18]
cmp eax, edi
je 0x4c032f
xor ecx, ecx
cmp dword [eax], edi
jle 0x4c032f
mov eax, dword [eax + 0xc]
add eax, 0xe
cmp word [eax], di
je 0x4c01df
mov edx, dword [ebx + 0x18]
inc ecx
add eax, 0x14
cmp ecx, dword [edx]
jl 0x4c031b
mov ecx, dword [esi + 4]
mov eax, dword [ebp + 8]
push edi
push edi
push edi
push 0x15
mov dword [eax + 0x208], ecx
call fcn.004b2541
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp + 8]
add esp, 0x10
mov dword [ecx + 0x208], eax
jmp 0x4c03bc
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx + 0x28]
push edi
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0x1c]
push ebx
push dword [ebp - 8]
mov dword [ebp - 0x1c], eax
mov dword [ebx + 0x18], edi
mov dword [ebx + 8], edi
mov dword [ebx + 0x1c], edi
mov dword [ebx + 0x28], edi
call fcn.004ae300
mov ecx, dword [ebp - 0x20]
mov dword [ebx + 0x28], ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebx + 0x18], ecx
mov ecx, dword [ebp - 0x10]
add esp, 0xc
mov dword [ebx + 8], ecx
mov byte [ebx + 4], 0x71
mov dword [ebx + 0x24], edi
cmp eax, edi
jne 0x4c03a3
mov eax, dword [ebp - 0x1c]
jmp 0x4c03ac
mov ecx, dword [ebp - 0x1c]
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x24], edi
mov dword [ebx + 0x1c], eax
mov eax, dword [ebp - 8]
cmp byte [eax + 0x1e], 0
jne 0x4c0684
mov eax, dword [ebp - 0xc]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0xc], eax
cmp eax, edi
jne 0x4c0356
push dword [esi]
mov eax, dword [esi + 0x10]
push dword [ebp - 8]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0xc], eax
call fcn.00491a03
push dword [esi + 4]
push dword [ebp - 8]
call fcn.00491a03
push dword [esi + 8]
push dword [ebp - 8]
call fcn.00491a03
mov eax, dword [esi + 0xc]
add esp, 0x18
mov dword [esi], edi
mov dword [esi + 4], edi
mov dword [esi + 8], edi
mov dword [esi + 0x10], edi
cmp eax, edi
je 0x4c0437
movzx ecx, word [eax + 0x20]
cmp cx, 1
jne 0x4c042f
mov edx, dword [ebp + 8]
mov ecx, dword [edx + 0x1a8]
cmp ecx, edi
jne 0x4c0420
mov ecx, edx
add ecx, 0x224
mov edx, dword [ecx]
mov dword [eax + 0x48], edx
mov dword [ecx], eax
jmp 0x4c0434
dec ecx
mov word [eax + 0x20], cx
mov dword [esi + 0xc], edi
mov dword [ebp - 0x18], ebx
jmp 0x4c043f
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
mov esi, dword [eax + 8]
movsx edi, word [esi]
mov eax, dword [ebx + 8]
mov byte [ebp + 0xb], 0
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4c0464
mov ecx, dword [ebp - 0x28]
mov cl, byte [ecx + 0x15]
mov byte [ebp + 0xb], cl
jmp 0x4c0485
mov edi, dword [ebp - 8]
push 0
push 0
xor eax, eax
call fcn.004b5427
pop ecx
pop ecx
mov dword [ebx + 8], eax
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4c0677
mov edi, dword [ebp - 0x20]
cmp edi, 1
jle 0x4c04b1
mov ecx, dword [ebp + 0xc]
inc ecx
push ecx
lea ecx, [edi - 1]
push ecx
push dword [ebp - 8]
call fcn.004b5361
mov dword [ebx + 8], eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
add esp, 0xc
cmp byte [eax + 0x1e], 0
jne 0x4c0677
test edi, edi
jle 0x4c04fe
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
add esi, 8
lea eax, [eax + ecx + 8]
mov dword [ebp - 4], esi
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x20], edi
mov edi, dword [ebp - 0x1c]
push dword [ebp - 8]
mov esi, dword [edi + 0x20]
call fcn.004b52ed
mov esi, dword [ebp - 4]
pop ecx
push 0xe
pop ecx
push 0x38
push 0
push dword [ebp - 4]
rep movsd dword es:[edi], dword [esi]
call fcn.004ef370
add dword [ebp - 0x1c], 0x38
add dword [ebp - 4], 0x38
add esp, 0xc
dec dword [ebp - 0x20]
jne 0x4c04cb
mov dl, byte [ebp + 0xb]
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x10]
mov byte [eax + ecx + 0x1d], dl
mov esi, dword [ebx]
xor edi, edi
cmp dword [esi], edi
mov dword [ebp + 8], edi
jle 0x4c0546
mov eax, dword [esi + 0xc]
add eax, edi
cmp dword [eax + 4], 0
jne 0x4c0539
mov eax, dword [eax + 8]
test eax, eax
je 0x4c0539
mov edx, dword [ebp - 8]
push eax
call fcn.00491cc4
pop ecx
mov ecx, dword [esi + 0xc]
mov dword [ecx + edi + 4], eax
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, 0x14
cmp eax, dword [esi]
jl 0x4c0516
mov edi, dword [ebp - 0xc]
push dword [edi]
mov esi, dword [ebx]
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.004c005e
add esp, 0xc
cmp dword [ebp + 0x10], 0
je 0x4c058a
push dword [edi]
mov esi, dword [ebx + 0x10]
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.004c005e
add esp, 0xc
push dword [edi]
push dword [ebp - 0x14]
push dword [ebx + 0x14]
push dword [ebp - 8]
call fcn.004bff5c
add esp, 0x10
mov dword [ebx + 0x14], eax
mov eax, dword [edi + 0x18]
test eax, eax
je 0x4c059a
mov dword [ebx + 0x18], eax
and dword [edi + 0x18], 0
jmp 0x4c05b1
mov esi, dword [ebx + 0x18]
test esi, esi
je 0x4c05b1
push dword [edi]
push dword [ebp - 0x14]
push dword [ebp - 8]
call fcn.004c005e
add esp, 0xc
mov eax, dword [edi + 0xc]
mov esi, dword [ebp - 8]
test eax, eax
je 0x4c05cc
push 0
push eax
push esi
call fcn.004ae073
add esp, 0xc
mov dword [ebp + 8], eax
jmp 0x4c05d0
and dword [ebp + 8], 0
cmp dword [ebp + 0x14], 0
je 0x4c0628
mov eax, dword [ebx + 0xc]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp + 8]
mov dword [ebx + 0xc], eax
push dword [edi]
push dword [ebp - 0x14]
push dword [ebx + 0x14]
push esi
call fcn.004bff5c
push 0
mov dword [ebx + 0x14], eax
push dword [edi + 0x14]
push esi
call fcn.004ae073
add esp, 0x1c
push dword [ebx + 0x14]
push esi
call fcn.004adab4
mov dword [ebx + 0x14], eax
mov ebx, dword [edi + 0x10]
push 0
push esi
call fcn.004ae08a
mov ecx, dword [ebp - 0x18]
mov edi, dword [ebp - 0xc]
add esp, 0x10
mov dword [ecx + 0x10], eax
mov ebx, ecx
jmp 0x4c0649
push dword [edi]
push dword [ebp - 0x14]
push dword [ebx + 0xc]
push esi
call fcn.004bff5c
push eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebp + 8]
push esi
call fcn.004adab4
add esp, 0x18
mov dword [ebx + 0xc], eax
mov ax, word [edi + 6]
and ax, 1
or word [ebx + 6], ax
mov eax, dword [edi + 0x28]
test eax, eax
je 0x4c0663
mov dword [ebx + 0x28], eax
and dword [edi + 0x28], 0
mov ebx, dword [ebx + 0x1c]
mov eax, dword [edi + 0x1c]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4c043c
push dword [ebp - 0x2c]
push dword [ebp - 8]
call fcn.004bdbe7
pop ecx
pop ecx
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret