Function at 0x1001ade0
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
mov eax, ecx
mov dword [ebp - 0x10], 0
mov edi, edx
mov dword [ebp - 8], eax
mov byte [ebp - 1], 0
mov dword [ebp - 0x24], 0
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x28], ecx
mov ecx, eax
call fcn.1001c170
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001b2c2
movzx ecx, word [eax]
lea eax, [ecx*8]
sub eax, ecx
add eax, 0x1004a500
cmp dword [edi + 0x18], 1
mov dword [ebp - 0x20], eax
movzx eax, byte [eax]
mov ebx, dword [eax*4 + 0x10040f50]
jne 0x1001ae77
mov eax, dword [edi]
test eax, 0x2000
je 0x1001ae77
cmp dword [edi + 0x20], 0
jne 0x1001ae77
test byte [ebp - 0x1c], 8
je 0x1001ae77
and eax, 0xffffdfff
mov dword [edi], eax
mov ecx, dword [edi + 0x38]
cmp ecx, 0xffffffff
je 0x1001ae77
mov eax, 1
shl ax, cl
or word [edi + 0x1c], ax
mov ecx, dword [ebp - 8]
mov edx, dword [ecx + 0x18]
mov dword [ebp - 0xc], edx
cmp edx, 2
jne 0x1001ae95
test ebx, 0x800000
jne 0x1001b2c2
cmp edx, edx
je 0x1001aea1
test ebx, 0x8000000
jne 0x1001b2c2
test bl, 1
je 0x1001aee9
mov eax, ebx
not eax
test eax, 0x40000000
je 0x1001aebd
inc dword [ecx + 0x10]
dec dword [ecx + 0x14]
js 0x1001b2c2
mov eax, dword [ecx + 0x10]
movzx eax, byte [eax]
mov dword [ebp - 0x10], eax
test ebx, 0x10000000
je 0x1001aed6
test al, 0x38
jne 0x1001b2c2
test ebx, 0x100000
je 0x1001aee9
cmp eax, 0xc0
jb 0x1001b2c2
inc dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edi]
push ebx
push dword [ebp - 0x1c]
call fcn.1001ad90
add esp, 8
mov dword [ebp - 0x18], eax
test edx, 0x4000
je 0x1001af15
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x10040f04]
mov dword [ebp - 0xc], eax
push 0x40
push 0
push esi
call fcn.10022790
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [esi + 0x32], 0xff
mov al, byte [eax + 2]
test al, al
je 0x1001b004
lea ecx, [ebp - 0x24]
movzx eax, al
push ecx
push dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, esi
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x10]
push 0
push eax
push ebx
push dword [ebp - 0x14]
call fcn.1001ce60
add esp, 0x24
test eax, eax
je 0x1001b2c2
mov eax, dword [ebp - 0x20]
mov al, byte [eax + 1]
test al, al
je 0x1001b004
mov ecx, dword [ebp - 8]
mov edx, esi
push 0
push dword [ebp - 0xc]
movzx eax, al
push dword [ebp - 0x18]
push edi
push dword [ebp - 0x10]
push 1
push eax
push ebx
push dword [ebp - 0x14]
call fcn.1001ce60
add esp, 0x24
test eax, eax
je 0x1001b2c2
test ebx, 0x20000
je 0x1001b004
mov ecx, dword [ebp - 0x14]
mov edx, esi
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x18]
movzx eax, byte [ecx + 5]
push edi
push dword [ebp - 0x10]
push 2
push eax
push ebx
push ecx
mov ecx, dword [ebp - 8]
call fcn.1001ce60
add esp, 0x24
test eax, eax
je 0x1001b2c2
test ebx, 0x40000
je 0x1001b004
mov ecx, dword [ebp - 0x14]
mov edx, esi
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x18]
movzx eax, byte [ecx + 6]
push edi
push dword [ebp - 0x10]
push 3
push eax
push ebx
push ecx
mov ecx, dword [ebp - 8]
call fcn.1001ce60
add esp, 0x24
test eax, eax
je 0x1001b2c2
test ebx, 0x200000
je 0x1001b03f
mov ecx, dword [ebp - 8]
call fcn.1001c580
mov ecx, eax
test ecx, ecx
je 0x1001b2c2
movzx eax, word [ecx]
lea edx, [eax*8]
sub edx, eax
add edx, 0x1004a500
mov dword [ebp - 0x20], edx
movzx eax, byte [edx]
mov ebx, dword [eax*4 + 0x10040f50]
jmp 0x1001b042
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, ebx
and eax, 0x400000
mov dword [ebp - 0x14], eax
je 0x1001b081
dec dword [edx + 0x14]
js 0x1001b2c2
mov eax, dword [edx + 0x10]
mov dl, byte [eax]
inc eax
mov byte [ebp - 1], dl
mov edx, dword [ebp - 8]
mov dword [edx + 0x10], eax
test ebx, 0x20000000
je 0x1001b077
cmp byte [ebp - 1], 0x20
jmp 0x1001b07b
cmp byte [ebp - 1], 8
jae 0x1001b2c2
mov eax, dword [edx + 0x10]
sub eax, dword [edi + 8]
cmp eax, 0xf
jg 0x1001b2c2
cmp dword [ebp - 0x24], 1
jne 0x1001b0a6
test bl, 0x10
je 0x1001b0a6
or dword [edi + 4], 0x10
or word [esi + 0x18], 1
jmp 0x1001b0ce
test bl, 0x20
je 0x1001b0bb
test byte [edi], 0x20
je 0x1001b0bb
or dword [edi + 4], 0x20
or word [esi + 0x18], 2
jmp 0x1001b0ce
test bl, 0x40
je 0x1001b0ce
test byte [edi], 0x40
je 0x1001b0ce
or dword [edi + 4], 0x40
or word [esi + 0x18], 4
mov eax, ebx
and eax, 0x14000
cmp eax, 0x14000
jne 0x1001b0f9
or dword [edi + 4], 0x4000
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1001b13a
cmp eax, 1
jne 0x1001b22f
mov ax, word [ecx + 8]
jmp 0x1001b13e
mov eax, ebx
and eax, 0xc000
cmp eax, 0xc000
jne 0x1001b118
mov ax, word [ecx + 2]
mov word [esi + 0x1e], ax
or dword [edi + 4], 0x4000
jmp 0x1001b142
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1001b1a5
test ebx, 0x10000
je 0x1001b13a
test ebx, 0x1000008
jne 0x1001b13a
or dword [edi + 4], 0x2000
mov ax, word [ecx + 2]
mov word [esi + 0x1e], ax
test ebx, 0x8000
je 0x1001b159
test dword [edi], 0x2000
je 0x1001b159
or dword [edi + 4], 0x2000
mov edx, ebx
and edx, 0x20000000
je 0x1001b182
mov al, byte [ecx + 4]
test al, 4
je 0x1001b170
test byte [ebp - 0x1c], 8
jne 0x1001b17a
test al, 8
je 0x1001b182
test byte [ebp - 0x1c], 0x10
je 0x1001b182
mov ax, word [ecx + 8]
mov word [esi + 0x1e], ax
cmp dword [ebp - 0x14], 0
je 0x1001b248
movzx eax, byte [ebp - 1]
test edx, edx
je 0x1001b238
mov ax, word [eax*2 + 0x10040f10]
jmp 0x1001b240
cmp eax, 1
jne 0x1001b1e8
mov eax, 0x100
or word [esi + 0x18], ax
test ebx, 0x10000
je 0x1001b13a
or dword [edi + 4], 0x2000
test ebx, 0x80000
je 0x1001b0f3
cmp dword [ebp - 0x10], 0xc0
jae 0x1001b13a
mov ax, word [ecx + 8]
jmp 0x1001b13e
mov eax, 0x200
or word [esi + 0x18], ax
test ebx, 0x4010000
je 0x1001b13a
test ebx, 0x80000
je 0x1001b212
cmp dword [ebp - 0x10], 0xc0
jae 0x1001b2c2
test ebx, 0x4000000
je 0x1001b0f3
test byte [ebp - 0x1c], 8
je 0x1001b0f3
or dword [edi + 4], 0x2000000
mov ax, word [ecx + 0xa]
jmp 0x1001b13e
mov ax, word [eax*2 + 0x100410d8]
add ax, word [ecx + 2]
mov word [esi + 0x1e], ax
mov eax, dword [ebp - 0xc]
and eax, 3
shl eax, 0xa
or word [esi + 0x18], ax
test ebx, ebx
jns 0x1001b25e
or word [esi + 0x18], 0x40
mov ecx, edi
call fcn.1001b920
cmp byte [esi + 0x31], 0
mov edx, dword [ebp - 0x20]
mov word [esi + 0x1a], ax
mov al, byte [edx + 3]
mov byte [esi + 0x35], al
jne 0x1001b27c
mov byte [esi + 0x31], 0xff
mov al, byte [esi + 0x32]
cmp al, 0xff
je 0x1001b292
movzx eax, al
mov ax, word [eax*2 + 0x10043c80]
or word [esi + 0x1c], ax
movzx ecx, byte [edx + 4]
mov eax, dword [ebp - 8]
mov byte [esi + 0x36], cl
movzx ecx, byte [edx + 5]
mov byte [esi + 0x37], cl
movzx ecx, byte [edx + 6]
mov edx, dword [ebp - 0x28]
mov byte [esi + 0x38], cl
movzx ecx, byte [eax + 0x10]
mov eax, 1
sub cl, dl
pop edi
mov byte [esi + 0x30], cl
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x40
push 0
push esi
call fcn.10022790
mov edx, dword [ebp - 0x28]
add esp, 0xc
mov byte [esi + 0x32], 0xff
mov byte [esi + 0x30], 1
mov dword [edi + 4], 0
cmp byte [edx], 0x9b
jne 0x1001b2ff
or byte [esi + 0x35], 8
mov eax, 0x272c
pop edi
mov word [esi + 0x1e], ax
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 3
pop ebx
mov esp, ebp
pop ebp
ret