Function at 0x4911b0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 6
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], 0
call fcn.0042c13e
mov ecx, dword [ebp - 0x10]
mov edi, dword [ebp + 8]
mov ebx, ecx
and cl, 0xf
mov esi, 1
shl esi, cl
shr ebx, 4
mov byte [edi + 4], cl
cmp esi, dword [ebp + 0x10]
mov dword [ebp - 0x34], esi
jbe 0x4911f9
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
cmp cl, byte [edi + 5]
jbe 0x491207
push esi
mov byte [edi + 5], cl
call fcn.004e5db5
cmp dword [edi], 0
je 0x4911ee
test esi, esi
mov dword [ebp - 0x1c], 0
jbe 0x4915f3
movzx ecx, bl
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 0xc]
mov ecx, edi
call fcn.0042c132
cmp eax, 0x7fff
ja 0x4912af
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 0x40]
push edx
push ecx
mov ebx, 0x7fff
call dword [0x52239c]
test eax, eax
jne 0x491252
xor esi, esi
mov dword [ebp - 0x28], esi
jmp 0x49125b
mov edx, dword [ebp - 0x3c]
mov esi, dword [ebp - 0x40]
mov dword [ebp - 0x28], edx
push 1
lea edx, [ebp - 0x48]
push edx
xor ecx, ecx
push ecx
xor eax, eax
push eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push ecx
call dword [0x522314]
test eax, eax
jne 0x49127c
mov dword [ebp - 0x28], eax
jmp 0x491285
mov edx, dword [ebp - 0x44]
mov eax, dword [ebp - 0x48]
mov dword [ebp - 0x28], edx
sub esi, eax
cmp esi, ebx
jae 0x49128d
mov ebx, esi
mov ecx, dword [edi]
mov edx, dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x38]
push eax
mov eax, dword [edx]
push ebx
push ecx
push eax
call dword [0x522344]
mov ecx, dword [edi]
push ebx
push ecx
lea esi, [edi + 4]
call fcn.004d7624
mov eax, dword [ebp - 0x30]
sub eax, 0
mov byte [ebp - 0x24], 0
mov byte [ebp - 5], 0
je 0x4912e3
sub eax, 1
jne 0x49130d
push 5
lea edx, [ebp - 0x10]
push edx
call fcn.0042c13e
mov al, byte [ebp - 0x10]
and al, 0x1f
cmp al, 0x1f
mov byte [ebp - 5], al
jne 0x49130d
push 5
lea eax, [ebp - 0x10]
push eax
jmp 0x491300
push 4
lea ecx, [ebp - 0x10]
push ecx
call fcn.0042c13e
mov al, byte [ebp - 0x10]
and al, 0xf
cmp al, 0xf
mov byte [ebp - 5], al
jne 0x49130d
push 5
lea edx, [ebp - 0x10]
push edx
call fcn.0042c13e
mov al, byte [ebp - 0x10]
and al, 0x1f
mov byte [ebp - 0x24], al
mov eax, dword [ebp + 8]
mov cl, byte [eax + 4]
test cl, cl
jne 0x491325
movzx ecx, byte [ebp + 0x14]
mov edi, dword [ebp + 0x10]
sub edi, ecx
mov dword [ebp - 0x18], edi
jmp 0x491343
mov eax, dword [ebp + 0x10]
mov esi, 1
shl esi, cl
cdq
idiv esi
cmp dword [ebp - 0x1c], 0
jne 0x49133e
movzx edx, byte [ebp + 0x14]
sub eax, edx
mov dword [ebp - 0x18], eax
mov edi, eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp + 8]
mov edx, dword [eax]
shl ecx, 0x12
mov dword [ecx + edx], edi
mov dl, byte [ebp - 0x24]
xor esi, esi
xor bl, bl
test dl, dl
mov dword [ebp - 0xc], esi
jne 0x49159d
cmp edi, 0x20
jbe 0x491370
lea eax, [edi - 0x20]
mov dword [ebp - 0x20], eax
jmp 0x49137a
mov dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
test eax, eax
mov dword [ebp - 0x28], 0
jbe 0x4914ab
xor edi, edi
test bl, bl
mov dword [ebp - 0x14], edi
jne 0x4913b7
mov edi, dword [ebp + 0xc]
push 0x20
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0
call fcn.0042c13e
test al, al
je 0x4911ee
mov esi, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov bl, 0x20
test esi, esi
js 0x4913dd
test esi, 0x40000000
jne 0x4913e4
test esi, 0x20000000
jne 0x4913f0
test esi, 0x10000000
jne 0x4913fe
add edi, 1
add esi, esi
add bl, 0xff
jmp 0x49138b
add esi, esi
add bl, 0xff
jmp 0x49140a
add esi, esi
add edi, 1
add esi, esi
add bl, 0xfe
jmp 0x491407
add esi, esi
add esi, esi
add edi, 2
add esi, esi
add bl, 0xfd
jmp 0x491407
add edi, 3
shl esi, 4
add bl, 0xfc
mov dword [ebp - 0x14], edi
mov al, byte [ebp - 5]
xor edx, edx
test al, al
mov dword [ebp - 0xc], esi
je 0x491464
cmp bl, al
jb 0x491431
movzx edx, al
mov ecx, 0x20
sub ecx, edx
mov edx, esi
shr edx, cl
movzx ecx, al
sub bl, al
shl esi, cl
jmp 0x491461
mov edi, dword [ebp + 0xc]
sub al, bl
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], edx
push eax
push ecx
call fcn.0042c13e
movzx edx, byte [ebp - 5]
mov eax, dword [ebp - 0xc]
mov edi, dword [ebp - 0x14]
mov ecx, 0x20
sub ecx, edx
shl eax, cl
or esi, eax
mov al, byte [ebp - 5]
mov edx, esi
shr edx, cl
xor bl, bl
mov dword [ebp - 0xc], esi
mov cl, al
shl edi, cl
xor ecx, ecx
or edi, edx
mov edx, dword [ebp - 0x1c]
mov eax, edi
and edi, 1
shr eax, 1
add eax, edi
cmp edi, 1
mov edi, dword [ebp + 8]
mov edi, dword [edi]
setne cl
shl edx, 0x10
lea ecx, [ecx + ecx - 1]
imul eax, ecx
mov ecx, dword [ebp - 0x28]
add edx, ecx
add ecx, 1
cmp ecx, dword [ebp - 0x20]
mov dword [edi + edx*4 + 4], eax
mov dword [ebp - 0x28], ecx
jb 0x491389
mov eax, dword [ebp - 0x20]
mov edi, dword [ebp - 0x18]
cmp eax, edi
mov dword [ebp - 0x20], eax
jae 0x4915e1
mov dword [ebp - 0x14], 0
lea ecx, [ecx]
test bl, bl
jne 0x4914e8
mov edi, dword [ebp + 0xc]
push 1
lea eax, [ebp - 0xc]
push eax
call fcn.0042c13e
test al, al
je 0x4911ee
mov esi, dword [ebp - 0xc]
cmp esi, 1
je 0x491502
add dword [ebp - 0x14], 1
jmp 0x4914c0
test esi, esi
js 0x4914fa
add dword [ebp - 0x14], 1
add esi, esi
mov dword [ebp - 0xc], esi
add bl, 0xff
jmp 0x4914c0
add esi, esi
mov dword [ebp - 0xc], esi
add bl, 0xff
mov dl, byte [ebp - 5]
xor eax, eax
test dl, dl
je 0x491555
cmp bl, dl
jb 0x491525
movzx edi, dl
mov ecx, 0x20
sub ecx, edi
mov eax, esi
shr eax, cl
mov ecx, edi
sub bl, dl
shl esi, cl
jmp 0x491552
mov edi, dword [ebp + 0xc]
sub dl, bl
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], eax
push edx
push ecx
call fcn.0042c13e
movzx edx, byte [ebp - 5]
mov eax, dword [ebp - 0x28]
mov ecx, 0x20
sub ecx, edx
mov dl, byte [ebp - 5]
shl eax, cl
or esi, eax
mov eax, esi
shr eax, cl
xor bl, bl
mov dword [ebp - 0xc], esi
mov cl, dl
mov edx, dword [ebp - 0x14]
shl edx, cl
xor ecx, ecx
or edx, eax
mov eax, edx
mov edx, dword [ebp - 0x1c]
mov edi, eax
and edi, 1
shr eax, 1
add eax, edi
cmp edi, 1
mov edi, dword [ebp + 8]
mov edi, dword [edi]
setne cl
shl edx, 0x10
lea ecx, [ecx + ecx - 1]
imul eax, ecx
mov ecx, dword [ebp - 0x20]
add edx, ecx
add ecx, 1
cmp ecx, dword [ebp - 0x18]
mov dword [edi + edx*4 + 4], eax
mov dword [ebp - 0x20], ecx
jb 0x4914b6
jmp 0x4915e1
test edi, edi
jbe 0x4915e1
mov al, 0x20
sub al, dl
movzx ebx, al
mov esi, ecx
mov dword [ebp - 0x20], edi
lea ecx, [ecx]
mov eax, dword [ebp - 0x24]
mov edi, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x28]
push ecx
mov dword [ebp - 0x28], 0
call fcn.0042c13e
mov edx, dword [ebp - 0x28]
mov eax, dword [ebp + 8]
mov ecx, ebx
shl edx, cl
add esi, 4
sar edx, cl
sub dword [ebp - 0x20], 1
mov ecx, dword [eax]
mov dword [esi + ecx], edx
jne 0x4915b0
mov eax, dword [ebp - 0x1c]
add eax, 1
cmp eax, dword [ebp - 0x34]
mov dword [ebp - 0x1c], eax
jb 0x491221
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 0x14