Function at 0x48c590
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x28
mov ebp, ecx
call fcn.004abcce
mov dl, byte [esp + 0x18]
mov esi, eax
mov edi, dword [esp + 0x1c]
add esp, 4
mov dword [esp + 0xc], esi
mov dword [esi + 4], 1
mov dword [esi], vtable.Struct.0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov word [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov al, byte [ebp + 0x15]
mov byte [esi + 0x15], al
mov eax, dword [ebp + 0x18]
mov dword [esi + 0x18], eax
test dl, dl
je 0x48c649
test edi, edi
jne 0x48c644
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x20], eax
test eax, eax
je 0x48c63b
push dword [esi + 0x18]
mov byte [esi + 0x14], 1
push 8
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi + 0x24], eax
test eax, eax
je 0x48c63b
push dword [ebp + 0x18]
push dword [ebp + 0x24]
push eax
call fcn.004ad510
mov dl, byte [esp + 0x20]
add esp, 0xc
jmp 0x48c64f
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
mov dword [esi + 0x20], edi
jmp 0x48c64f
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x20], eax
cmp dword [ebp + 0xc], 0
push ebx
mov dword [esp + 0x10], 0
jle 0x48c75e
xor ebx, ebx
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jne 0x48c69f
test edi, edi
je 0x48c674
add edi, edi
jmp 0x48c679
mov edi, 4
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
push dword [esi + 8]
call fcn.004b1133
add esp, 8
test eax, eax
je 0x48c789
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov eax, dword [ebp + 8]
push dword [eax + ebx + 0x18]
call fcn.004b28b5
mov edx, eax
add esp, 4
test edx, edx
je 0x48c789
mov ecx, dword [ebp + 8]
inc dword [esi + 0xc]
add ecx, ebx
mov edi, dword [esi + 8]
add edi, ebx
mov eax, dword [ecx + 8]
mov dword [edi + 0x18], edx
mov dword [edi + 8], eax
mov eax, dword [ecx + 0x10]
mov dl, byte [esp + 0x18]
mov dword [edi + 0x10], eax
movzx eax, word [ecx + 4]
mov word [edi + 4], ax
mov eax, dword [ecx + 0xc]
mov dword [edi + 0xc], eax
movzx eax, byte [ecx + 1]
mov byte [edi + 1], al
movzx eax, byte [ecx]
mov byte [edi], al
movzx eax, byte [ecx + 2]
mov byte [edi + 2], al
movzx eax, byte [ecx + 3]
mov byte [edi + 3], al
movzx eax, word [ecx + 6]
mov word [edi + 6], ax
mov ecx, dword [ecx + 0x14]
test ecx, ecx
jne 0x48c714
mov dword [edi + 0x14], ecx
jmp 0x48c745
test dl, dl
je 0x48c734
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x48c723
mov eax, dword [esi + 0x20]
push eax
push 1
call fcn.0048c590
mov dword [edi + 0x14], eax
test eax, eax
je 0x48c789
jmp 0x48c741
mov dword [edi + 0x14], ecx
test ecx, ecx
je 0x48c745
mov eax, dword [ecx]
push ecx
call dword [eax + 4]
mov dl, byte [esp + 0x18]
mov eax, dword [esp + 0x10]
add ebx, 0x1c
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [ebp + 0xc]
jl 0x48c664
mov edi, dword [esp + 0x1c]
test dl, dl
je 0x48c799
test edi, edi
jne 0x48c799
cmp dword [esi + 0xc], 1
jg 0x48c777
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
cmp word [eax], di
je 0x48c799
push 0
push 0
mov ecx, esi
call fcn.0048c590
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x48c7a0
mov eax, dword [esi]
push esi
call dword [eax + 8]
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
mov dword [esi + 0x1c], 0
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
pop ecx
ret 8