Function at 0x10018920
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100a80a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov esi, ecx
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0xc]
push edi
xor edi, edi
mov dword [ebp - 0x24], edx
mov ecx, dword [esi]
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x30], ecx
cmp dword [esi + 8], edi
jbe 0x10018e8f
push ebx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x100189a0
cmp eax, 0x64
je 0x100189a0
cmp eax, 0x65
je 0x100189a0
cmp eax, 0x66
je 0x100189a0
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 4], 0x2000
mov edx, dword [esi + 0x18]
mov ebx, dword [ecx + 0x48]
cmp edx, ebx
jne 0x1001898d
cmp dword [esi + 0xc], 1
jne 0x1001898d
mov edx, ebx
mov ecx, dword [ebp - 0x2c]
imul eax, edi, 0x4c
add ecx, 0x24
add ecx, eax
call fcn.10021fd0
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x2c]
lea ebx, [edi*8]
imul eax, edi, 0x4c
sub ebx, edi
add ecx, eax
mov eax, dword [esi + 4]
mov dword [ebp - 0x28], ecx
mov eax, dword [eax + ebx*4]
mov dword [ecx + 0x1c], eax
mov eax, dword [esi + 4]
mov eax, dword [eax + ebx*4 + 4]
mov dword [ecx + 0x18], eax
mov ecx, dword [ebp - 0x20]
mov eax, dword [esi + 0x1c]
and eax, 0x1f
mov dword [ecx + ebx*4 + 0x10], eax
mov ecx, dword [esi + 0x10]
test ecx, 0x1000000
je 0x100189ed
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x20000000
mov ecx, dword [esi + 0x10]
mov eax, dword [esi + 0xc]
dec eax
cmp eax, 0xfe
ja case.0x10018a03.2
movzx eax, byte [eax + 0x10018ec4]
jmp dword [eax*4 + 0x10018ea0]
test ecx, ecx
jns 0x10018a74
cmp dword [esi + 8], 1
jne 0x10018a28
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x200
jmp case.0x10018a03.2
test edi, edi
jne 0x10018a38
or dword [edx + 8], 0x8220
mov ecx, dword [edx + 8]
jmp 0x10018a46
mov eax, edi
shl eax, 4
sub eax, edi
mov ecx, dword [edx + eax*4 + 8]
or ecx, 4
mov eax, edi
or ecx, 0x2018
shl eax, 4
sub eax, edi
mov dword [edx + eax*4 + 8], ecx
mov ecx, dword [esi]
cmp dword [ecx + 0x30], 0
jne case.0x10018a03.2
call fcn.10018830
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x10018cec
mov eax, edi
shl eax, 4
sub eax, edi
test cl, 2
je 0x10018a9b
or dword [edx + eax*4 + 8], 0x20000
mov ecx, dword [esi]
call fcn.10018830
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x10018cec
or dword [edx + eax*4 + 8], 0x40
jmp case.0x10018a03.2
mov eax, edi
shl eax, 4
sub eax, edi
lea ecx, [edx + eax*4]
mov eax, dword [ecx + 8]
or eax, 0x1000
mov dword [ecx + 8], eax
cmp dword [esi + 8], 1
jbe 0x10018ac8
or eax, 0x400000
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x10018ad7
or dword [eax + ebx*4 + 0xc], 0x10000
test dword [esi + 0x10], 0x200
je 0x10018ae5
or dword [eax + ebx*4 + 0xc], 4
mov ecx, dword [esi]
call fcn.10018830
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x10018cec
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x401000
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + ebx*4 + 0xc]
or ecx, 0x200000
mov dword [edx + ebx*4 + 0xc], ecx
mov eax, dword [esi + 4]
movzx eax, word [eax + ebx*4 + 8]
mov dword [edx + ebx*4 + 0x14], eax
test edi, edi
je 0x10018b32
or ecx, 0x10000
mov dword [edx + ebx*4 + 0xc], ecx
test dword [esi + 0x10], 0x200
je 0x10018b42
or ecx, 4
mov dword [edx + ebx*4 + 0xc], ecx
mov ecx, dword [esi]
call fcn.10018830
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x10018cec
mov eax, edi
add edx, 8
shl eax, 4
sub eax, edi
or dword [edx + eax*4], 0x1008
lea eax, [edx + eax*4]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x200
mov ecx, dword [esi]
call fcn.10018830
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
mov ecx, dword [esi + 8]
cmp ecx, 6
jbe 0x10018b99
mov eax, dword [ebp - 0x28]
or dword [eax], 0x400000
mov ecx, dword [esi + 8]
mov eax, 0xaaaaaaab
mov dword [ebp - 0x1c], 0x400
mul ecx
mov eax, edi
mov dword [ebp - 0x18], 0x800
mov ecx, edx
mov dword [ebp - 0x14], 0x1000
shr ecx, 2
xor edx, edx
div ecx
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x10], 0x2000
mov dword [ebp - 0xc], 0x4000
mov dword [ebp - 8], 0x8000
mov eax, dword [ebp + eax*4 - 0x1c]
or eax, dword [ecx + ebx*4 + 0xc]
mov dword [ecx + ebx*4 + 0xc], eax
test edx, edx
je 0x10018bf1
or eax, 0x10000
mov dword [ecx + ebx*4 + 0xc], eax
test dword [esi + 0x10], 0x200
je 0x10018cec
or eax, 4
mov dword [ecx + ebx*4 + 0xc], eax
jmp 0x10018cec
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x1000
jmp case.0x10018a03.2
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x800000
mov ecx, dword [esi]
call fcn.10018830
mov ecx, dword [ebp - 0x20]
or dword [ecx + ebx*4 + 0xc], 0x40
jmp 0x10018cdc
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x800000
mov ecx, dword [esi + 0x10]
mov edx, dword [ebp - 0x20]
test ecx, 0x20000000
jne 0x10018c66
or dword [edx + ebx*4 + 0xc], 0x20
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x50], 8
jb 0x10018cd2
mov eax, dword [edx + ebx*4 + 0xc]
test ecx, 0x200
je 0x10018c84
or eax, 4
mov dword [edx + ebx*4 + 0xc], eax
jmp 0x10018cd2
or eax, 8
mov dword [edx + ebx*4 + 0xc], eax
jmp 0x10018cd2
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x800000
mov edx, dword [ebp - 0x20]
mov ecx, dword [edx + ebx*4 + 0xc]
mov eax, ecx
or eax, 0x4000000
mov dword [edx + ebx*4 + 0xc], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x50], 8
jb 0x10018cd2
test dword [esi + 0x10], 0x200
je 0x10018cc8
or ecx, 0x4000004
jmp 0x10018cce
or ecx, 0x4000008
mov dword [edx + ebx*4 + 0xc], ecx
mov ecx, dword [esi]
call fcn.10018830
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
mov ecx, dword [ebp - 0x28]
mov eax, dword [ecx + 0x1c]
mov dword [ecx + 0xc], eax
mov ecx, dword [ebp - 0x20]
test byte [esi + 0x10], 1
mov edx, dword [ebp - 0x24]
je 0x10018d1c
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x2000
cmp dword [ecx + ebx*4 + 0x18], 0
jne 0x10018d1c
mov ecx, dword [esi]
call fcn.10018830
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ecx + ebx*4 + 0x18], eax
test byte [esi + 0x10], 2
je 0x10018d31
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x20000
mov ecx, dword [ebp - 0x30]
cmp dword [ecx + 0x50], 8
jb 0x10018dcb
mov eax, dword [esi + 0x10]
test al, 4
je 0x10018d53
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x80
mov eax, dword [esi + 0x10]
test al, 8
je 0x10018d69
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x10000
mov eax, dword [esi + 0x10]
test eax, 0x4000004
jne 0x10018d7e
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x400000
mov eax, dword [esi + 0x10]
test eax, 0x2000000
je 0x10018d93
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x10000000
mov eax, dword [esi + 0x10]
test al, 0x40
je 0x10018da5
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x800000
mov eax, dword [esi + 0x10]
test al, al
jns 0x10018db7
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x1000000
mov eax, dword [esi + 0x10]
test eax, 0x100
je 0x10018e0b
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x2000000
jmp 0x10018e0b
mov eax, dword [esi + 0xc]
cmp eax, 3
je 0x10018ddd
cmp eax, 5
je 0x10018ddd
cmp eax, 4
jne 0x10018df1
test byte [esi + 0x10], 4
je 0x10018df1
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x80
mov eax, dword [esi + 0xc]
cmp eax, 6
jne 0x10018e0b
test byte [esi + 0x10], 8
je 0x10018e0b
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x10000
mov eax, dword [esi + 0x14]
cmp eax, 5
ja case.0x10018e13.3
jmp dword [eax*4 + 0x10018fc4]
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x10004000
jmp case.0x10018e13.3
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x20004000
jmp case.0x10018e13.3
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x800
jmp case.0x10018e13.3
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 4], 0x40000000
or dword [edx + eax*4 + 8], 0x4000
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x10
jmp case.0x10018e13.3
mov eax, edi
mov dword [esi + 0x14], 4
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x4000
inc edi
cmp edi, dword [esi + 8]
jb 0x10018956
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.100a1500
mov esp, ebp
pop ebp
ret