Function at 0x6535a335
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, ecx
xor edx, edx
push edi
movzx eax, word [esi + 0x14]
movzx ecx, word [esi + 0x16]
add ecx, eax
test eax, eax
mov dword [ebp - 0x10], ecx
jbe 0x6535a368
mov edi, dword [esi + 0x10]
mov ecx, dword [esi + 0x24]
mov ebx, dword [ecx]
add ecx, 4
mov word [ebx + edi + 0x12], dx
inc edx
cmp edx, eax
jb 0x6535a359
xor edx, edx
test eax, eax
mov dword [ebp - 4], edx
jbe 0x6535a447
mov eax, dword [esi + 0x24]
mov ebx, dword [eax + edx*4]
add ebx, dword [esi + 0x10]
movzx eax, word [ebx + 0x12]
cmp eax, edx
jne 0x6535a437
mov al, byte [ebx + 0x10]
lea edi, [ebp - 0x20]
shr eax, 3
and eax, 0xf
movsx ecx, byte [eax + 0x65365b10]
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [esi + 0x20]
mov dword [ebp + ecx*4 - 0x20], ebx
mov eax, dword [eax + edx*4]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x6535a3dd
mov edi, edx
movzx eax, word [esi + 0x16]
movzx ecx, word [esi + 0x14]
push dword [ebp - 0xc]
inc edi
add eax, ecx
push edi
push eax
push dword [esi + 0x20]
call fcn.6535076d
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
jne 0x653709dd
mov eax, dword [esi + 0x1c]
mov edi, dword [ebp - 4]
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
mov dword [ebp - 0xc], eax
je 0x6535a414
movzx eax, word [esi + 0x16]
movzx ecx, word [esi + 0x14]
push dword [ebp - 0xc]
inc edi
add eax, ecx
push edi
push eax
push dword [esi + 0x1c]
call fcn.6535076d
mov edi, eax
add esp, 0x10
cmp edi, 0xffffffff
jne 0x653709f9
mov dword [ebp - 8], 1
lea edi, [ebp - 0x1c]
mov eax, dword [edi]
test eax, eax
jne 0x65370a15
inc dword [ebp - 8]
add edi, 4
cmp dword [ebp - 8], 4
jb 0x6535a41e
mov edx, dword [ebp - 4]
movzx eax, word [esi + 0x14]
inc edx
cmp edx, eax
mov dword [ebp - 4], edx
jb 0x6535a375
mov eax, dword [ebp - 0x10]
xor ebx, ebx
test eax, eax
mov dword [ebp + 8], eax
mov dword [ebp - 4], ebx
jbe 0x6535a477
mov eax, dword [esi + 0x1c]
mov ecx, dword [eax + ebx*4]
cmp ecx, 0xffffffff
je 0x6535a480
mov eax, dword [ebp + 0xc]
xor edx, edx
cmp eax, edx
jne 0x65370ad3
inc ebx
cmp ebx, dword [ebp - 0x10]
mov dword [ebp - 4], ebx
jb 0x6535a456
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
movzx edi, word [ebp + 0x10]
movzx ecx, word [esi + 0x14]
shl edi, 0x10
add edi, ebx
or edi, 0x40000000
cmp ebx, ecx
jb 0x65370a5d
movzx edx, word [esi + 0x16]
push edi
add edx, ecx
push 0
push edx
push eax
call fcn.6535076d
add esp, 0x10
cmp eax, 0xffffffff
jne 0x65370a68
mov eax, dword [esi + 0x1c]
mov dword [eax + ebx*4], edi
movzx eax, word [esi + 0x14]
cmp ebx, eax
jae 0x6535a46e
jmp 0x65370a9f
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push dword [ebp - 4]
push edi
call fcn.653b58f2
test eax, eax
jge 0x6535a3b7
jmp 0x6535a479
lea eax, [ebp - 0x20]
mov ecx, esi
push eax
push dword [ebp - 4]
push edi
call fcn.653b58f2
test eax, eax
jge 0x6535a3ee
jmp 0x6535a479
cmp dword [ebp - 0x20], 0
jne 0x65370af0
movzx ecx, word [ebx + 0x12]
mov dx, word [eax + 2]
cmp eax, ebx
mov word [ebx + 0x12], dx
mov word [eax + 0x12], cx
je 0x6535a428
cmp dword [ebp - 0xc], 0x7d5
je 0x6535a428
push eax
push ebx
push dword [ebp + 8]
mov ecx, esi
call fcn.653b596b
test eax, eax
jge 0x6535a428
jmp 0x6535a479
or edi, 0x20000000
jmp 0x6535a49b
mov eax, dword [ebp + 8]
sub edi, ebx
lea ebx, [eax + edi]
movzx eax, word [esi + 0x16]
movzx ecx, word [esi + 0x14]
push ebx
add eax, ecx
push 0
push eax
push dword [esi + 0x1c]
call fcn.6535076d
add esp, 0x10
cmp eax, 0xffffffff
je 0x65370a94
inc dword [ebp + 8]
inc ebx
jmp 0x65370a70
add edi, dword [ebp + 8]
mov ebx, dword [ebp - 4]
jmp 0x6535a4b7
mov ecx, dword [esi + 0x24]
mov edx, dword [esi + 0x10]
mov eax, dword [ecx + ebx*4]
movzx eax, word [eax + edx + 0x12]
cmp eax, ebx
je 0x6535a46e
mov ebx, dword [esi + 0x1c]
shl eax, 2
mov dword [eax + ebx], edi
mov eax, dword [eax + ecx]
movzx eax, word [eax + edx + 0x12]
cmp eax, dword [ebp - 4]
jne 0x65370ab5
mov ebx, dword [ebp - 4]
jmp 0x6535a46e
mov edi, dword [eax]
push edx
push edx
push edx
push edx
push ecx
push eax
call dword [edi + 0x30]
test eax, eax
jne 0x6535a46e
mov eax, 0x800288c6
jmp 0x6535a479
mov eax, 0x80029c83
jmp 0x6535a479