Function at 0x1001d4e8
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x5c
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x54]
xor ebx, ebx
cmp ecx, ebx
push edi
mov dword [ebp - 8], ebx
je 0x1001d50c
mov ecx, dword [ecx + 0x14]
mov dword [ebp - 4], ecx
jmp 0x1001d50f
mov dword [ebp - 4], ebx
test byte [eax + 0x6c], 8
je 0x1001d5c3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp + 0xc]
push eax
mov ecx, esi
call fcn.1001d2f6
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x30]
call fcn.100181b4
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0x30]
mov eax, dword [ecx]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call dword [eax + 0x84]
and byte [esi + 0xb], 0xdf
cmp eax, dword [esi + 0x18]
mov ecx, dword [esi + 8]
mov dword [esi + 0x28], eax
jle 0x1001d574
cmp eax, dword [esi + 0x1c]
jge 0x1001d574
or ecx, 0x20000000
mov dword [esi + 8], ecx
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
mov ax, word [0x100767a4]
mov word [ebp + 0x10], ax
je 0x1001d58b
push ebx
call fcn.1001d405
push dword [ebp + 0x10]
mov eax, dword [esi + 0xc]
push dword [ebp + 0x10]
mov ecx, dword [eax + 0x30]
push dword [ebp - 0xc]
push dword [ebp - 0x10]
call fcn.100178e6
mov ecx, dword [esi + 0x2c]
cmp ecx, ebx
mov dword [ebp - 8], eax
je 0x1001d5c3
test byte [esi + 0xb], 0x20
jne 0x1001d5bf
cmp eax, ebx
jne 0x1001d5bf
push 1
call fcn.1001d405
jmp 0x1001d5c3
or dword [ecx + 8], 0xffffffff
mov eax, dword [esi + 0xc]
test byte [eax + 0x6c], 1
je 0x1001d610
push ebx
push dword [esi + 0x28]
lea ecx, [ebp - 0x5c]
push eax
call fcn.10044f58
push ebx
lea ecx, [ebp - 0x5c]
call fcn.10043bcc
cmp eax, ebx
je 0x1001d654
cmp eax, 2
jne 0x1001d608
mov ecx, dword [esi + 0xc]
test byte [ecx + 0x6a], 0x20
je 0x1001d654
push ebx
push ebx
push 0x200
lea eax, [ebp - 0x5c]
push eax
call fcn.10022fe0
test eax, eax
jne 0x1001d654
lea ecx, [ebp - 0x5c]
call fcn.1004191b
cmp dword [ebp - 4], ebx
mov edi, dword [ebp + 0x14]
je 0x1001d633
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push dword [ebp + 8]
push ebx
push eax
call dword [ecx + 0x2c]
mov eax, dword [edi]
lea ecx, [eax - 1]
test eax, ecx
je 0x1001d6b4
mov eax, dword [esi + 8]
test eax, eax
mov ecx, 0x40000000
js 0x1001d663
test ecx, eax
je 0x1001d64c
mov edx, dword [esi + 0xc]
test byte [edx + 0x6c], 4
je 0x1001d663
mov dword [edi], ebx
or dword [esi + 0x28], 0xffffffff
jmp 0x1001d6bd
mov edi, dword [ebp + 0x14]
lea ecx, [ebp - 0x5c]
mov dword [edi], ebx
call fcn.1004191b
jmp 0x1001d6b4
test eax, 0x20000000
jne 0x1001d6b2
test ecx, eax
je 0x1001d6b2
mov ecx, dword [ebp + 8]
mov eax, ecx
and eax, 8
je 0x1001d67d
test cl, 4
jne 0x1001d6b2
cmp eax, ebx
jne 0x1001d692
test byte [edi], 2
je 0x1001d68e
mov dword [edi], 2
jmp 0x1001d6b4
cmp eax, ebx
je 0x1001d6a5
test cl, 0x20
je 0x1001d69c
test cl, 4
jne 0x1001d6a1
test byte [edi], 1
jne 0x1001d6aa
cmp eax, ebx
jne 0x1001d6b2
test byte [edi], 1
je 0x1001d6b2
mov dword [edi], 1
jmp 0x1001d6b4
mov dword [edi], ebx
cmp dword [ebp - 8], ebx
je 0x1001d6bd
or byte [edi + 3], 0x80
pop edi
pop esi
pop ebx
leave
ret 0x10