Function at 0x56e6c4
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
cmp dword [ebp + 0x14], 0
jne 0x56e6d7
xor eax, eax
jmp 0x56e8ce
mov eax, dword [ebp + 0xc]
add eax, dword [ebp + 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x20]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 0x14]
mov ecx, dword [ebp - 0x14]
lea eax, [ecx + eax + 0x18]
mov dword [ebp - 0x10], eax
push 4
push 0x3000
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
shl eax, 2
push eax
push 0
call fcn.0056f7b0
add esp, 0x10
mov dword [ebp - 0x1c], eax
and dword [ebp - 4], 0
jmp 0x56e72f
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
cmp dword [ebp - 4], eax
je 0x56e784
imul eax, dword [ebp - 4], 0x28
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax + 0x24]
and eax, 0x10000000
je 0x56e74f
jmp 0x56e728
imul eax, dword [ebp - 4], 0x28
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 0x1c]
lea eax, [ecx + eax*4]
push eax
push 0x40
imul eax, dword [ebp - 4], 0x28
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax + 8]
push dword [ebp - 0x28]
call fcn.0056f7d0
add esp, 0x10
jmp 0x56e728
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x2c]
jae 0x56e859
mov eax, dword [ebp + 0xc]
add eax, 8
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 4]
sub eax, 8
shr eax, 1
mov dword [ebp - 0x30], eax
and dword [ebp - 8], 0
jmp 0x56e7b4
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x30]
je 0x56e848
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
test eax, eax
jne 0x56e7d0
jmp 0x56e7ad
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
add eax, dword [ecx]
push eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
push eax
push dword [ebp - 0x10]
call fcn.0056e660
add esp, 0xc
test eax, eax
je 0x56e7fe
jmp 0x56e7ad
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
and eax, 0xfff
mov ecx, dword [ebp + 0xc]
mov ecx, dword [ecx]
add ecx, eax
add ecx, dword [ebp + 8]
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x18]
movzx eax, word [ecx + eax*2]
sar eax, 0xc
mov dword [ebp - 0x34], eax
cmp dword [ebp - 0x34], 3
je 0x56e836
jmp 0x56e843
mov eax, dword [ebp - 0x24]
mov eax, dword [eax]
add eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x24]
mov dword [ecx], eax
jmp 0x56e7ad
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, dword [eax + 4]
mov dword [ebp + 0xc], ecx
jmp 0x56e784
and dword [ebp - 0xc], 0
jmp 0x56e866
mov eax, dword [ebp - 0xc]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
movzx eax, word [eax + 6]
cmp dword [ebp - 0xc], eax
je 0x56e8ba
imul eax, dword [ebp - 0xc], 0x28
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx + eax + 0x24]
and eax, 0x10000000
je 0x56e886
jmp 0x56e85f
imul eax, dword [ebp - 0xc], 0x28
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
add edx, dword [ecx + eax + 0xc]
mov dword [ebp - 0x38], edx
push 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x1c]
push dword [ecx + eax*4]
imul eax, dword [ebp - 0xc], 0x28
mov ecx, dword [ebp - 0x10]
push dword [ecx + eax + 8]
push dword [ebp - 0x38]
call fcn.0056f7d0
add esp, 0x10
jmp 0x56e85f
push 0x8000
push 0
push dword [ebp - 0x1c]
call fcn.0056f7f0
add esp, 0xc
xor eax, eax
leave
ret