Function at 0x4222b0
Capabilities:
Inspect section memory permissions

Disassembly:
cmp dword [edi + 4], ebx
jne 0x422261
cmp dword [edi + 0xc], ebx
je 0x42230b
mov esi, dword [edi + 0xc]
add esi, dword [ebp + 0xc]
push esi
call dword [ebp - 0xb8]
cmp eax, ebx
mov dword [ebp - 8], eax
jne 0x422287
push esi
call dword [ebp - 0xc8]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x4224ad
call fcn.00421ca2
push ebp
invalid
je 0x4222fd
jmp 0x4222b7
mov ecx, dword [ebp + 0xc]
add ecx, eax
test eax, 0x80000000
je 0x4222c8
and eax, 0xffff
push eax
jmp 0x4222cc
add ecx, 2
push ecx
push dword [ebp - 8]
push dword [ebp + 8]
call fcn.00421c67
add esp, 0xc
cmp esi, ebx
mov dword [esi], eax
je 0x4224ad
add dword [ebp + 0x10], 4
add esi, 4
call fcn.00421ca2
shl byte [edi + 0xc], 1
scasd eax, dword es:[edi]
mov eax, dword [ebp + 0x10]
mov eax, dword [eax]
cmp eax, ebx
jne 0x4222b4
mov esi, dword [ebp - 0x88]
add edi, 0x14
jmp 0x422253
mov eax, dword [esi + 0xa0]
cmp eax, ebx
je 0x422361
add eax, dword [ebp + 0xc]
cmp dword [eax], ebx
je 0x422361
lea edi, [eax + 8]
mov ecx, dword [eax + 4]
add ecx, eax
cmp edi, ecx
jae 0x42235c
movzx ecx, word [edi]
mov edx, ecx
and edx, 0xf000
cmp edx, 0x3000
jne 0x422350
mov edx, dword [ebp + 0xc]
and ecx, 0xfff
add ecx, dword [ebp + 0xc]
sub edx, dword [esi + 0x34]
add ecx, dword [eax]
add dword [ecx], edx
jmp 0x422358
cmp edx, ebx
jne 0x4224ad
inc edi
inc edi
jmp 0x42231f
add eax, dword [eax + 4]
jmp 0x422318
mov dword [ebp - 8], ebx
jmp 0x42236c
mov esi, dword [ebp - 0x88]
mov ax, word [ebp - 8]
cmp ax, word [esi + 6]
jne 0x422385
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov esi, 0x60000000
jmp 0x4223ad
call fcn.00421ca2
bound ebp, qword [0xb70fb52e]
inc ebp
clc
lea eax, [eax + eax*4]
mov ecx, dword [esi + eax*8 + 0x104]
mov edx, dword [esi + eax*8 + 0x108]
lea eax, [esi + eax*8 + 0xf8]
mov esi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp + 8], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp + 8]
ja 0x422403
mov edx, esi
mov edi, esi
and edx, 0x20000000
and edi, 0x40000000
and esi, 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4223ec
or byte [eax + ecx], 1
cmp edi, ebx
je 0x4223f4
or byte [eax + ecx], 2
cmp esi, ebx
je 0x4223fd
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp + 8]
jbe 0x4223e1
inc dword [ebp - 8]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp - 8]
cmp cx, word [eax + 6]
jbe 0x422366
mov esi, dword [ebp + 0xc]
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x422450
dec eax
je 0x422447
sub eax, 3
je 0x42243e
mov dword [ebp - 4], 0x40
jmp 0x422453
mov dword [ebp - 4], 4
jmp 0x422453
mov dword [ebp - 4], 0x20
jmp 0x422453
mov dword [ebp - 4], ecx
call fcn.00421ca2
dec ecx
stc
xchg edx, eax
mov ebx, 0x40fc7d83
je 0x42247a
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push esi
call dword [ebp - 0xc4]
test eax, eax
je 0x4224ad
add esi, dword [ebp - 0xac]
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x42241f
mov eax, dword [ebp - 0x88]
mov esi, dword [eax + 0x28]
add esi, dword [ebp + 0xc]
call fcn.00421ca2
sal cl, 1
neg ch
push dword [ebp + 0x14]
push 1
push dword [ebp + 0xc]
call esi
mov eax, dword [ebp + 0xc]
jmp 0x4224bb
push 0x8000
push ebx
push dword [ebp + 0xc]
call dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret