Function at 0x50dc80
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [edi + 0x14]
mov ebx, dword [esi + 4]
test ebx, ebx
mov ebp, dword [esi]
mov dword [esp + 0x10], esi
jne 0x50dcaa
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x50debd
mov ebp, dword [esi]
mov ebx, dword [esi + 4]
xor eax, eax
mov ah, byte [ebp]
dec ebx
inc ebp
test ebx, ebx
mov dword [esp + 0xc], eax
jne 0x50dcd1
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x50debd
mov ebp, dword [esi]
mov ebx, dword [esi + 4]
mov eax, dword [esp + 0xc]
movzx ecx, byte [ebp]
add eax, ecx
dec ebx
sub eax, 2
inc ebp
test eax, eax
mov dword [esp + 0xc], eax
jle 0x50deaf
test ebx, ebx
jne 0x50dd00
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x50debd
mov ebp, dword [esi]
mov ebx, dword [esi + 4]
movzx esi, byte [ebp]
mov edx, dword [edi]
mov dword [edx + 0x14], 0x4e
mov ecx, dword [edi]
mov eax, esi
sar eax, 4
and esi, 0xf
mov dword [ecx + 0x18], esi
mov edx, dword [edi]
mov dword [esp + 0x1c], eax
mov dword [edx + 0x1c], eax
mov eax, dword [edi]
push 1
dec ebx
push edi
inc ebp
call dword [eax + 4]
add esp, 8
cmp esi, 4
jl 0x50dd4b
mov ecx, dword [edi]
mov dword [ecx + 0x14], 0x1c
mov edx, dword [edi]
mov dword [edx + 0x18], esi
mov eax, dword [edi]
push edi
call dword [eax]
add esp, 4
mov eax, dword [edi + esi*4 + 0x90]
test eax, eax
jne 0x50dd74
mov ecx, dword [edi + 4]
push 0x82
push 0
push edi
call dword [ecx]
mov byte [eax + 0x80], 0
add esp, 0xc
mov dword [edi + esi*4 + 0x90], eax
mov edx, dword [edi + esi*4 + 0x90]
xor esi, esi
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x50dddc
test ebx, ebx
mov esi, dword [esp + 0x10]
jne 0x50dda9
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x50debd
mov ebp, dword [esi]
mov ebx, dword [esi + 4]
xor eax, eax
mov ah, byte [ebp]
dec ebx
inc ebp
test ebx, ebx
mov dword [esp + 0x14], eax
jne 0x50ddcc
push edi
call dword [esi + 0xc]
add esp, 4
test al, al
je 0x50debd
mov ebp, dword [esi]
mov ebx, dword [esi + 4]
movzx ecx, byte [ebp]
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
add edx, ecx
jmp 0x50ddfc
test ebx, ebx
jne 0x50ddf8
mov ebx, dword [esp + 0x10]
push edi
call dword [ebx + 0xc]
add esp, 4
test al, al
je 0x50debd
mov ebp, dword [ebx]
mov ebx, dword [ebx + 4]
movzx edx, byte [ebp]
mov eax, dword [esp + 0x20]
dec ebx
mov cx, dx
inc ebp
mov word [eax + esi*2], cx
inc esi
cmp esi, 0x40
mov dword [esp + 0x14], edx
mov dword [esp + 0x18], esi
jl 0x50dd85
lea esi, [eax + 4]
mov dword [esp + 0x18], 8
mov eax, dword [edi]
movzx edx, word [esi - 4]
add eax, 0x18
mov dword [eax], edx
movzx ecx, word [esi - 2]
mov dword [eax + 4], ecx
movzx edx, word [esi]
mov dword [eax + 8], edx
movzx ecx, word [esi + 2]
mov dword [eax + 0xc], ecx
movzx edx, word [esi + 4]
mov dword [eax + 0x10], edx
movzx ecx, word [esi + 6]
mov dword [eax + 0x14], ecx
movzx edx, word [esi + 8]
mov dword [eax + 0x18], edx
movzx ecx, word [esi + 0xa]
mov dword [eax + 0x1c], ecx
mov edx, dword [edi]
mov dword [edx + 0x14], 0x5a
mov eax, dword [edi]
push 2
push edi
call dword [eax + 4]
mov eax, dword [esp + 0x20]
add esp, 8
add esi, 0x10
dec eax
mov dword [esp + 0x18], eax
jne 0x50de26
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x1c]
sub ecx, 0x41
test eax, eax
mov dword [esp + 0xc], ecx
je 0x50de9f
mov eax, ecx
sub eax, 0x40
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [esp + 0x10]
jg 0x50dce8
mov dword [esi], ebp
mov dword [esi + 4], ebx
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x18
ret