Function at 0x10018110
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x100a20a4]
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 0x1001867f
push ebx
mov eax, dword [esi + 0x18]
test eax, eax
je 0x10018190
cmp eax, 0x64
je 0x10018190
cmp eax, 0x65
je 0x10018190
cmp eax, 0x66
je 0x10018190
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 0x1001817d
cmp dword [esi + 0xc], 1
jne 0x1001817d
mov edx, ebx
mov ecx, dword [ebp - 0x2c]
imul eax, edi, 0x4c
add ecx, 0x24
add ecx, eax
call fcn.10021460
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 0x100181dd
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.0x100181f3.2
movzx eax, byte [eax + 0x100186b4]
jmp dword [eax*4 + 0x10018690]
test ecx, ecx
jns 0x10018264
cmp dword [esi + 8], 1
jne 0x10018218
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x200
jmp case.0x100181f3.2
test edi, edi
jne 0x10018228
or dword [edx + 8], 0x8220
mov ecx, dword [edx + 8]
jmp 0x10018236
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.0x100181f3.2
call fcn.10018020
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x100184dc
mov eax, edi
shl eax, 4
sub eax, edi
test cl, 2
je 0x1001828b
or dword [edx + eax*4 + 8], 0x20000
mov ecx, dword [esi]
call fcn.10018020
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x100184dc
or dword [edx + eax*4 + 8], 0x40
jmp case.0x100181f3.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 0x100182b8
or eax, 0x400000
mov dword [ecx + 8], eax
mov eax, dword [ebp - 0x20]
test edi, edi
je 0x100182c7
or dword [eax + ebx*4 + 0xc], 0x10000
test dword [esi + 0x10], 0x200
je 0x100182d5
or dword [eax + ebx*4 + 0xc], 4
mov ecx, dword [esi]
call fcn.10018020
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x100184dc
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 0x10018322
or ecx, 0x10000
mov dword [edx + ebx*4 + 0xc], ecx
test dword [esi + 0x10], 0x200
je 0x10018332
or ecx, 4
mov dword [edx + ebx*4 + 0xc], ecx
mov ecx, dword [esi]
call fcn.10018020
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
jmp 0x100184dc
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.10018020
mov ecx, dword [ebp - 0x20]
mov dword [ecx + ebx*4 + 0x18], eax
mov ecx, dword [esi + 8]
cmp ecx, 6
jbe 0x10018389
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 0x100183e1
or eax, 0x10000
mov dword [ecx + ebx*4 + 0xc], eax
test dword [esi + 0x10], 0x200
je 0x100184dc
or eax, 4
mov dword [ecx + ebx*4 + 0xc], eax
jmp 0x100184dc
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x1000
jmp case.0x100181f3.2
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x800000
mov ecx, dword [esi]
call fcn.10018020
mov ecx, dword [ebp - 0x20]
or dword [ecx + ebx*4 + 0xc], 0x40
jmp 0x100184cc
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 0x10018456
or dword [edx + ebx*4 + 0xc], 0x20
mov ecx, dword [esi + 0x10]
mov eax, dword [ebp - 0x30]
cmp dword [eax + 0x50], 8
jb 0x100184c2
mov eax, dword [edx + ebx*4 + 0xc]
test ecx, 0x200
je 0x10018474
or eax, 4
mov dword [edx + ebx*4 + 0xc], eax
jmp 0x100184c2
or eax, 8
mov dword [edx + ebx*4 + 0xc], eax
jmp 0x100184c2
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 0x100184c2
test dword [esi + 0x10], 0x200
je 0x100184b8
or ecx, 0x4000004
jmp 0x100184be
or ecx, 0x4000008
mov dword [edx + ebx*4 + 0xc], ecx
mov ecx, dword [esi]
call fcn.10018020
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 0x1001850c
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x2000
cmp dword [ecx + ebx*4 + 0x18], 0
jne 0x1001850c
mov ecx, dword [esi]
call fcn.10018020
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x24]
mov dword [ecx + ebx*4 + 0x18], eax
test byte [esi + 0x10], 2
je 0x10018521
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 0x100185bb
mov eax, dword [esi + 0x10]
test al, 4
je 0x10018543
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x80
mov eax, dword [esi + 0x10]
test al, 8
je 0x10018559
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 0x1001856e
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x400000
mov eax, dword [esi + 0x10]
test eax, 0x2000000
je 0x10018583
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x10000000
mov eax, dword [esi + 0x10]
test al, 0x40
je 0x10018595
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x800000
mov eax, dword [esi + 0x10]
test al, al
jns 0x100185a7
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x1000000
mov eax, dword [esi + 0x10]
test eax, 0x100
je 0x100185fb
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x2000000
jmp 0x100185fb
mov eax, dword [esi + 0xc]
cmp eax, 3
je 0x100185cd
cmp eax, 5
je 0x100185cd
cmp eax, 4
jne 0x100185e1
test byte [esi + 0x10], 4
je 0x100185e1
mov eax, dword [ebp - 0x20]
or dword [eax + ebx*4 + 0xc], 0x80
mov eax, dword [esi + 0xc]
cmp eax, 6
jne 0x100185fb
test byte [esi + 0x10], 8
je 0x100185fb
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.0x10018603.3
jmp dword [eax*4 + 0x100187b4]
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x10004000
jmp case.0x10018603.3
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x20004000
jmp case.0x10018603.3
mov eax, edi
shl eax, 4
sub eax, edi
or dword [edx + eax*4 + 8], 0x800
jmp case.0x10018603.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.0x10018603.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 0x10018146
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1009b610
mov esp, ebp
pop ebp
ret