Function at 0x1005b820
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [edx + 0x2c]
lea eax, [edx + 4]
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebx + 0x19c], 0xe
or dword [ebx + 0x304], 0x20000000
mov edi, dword [ecx + 2]
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.10053070
mov ecx, dword [ebp - 4]
mov edx, edi
movzx esi, ax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 1
call fcn.100542e0
mov word [ebp - 0x1a], si
lea edi, [ebx + 0x80]
mov ecx, 7
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 8]
or dword [ebx + 0x304], 0x400
mov ecx, dword [edi + 6]
mov dword [ebx + 0x1c], 0
test ecx, 0x7e000
je 0x1005b8b9
shr ecx, 0xd
and ecx, 0x3f
mov dword [ebx + 0x18], ecx
jmp 0x1005b8ce
xor eax, eax
and ecx, 0x1f
cmp cl, 0xc
sete al
lea eax, [eax*4 + 4]
mov dword [ebx + 0x18], eax
or dword [ebx + 0x304], 8
xor ecx, ecx
mov eax, dword [edi + 6]
shr eax, 6
xor eax, dword [ebx + 0x1b8]
and eax, 0x10
xor dword [ebx + 0x1b8], eax
or dword [ebx + 0x308], 0x40000
mov eax, dword [edi + 6]
shr eax, 6
xor eax, dword [ebx + 0x1b8]
and eax, 8
xor dword [ebx + 0x1b8], eax
or dword [ebx + 0x308], 0x20000
mov eax, dword [edi + 6]
shr eax, 6
xor eax, dword [ebx + 0x1b8]
and eax, 0x20
xor dword [ebx + 0x1b8], eax
or dword [ebx + 0x308], 0x80000
mov eax, dword [edi + 6]
shr eax, 6
xor eax, dword [ebx + 0x1b8]
and eax, 0x40
xor dword [ebx + 0x1b8], eax
or dword [ebx + 0x308], 0x100000
mov eax, dword [edi + 6]
add eax, eax
xor eax, dword [ebx + 0x1c0]
and eax, 0x100000
xor dword [ebx + 0x1c0], eax
or dword [ebx + 0x318], 0x200000
mov eax, dword [edi + 6]
and al, 0xe0
cmp al, 0x20
mov eax, dword [ebx + 0x1b8]
setne cl
and eax, 0xffffdfff
dec ecx
and ecx, 0x2000
or ecx, eax
mov dword [ebx + 0x1b8], ecx
xor ecx, ecx
or dword [ebx + 0x308], 0x8000000
mov eax, dword [edi + 6]
and al, 0xe0
cmp al, 0x80
mov eax, dword [ebx + 0x1b8]
setne cl
and eax, 0xffffbfff
dec ecx
and ecx, 0x4000
or ecx, eax
mov dword [ebx + 0x1b8], ecx
xor ecx, ecx
or dword [ebx + 0x308], 0x10000000
mov eax, dword [edi + 6]
and al, 0xe0
cmp al, 0x40
mov eax, dword [ebx + 0x1b8]
setne cl
and eax, 0xffff7fff
dec ecx
and ecx, 0x8000
or ecx, eax
mov dword [ebx + 0x1b8], ecx
xor ecx, ecx
or dword [ebx + 0x308], 0x20000000
mov eax, dword [edi + 6]
and eax, 0xe0
cmp al, 0x60
mov eax, dword [ebx + 0x1b8]
setne cl
and eax, 0xfffeffff
dec ecx
and ecx, 0x10000
or ecx, eax
mov dword [ebx + 0x1b8], ecx
or dword [ebx + 0x308], 0x40000000
mov eax, dword [edi + 6]
and eax, 0xe0
cmp eax, 0x40
je 0x1005ba4a
cmp eax, 0x60
jne case.0x1005baa3.4
mov ecx, dword [ebp - 4]
call fcn.10053070
mov edx, dword [edi + 0xa]
mov ecx, dword [ebp - 4]
movzx esi, ax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], 1
call fcn.100542e0
mov word [ebp - 0x1a], si
lea edi, [ebx + 0x64]
mov dword [ebp - 0x18], eax
lea esi, [ebp - 0x24]
mov ecx, 7
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 8]
or dword [ebx + 0x304], 0x200
movzx eax, word [edi + 0xe]
dec eax
cmp eax, 6
ja case.0x1005baa3.4
jmp dword [eax*4 + 0x1005bb94]
or dword [ebx + 0x1b8], 0x20000
or dword [ebx + 0x308], 0x80000000
jmp case.0x1005baa3.4
or dword [ebx + 0x1b8], 0x40000
or dword [ebx + 0x30c], 1
jmp case.0x1005baa3.4
or dword [ebx + 0x1b8], 0x80000
or dword [ebx + 0x30c], 2
mov eax, dword [edi + 6]
test al, 0xe0
jne 0x1005bb8b
and al, 0x1f
cmp al, 4
jne 0x1005bb8b
xor eax, eax
mov ecx, ebx
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
call fcn.100241d0
or dword [ebx + 0x1b8], 0x100000
mov eax, dword [ebp - 0x24]
or dword [ebx + 0x30c], 4
sub eax, 1
je 0x1005bb47
sub eax, 8
je 0x1005bb42
sub eax, 2
je 0x1005bb47
xor eax, eax
jmp 0x1005bb4a
mov eax, dword [ebp - 0xc]
jmp 0x1005bb4a
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 4]
xor edx, edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x24], 0xb
mov dword [ebp - 0x18], eax
call fcn.10053070
lea edi, [ebx + 0x2d4]
mov word [ebp - 0x1a], ax
mov ecx, 7
lea esi, [ebp - 0x24]
rep movsd dword es:[edi], dword [esi]
or dword [ebx + 0x318], 0x4000
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret