Function at 0x591940
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, 4
push 0
push 0
dec ecx
jne 0x591949
xchg dword [ebp - 4], ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x591bc9
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
mov edx, dword [ebx + 0x10]
mov edx, dword [edx + 0x10]
call fcn.00405708
mov eax, dword [ebp - 8]
push eax
mov ecx, 0x591be0
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 4]
push eax
mov ecx, 0x591bf4
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0xc]
mov eax, dword [ebx + 0x10]
movzx eax, byte [eax + 9]
call fcn.0058f8a8
mov eax, dword [ebp - 0xc]
push eax
mov ecx, 0x591c08
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x10]
test byte [eax + 8], 1
setne al
push eax
mov ecx, 0x591c1c
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebx + 0x10]
test byte [eax + 8], 2
setne al
push eax
mov ecx, 0x591c30
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebx + 0x10]
test byte [eax + 8], 4
setne al
push eax
mov ecx, 0x591c44
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0x14]
mov eax, dword [ebx + 0x10]
movzx eax, byte [eax + 0xb]
push eax
mov ecx, 0x591c5c
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebx + 0x1c]
movzx eax, byte [eax + 4]
push eax
mov ecx, 0x591c74
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebx + 0x1c]
movzx eax, byte [eax + 5]
push eax
mov ecx, 0x591c8c
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 4]
push eax
mov ecx, 0x591ca4
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x10]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0xc]
movzx eax, byte [eax + 5]
call fcn.0058f8a8
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x591cb8
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + 4]
push eax
mov ecx, 0x591cd0
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x14]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x10]
movzx eax, byte [eax + 5]
call fcn.0058f8a8
mov eax, dword [ebp - 0x14]
push eax
mov ecx, 0x591ce8
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 4]
movzx eax, byte [eax + 4]
push eax
mov ecx, 0x591d04
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x18]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 4]
movzx eax, byte [eax + 5]
call fcn.0058f8a8
mov eax, dword [ebp - 0x18]
push eax
mov ecx, 0x591d18
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 8]
movzx eax, byte [eax + 4]
push eax
mov ecx, 0x591d30
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x1c]
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 8]
movzx eax, byte [eax + 5]
call fcn.0058f8a8
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, 0x591d44
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
mov eax, dword [ebx + 0x18]
movzx eax, byte [eax + 5]
push eax
mov ecx, 0x591d60
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 0x20]
mov eax, dword [ebx + 0x18]
movzx eax, byte [eax + 4]
call fcn.0058f8a8
mov eax, dword [ebp - 0x20]
push eax
mov ecx, 0x591d74
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 4]
lea edx, [ebp - 0x24]
mov eax, dword [ebx + 0x18]
movzx eax, byte [eax + 6]
call fcn.0058f8a8
mov eax, dword [ebp - 0x24]
push eax
mov ecx, 0x591d8c
mov edx, dword [ebp - 4]
mov eax, esi
mov ebx, dword [eax]
call dword [ebx + 4]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x591bd0
lea eax, [ebp - 0x24]
mov edx, 8
call fcn.004054a4
ret