Function at 0x4ec296
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov edx, dword [ebp + 8]
push ebx
mov ebx, dword [0x2da20]
push esi
xor ecx, ecx
cmp dword [0x2e05c], ecx
push edi
mov edi, dword [edx + 0x28]
je 0x4ec2fc
cmp dword [edi + 0x14], ecx
je 0x4ec2fc
test byte [0x2e059], 2
je 0x4ec2fc
lea esi, [edi + 0xc]
mov ecx, esi
mov byte [ebp - 4], 0x73
mov byte [ebp - 3], 0x52
mov byte [ebp - 2], 0x41
mov byte [ebp - 1], 0x57
call ebx
mov ecx, dword [esi + 4]
mov edx, dword [ebp + 8]
and ecx, eax
mov eax, dword [ebp - 4]
shl ecx, 4
add ecx, dword [esi + 8]
mov dword [ecx], eax
xor eax, eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
xor ecx, ecx
cmp dword [edi + 0x234], ecx
je 0x4ec366
mov esi, dword [ebp + 0x10]
lea eax, [esi + 0x10]
mov dword [ebp + 0x10], eax
mov eax, dword [eax]
cmp eax, 0x10000
jbe 0x4ec375
cmp dword [0x2e05c], ecx
mov esi, dword [edx + 0x28]
je 0x4ec366
cmp dword [esi + 0x14], ecx
je 0x4ec366
test byte [0x2e059], 2
je 0x4ec366
add esi, 0xc
mov ecx, esi
mov byte [ebp + 8], 0x54
mov byte [ebp + 9], 0x62
mov byte [ebp + 0xa], 0x74
mov byte [ebp + 0xb], 0x73
call ebx
mov ecx, dword [esi + 4]
and ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 4
add ecx, dword [esi + 8]
and dword [ecx + 4], 0
and dword [ecx + 8], 0
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
mov dword [ecx + 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [eax + 4], 5
jmp 0x4ec49c
mov ecx, dword [ebp + 0xc]
add eax, 0x28
cmp eax, dword [ecx + 8]
mov dword [ebp + 0x10], eax
jbe 0x4ec3e7
cmp dword [0x2e05c], 0
mov esi, dword [edx + 0x28]
je 0x4ec3db
cmp dword [esi + 0x14], 0
je 0x4ec3db
test byte [0x2e059], 2
je 0x4ec3db
add esi, 0xc
mov ecx, esi
mov byte [ebp + 8], 0x54
mov byte [ebp + 9], 0x73
mov byte [ebp + 0xa], 0x6d
mov byte [ebp + 0xb], 0x61
call ebx
mov ecx, dword [esi + 4]
and ecx, eax
mov eax, dword [ebp + 8]
shl ecx, 4
add ecx, dword [esi + 8]
and dword [ecx + 8], 0
mov dword [ecx], eax
mov eax, dword [ebp + 0x10]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 8]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], 7
jmp 0x4ec49c
mov dword [ecx + 0xc], eax
mov al, byte [esi]
mov cx, word [esi + 0xa]
mov byte [ebp - 0xc], al
mov al, byte [esi + 1]
mov byte [ebp - 0xb], al
mov ax, word [esi + 2]
mov word [ebp - 0xa], ax
mov ax, word [esi + 4]
mov word [ebp - 8], ax
mov ax, word [esi + 6]
mov word [ebp - 6], ax
mov ebx, dword [edi + 0x234]
mov eax, dword [ebx + 0x2c]
add ebx, 0x18
mov word [eax + 0x10c], cx
mov cx, word [esi + 8]
mov eax, dword [ebx + 0x14]
mov word [eax + 0x108], cx
lea ecx, [edi + 0x2d0]
call dword [0x2da08]
mov ebx, dword [ebx + 0x14]
lea ecx, [ebx + 0x178]
push ecx
add ebx, 0x108
push ebx
push dword [edi + 0x140]
mov byte [ebp + 0x13], al
mov eax, dword [edi + 0x144]
call dword [eax + 0x40]
mov dl, byte [ebp + 0x13]
lea ecx, [edi + 0x2d0]
call dword [0x2da0c]
lea eax, [esi + 0x14]
push eax
lea eax, [esi + 0x10]
push eax
push dword [eax]
add esi, 0x18
push esi
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
push dword [edi + 0x234]
call fcn.004f219c
push eax
call fcn.004eda30
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 4], eax
pop edi
pop esi
pop ebx
leave
ret 0xc