Function at 0x4e68f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
push edi
push 0xb0
push 1
call fcn.00547150
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4e691d
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp + 8]
mov ecx, dword [ebx]
and ecx, 0xfffffffb
mov eax, dword [esi]
shr eax, 6
and eax, 4
or eax, ecx
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4e69fd
cmp eax, 4
je 0x4e69fd
mov dx, word [esi + 4]
push 8
mov word [ebx + 4], dx
mov ax, word [esi + 8]
mov word [ebx + 6], ax
mov cx, word [esi + 0xc]
mov eax, dword [ebx]
mov word [ebx + 8], cx
mov edx, dword [esi]
and al, 0x7f
shr edx, 0xd
and edx, 0x80
or edx, eax
mov dword [ebx], edx
mov ecx, dword [esi + 0x58]
mov dword [ebx + 0x7c], ecx
mov edx, dword [esi + 0x5c]
mov dword [ebx + 0x80], edx
mov eax, dword [esi + 0x60]
mov dword [ebx + 0x84], eax
mov ecx, dword [esi + 0x64]
mov dword [ebx + 0x88], ecx
movsx edx, word [esi + 4]
movsx eax, word [esi + 8]
lea edi, [eax + edx*2 + 2]
push edi
mov dword [esp + 0x1c], edi
call fcn.00547150
add esp, 8
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x4e69c0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
mov dword [esp + 0x10], eax
jle 0x4e6aac
mov ecx, dword [esi + 0x18]
mov edi, dword [ebx + 0x14]
shl eax, 3
mov edx, eax
add edx, edi
mov edi, dword [ecx + eax]
mov dword [edx], edi
mov eax, dword [ecx + eax + 4]
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4e69ce
jmp 0x4e6aac
mov cx, word [esi + 6]
push 8
mov word [ebx + 4], cx
mov dx, word [esi + 0xa]
mov word [ebx + 6], dx
mov ax, word [esi + 0xe]
mov edx, dword [ebx]
mov word [ebx + 8], ax
mov ecx, dword [esi]
and dl, 0x7f
shr ecx, 0xe
and ecx, 0x80
or ecx, edx
mov dword [ebx], ecx
mov eax, dword [esi + 0x68]
mov dword [ebx + 0x7c], eax
mov ecx, dword [esi + 0x6c]
mov dword [ebx + 0x80], ecx
mov edx, dword [esi + 0x70]
mov dword [ebx + 0x84], edx
mov eax, dword [esi + 0x74]
mov dword [ebx + 0x88], eax
movsx ecx, word [esi + 6]
movsx edx, word [esi + 0xa]
lea edi, [edx + ecx*2 + 2]
push edi
mov dword [esp + 0x1c], edi
call fcn.00547150
add esp, 8
mov dword [ebx + 0x14], eax
test eax, eax
jne 0x4e6a78
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
test edi, edi
mov dword [esp + 0x10], eax
jle 0x4e6aac
mov ecx, dword [esi + 0x1c]
mov edi, dword [ebx + 0x14]
shl eax, 3
mov edx, eax
add edx, edi
mov edi, dword [ecx + eax]
mov dword [edx], edi
mov eax, dword [ecx + eax + 4]
mov ecx, dword [esp + 0x14]
mov dword [edx + 4], eax
mov eax, dword [esp + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0x10], eax
jl 0x4e6a82
movsx ecx, word [ebx + 8]
push 0x18
push ecx
call fcn.00547150
xor edi, edi
add esp, 8
cmp eax, edi
mov dword [ebx + 0xc], eax
jne 0x4e6ad0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], edi
je 0x4e6af7
movsx edx, word [ebx + 8]
push 8
push edx
call fcn.00547150
add esp, 8
cmp eax, edi
mov dword [ebx + 0x10], eax
jne 0x4e6af7
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4e6b8f
cmp eax, 4
je 0x4e6b95
cmp eax, 2
jne 0x4e6b19
xor ecx, ecx
mov dword [esp + 0x10], ecx
jmp 0x4e6b24
movsx eax, word [esi + 0xe]
dec eax
mov dword [esp + 0x10], eax
mov ecx, eax
xor eax, eax
cmp word [ebx + 8], di
jle 0x4e6c01
lea ecx, [ecx + ecx*2]
shl ecx, 3
mov dword [esp + 0x14], ecx
xor edx, edx
jmp 0x4e6b45
mov esi, dword [ebp + 8]
mov ecx, dword [esp + 0x14]
mov esi, dword [esi + 0x10]
mov edi, edx
mov esi, dword [esi + eax*4]
add esi, ecx
mov ecx, dword [ebx + 0xc]
add edi, ecx
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebx + 0x10]
test ecx, ecx
je 0x4e6b81
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x10]
mov esi, dword [esi + 0x14]
mov esi, dword [esi + eax*4]
mov edi, dword [esi + edi*8]
mov dword [ecx + eax*8], edi
mov edi, dword [esp + 0x10]
mov esi, dword [esi + edi*8 + 4]
mov dword [ecx + eax*8 + 4], esi
movsx ecx, word [ebx + 8]
inc eax
add edx, 0x18
cmp eax, ecx
jl 0x4e6b3e
jmp 0x4e6c01
mov dword [esp + 0x10], edi
jmp 0x4e6b9e
movsx eax, word [esi + 0xc]
dec eax
mov dword [esp + 0x10], eax
xor edx, edx
cmp word [ebx + 8], di
jle 0x4e6c01
mov dword [esp + 0x14], edi
jmp 0x4e6bb3
mov esi, dword [ebp + 8]
mov edi, dword [esp + 0x14]
mov eax, dword [esi + 0x10]
mov ecx, dword [esp + 0x10]
mov esi, dword [eax + ecx*4]
mov eax, dword [ebx + 0xc]
add esi, edi
add edi, eax
mov ecx, 6
rep movsd dword es:[edi], dword [esi]
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x4e6bed
mov ecx, dword [ebp + 8]
mov esi, dword [esp + 0x10]
mov ecx, dword [ecx + 0x14]
mov ecx, dword [ecx + esi*4]
mov esi, dword [ecx + edx*8]
mov dword [eax + edx*8], esi
mov ecx, dword [ecx + edx*8 + 4]
mov dword [eax + edx*8 + 4], ecx
movsx eax, word [ebx + 8]
mov esi, dword [esp + 0x14]
inc edx
add esi, 0x18
cmp edx, eax
mov dword [esp + 0x14], esi
jl 0x4e6bac
mov ecx, dword [0x584ab4]
mov edx, dword [0x584ab0]
push ecx
push edx
push ebx
call fcn.004b8400
push ebx
call fcn.004bc500
mov eax, dword [ebp + 0x10]
add esp, 0x10
pop edi
mov dword [eax], ebx
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret