Function at 0x494c90
Capabilities:
Enumerate pe sections

Disassembly:
push ecx
push ebp
push esi
push edi
push 0x28
mov ebp, ecx
call fcn.004ae4f6
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 0x494d49
test edi, edi
jne 0x494d44
push edi
push edi
push edi
call dword [sym.imp.KERNEL32.dll_HeapCreate]
mov dword [esi + 0x20], eax
test eax, eax
je 0x494d3b
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 0x494d3b
push dword [ebp + 0x18]
push dword [ebp + 0x24]
push eax
call fcn.004aff90
mov dl, byte [esp + 0x20]
add esp, 0xc
jmp 0x494d4f
pop edi
pop esi
xor eax, eax
pop ebp
pop ecx
ret 8
mov dword [esi + 0x20], edi
jmp 0x494d4f
mov eax, dword [ebp + 0x20]
mov dword [esi + 0x20], eax
cmp dword [ebp + 0xc], 0
push ebx
mov dword [esp + 0x10], 0
jle 0x494e5e
xor ebx, ebx
mov edi, dword [esi + 0x10]
cmp dword [esi + 0xc], edi
jne 0x494d9f
test edi, edi
je 0x494d74
add edi, edi
jmp 0x494d79
mov edi, 4
lea eax, [edi*8]
sub eax, edi
shl eax, 2
push eax
push dword [esi + 8]
call fcn.004b2c49
add esp, 8
test eax, eax
je 0x494e89
mov dword [esi + 8], eax
mov dword [esi + 0x10], edi
mov eax, dword [ebp + 8]
push dword [eax + ebx + 0x18]
call fcn.004b89da
mov edx, eax
add esp, 4
test edx, edx
je 0x494e89
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 0x494e14
mov dword [edi + 0x14], ecx
jmp 0x494e45
test dl, dl
je 0x494e34
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x494e23
mov eax, dword [esi + 0x20]
push eax
push 1
call fcn.00494c90
mov dword [edi + 0x14], eax
test eax, eax
je 0x494e89
jmp 0x494e41
mov dword [edi + 0x14], ecx
test ecx, ecx
je 0x494e45
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 0x494d64
mov edi, dword [esp + 0x1c]
test dl, dl
je 0x494e99
test edi, edi
jne 0x494e99
cmp dword [esi + 0xc], 1
jg 0x494e77
mov eax, dword [esi + 8]
mov eax, dword [eax + 0x18]
cmp byte [eax], 0
je 0x494e99
push 0
push 0
mov ecx, esi
call fcn.00494c90
mov dword [esi + 0x1c], eax
test eax, eax
jne 0x494ea0
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