Function at 0x100185e0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100a60a4]
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 0x10018b4f
push ebx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10018660
cmp eax, 0x64
je 0x10018660
cmp eax, 0x65
je 0x10018660
cmp eax, 0x66
je 0x10018660
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 0x1001864d
cmp dword [esi + 0xc], 1
jne 0x1001864d
mov edx, ebx
mov ecx, dword [ebp - 0x2c]
imul eax, edi, 0x4c
add ecx, 0x24
add ecx, eax
call fcn.10021ac0
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 0x100186ad
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.0x100186c3.2
movzx eax, byte [eax + 0x10018b84]
jmp dword [eax*4 + 0x10018b60]
test ecx, ecx
jns 0x10018734
cmp dword [esi + 8], 1
jne 0x100186e8
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x200
jmp case.0x100186c3.2
test edi, edi
jne 0x100186f8
or dword [edx + 8], 0x8220
mov ecx, dword [edx + 8]
jmp 0x10018706
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.0x100186c3.2
call fcn.100184f0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x100189ac
mov eax, edi
shl eax, 4
sub eax, edi
test cl, 2
je 0x1001875b
or dword [edx + eax*4 + 8], 0x20000
mov ecx, dword [esi]
call fcn.100184f0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x100189ac
or dword [edx + eax*4 + 8], 0x40
jmp case.0x100186c3.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 0x10018788
or eax, 0x400000
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x10018797
or dword [eax + ebx*4 + 0xc], 0x10000
test dword [esi + 0x10], 0x200
je 0x100187a5
or dword [eax + ebx*4 + 0xc], 4
mov ecx, dword [esi]
call fcn.100184f0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x100189ac
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 0x100187f2
or ecx, 0x10000
mov dword [edx + ebx*4 + 0xc], ecx
test dword [esi + 0x10], 0x200
je 0x10018802
or ecx, 4
mov dword [edx + ebx*4 + 0xc], ecx
mov ecx, dword [esi]
call fcn.100184f0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x100189ac
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.100184f0
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
mov ecx, dword [esi + 8]
cmp ecx, 6
jbe 0x10018859
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 0x100188b1
or eax, 0x10000
mov dword [ecx + ebx*4 + 0xc], eax
test dword [esi + 0x10], 0x200
je 0x100189ac
or eax, 4
mov dword [ecx + ebx*4 + 0xc], eax
jmp 0x100189ac
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x1000
jmp case.0x100186c3.2
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x800000
mov ecx, dword [esi]
call fcn.100184f0
mov ecx, dword [ebp - 0x20]
or dword [ecx + ebx*4 + 0xc], 0x40
jmp 0x1001899c
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 0x10018926
or dword [edx + ebx*4 + 0xc], 0x20
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x50], 8
jb 0x10018992
mov eax, dword [edx + ebx*4 + 0xc]
test ecx, 0x200
je 0x10018944
or eax, 4
mov dword [edx + ebx*4 + 0xc], eax
jmp 0x10018992
or eax, 8
mov dword [edx + ebx*4 + 0xc], eax
jmp 0x10018992
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 0x10018992
test dword [esi + 0x10], 0x200
je 0x10018988
or ecx, 0x4000004
jmp 0x1001898e
or ecx, 0x4000008
mov dword [edx + ebx*4 + 0xc], ecx
mov ecx, dword [esi]
call fcn.100184f0
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 0x100189dc
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x2000
cmp dword [ecx + ebx*4 + 0x18], 0
jne 0x100189dc
mov ecx, dword [esi]
call fcn.100184f0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ecx + ebx*4 + 0x18], eax
test byte [esi + 0x10], 2
je 0x100189f1
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 0x10018a8b
mov eax, dword [esi + 0x10]
test al, 4
je 0x10018a13
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x80
mov eax, dword [esi + 0x10]
test al, 8
je 0x10018a29
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 0x10018a3e
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x400000
mov eax, dword [esi + 0x10]
test eax, 0x2000000
je 0x10018a53
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x10000000
mov eax, dword [esi + 0x10]
test al, 0x40
je 0x10018a65
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x800000
mov eax, dword [esi + 0x10]
test al, al
jns 0x10018a77
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x1000000
mov eax, dword [esi + 0x10]
test eax, 0x100
je 0x10018acb
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x2000000
jmp 0x10018acb
mov eax, dword [esi + 0xc]
cmp eax, 3
je 0x10018a9d
cmp eax, 5
je 0x10018a9d
cmp eax, 4
jne 0x10018ab1
test byte [esi + 0x10], 4
je 0x10018ab1
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x80
mov eax, dword [esi + 0xc]
cmp eax, 6
jne 0x10018acb
test byte [esi + 0x10], 8
je 0x10018acb
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.0x10018ad3.3
jmp dword [eax*4 + 0x10018c84]
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x10004000
jmp case.0x10018ad3.3
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x20004000
jmp case.0x10018ad3.3
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x800
jmp case.0x10018ad3.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.0x10018ad3.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 0x10018616
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1009ebb0
mov esp, ebp
pop ebp
ret