Function at 0x1001b500
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.1001c890
mov esi, dword [ebp + 8]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x1001b9e2
movzx ecx, word [eax]
lea eax, [ecx*8]
sub eax, ecx
add eax, 0x1004b500
cmp dword [edi + 0x18], 1
mov dword [ebp - 0x20], eax
movzx eax, byte [eax]
mov ebx, dword [eax*4 + 0x10042040]
jne 0x1001b597
mov eax, dword [edi]
test eax, 0x2000
je 0x1001b597
cmp dword [edi + 0x20], 0
jne 0x1001b597
test byte [ebp - 0x1c], 8
je 0x1001b597
and eax, 0xffffdfff
mov dword [edi], eax
mov ecx, dword [edi + 0x38]
cmp ecx, 0xffffffff
je 0x1001b597
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 0x1001b5b5
test ebx, 0x800000
jne 0x1001b9e2
cmp edx, edx
je 0x1001b5c1
test ebx, 0x8000000
jne 0x1001b9e2
test bl, 1
je 0x1001b609
mov eax, ebx
not eax
test eax, 0x40000000
je 0x1001b5dd
inc dword [ecx + 0x10]
dec dword [ecx + 0x14]
js 0x1001b9e2
mov eax, dword [ecx + 0x10]
movzx eax, byte [eax]
mov dword [ebp - 0x10], eax
test ebx, 0x10000000
je 0x1001b5f6
test al, 0x38
jne 0x1001b9e2
test ebx, 0x100000
je 0x1001b609
cmp eax, 0xc0
jb 0x1001b9e2
inc dword [ecx + 0x10]
mov ecx, dword [ebp - 0xc]
mov edx, dword [edi]
push ebx
push dword [ebp - 0x1c]
call fcn.1001b4b0
add esp, 8
mov dword [ebp - 0x18], eax
test edx, 0x4000
je 0x1001b635
mov eax, dword [ebp - 0xc]
mov eax, dword [eax*4 + 0x10041ff0]
mov dword [ebp - 0xc], eax
push 0x40
push 0
push esi
call fcn.100228a0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [esi + 0x32], 0xff
mov al, byte [eax + 2]
test al, al
je 0x1001b724
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.1001d580
add esp, 0x24
test eax, eax
je 0x1001b9e2
mov eax, dword [ebp - 0x20]
mov al, byte [eax + 1]
test al, al
je 0x1001b724
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.1001d580
add esp, 0x24
test eax, eax
je 0x1001b9e2
test ebx, 0x20000
je 0x1001b724
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.1001d580
add esp, 0x24
test eax, eax
je 0x1001b9e2
test ebx, 0x40000
je 0x1001b724
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.1001d580
add esp, 0x24
test eax, eax
je 0x1001b9e2
test ebx, 0x200000
je 0x1001b75f
mov ecx, dword [ebp - 8]
call fcn.1001cca0
mov ecx, eax
test ecx, ecx
je 0x1001b9e2
movzx eax, word [ecx]
lea edx, [eax*8]
sub edx, eax
add edx, 0x1004b500
mov dword [ebp - 0x20], edx
movzx eax, byte [edx]
mov ebx, dword [eax*4 + 0x10042040]
jmp 0x1001b762
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov eax, ebx
and eax, 0x400000
mov dword [ebp - 0x14], eax
je 0x1001b7a1
dec dword [edx + 0x14]
js 0x1001b9e2
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 0x1001b797
cmp byte [ebp - 1], 0x20
jmp 0x1001b79b
cmp byte [ebp - 1], 8
jae 0x1001b9e2
mov eax, dword [edx + 0x10]
sub eax, dword [edi + 8]
cmp eax, 0xf
jg 0x1001b9e2
cmp dword [ebp - 0x24], 1
jne 0x1001b7c6
test bl, 0x10
je 0x1001b7c6
or dword [edi + 4], 0x10
or word [esi + 0x18], 1
jmp 0x1001b7ee
test bl, 0x20
je 0x1001b7db
test byte [edi], 0x20
je 0x1001b7db
or dword [edi + 4], 0x20
or word [esi + 0x18], 2
jmp 0x1001b7ee
test bl, 0x40
je 0x1001b7ee
test byte [edi], 0x40
je 0x1001b7ee
or dword [edi + 4], 0x40
or word [esi + 0x18], 4
mov eax, ebx
and eax, 0x14000
cmp eax, 0x14000
jne 0x1001b819
or dword [edi + 4], 0x4000
mov eax, dword [ebp - 0xc]
test eax, eax
je 0x1001b85a
cmp eax, 1
jne 0x1001b94f
mov ax, word [ecx + 8]
jmp 0x1001b85e
mov eax, ebx
and eax, 0xc000
cmp eax, 0xc000
jne 0x1001b838
mov ax, word [ecx + 2]
mov word [esi + 0x1e], ax
or dword [edi + 4], 0x4000
jmp 0x1001b862
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x1001b8c5
test ebx, 0x10000
je 0x1001b85a
test ebx, 0x1000008
jne 0x1001b85a
or dword [edi + 4], 0x2000
mov ax, word [ecx + 2]
mov word [esi + 0x1e], ax
test ebx, 0x8000
je 0x1001b879
test dword [edi], 0x2000
je 0x1001b879
or dword [edi + 4], 0x2000
mov edx, ebx
and edx, 0x20000000
je 0x1001b8a2
mov al, byte [ecx + 4]
test al, 4
je 0x1001b890
test byte [ebp - 0x1c], 8
jne 0x1001b89a
test al, 8
je 0x1001b8a2
test byte [ebp - 0x1c], 0x10
je 0x1001b8a2
mov ax, word [ecx + 8]
mov word [esi + 0x1e], ax
cmp dword [ebp - 0x14], 0
je 0x1001b968
movzx eax, byte [ebp - 1]
test edx, edx
je 0x1001b958
mov ax, word [eax*2 + 0x10042000]
jmp 0x1001b960
cmp eax, 1
jne 0x1001b908
mov eax, 0x100
or word [esi + 0x18], ax
test ebx, 0x10000
je 0x1001b85a
or dword [edi + 4], 0x2000
test ebx, 0x80000
je 0x1001b813
cmp dword [ebp - 0x10], 0xc0
jae 0x1001b85a
mov ax, word [ecx + 8]
jmp 0x1001b85e
mov eax, 0x200
or word [esi + 0x18], ax
test ebx, 0x4010000
je 0x1001b85a
test ebx, 0x80000
je 0x1001b932
cmp dword [ebp - 0x10], 0xc0
jae 0x1001b9e2
test ebx, 0x4000000
je 0x1001b813
test byte [ebp - 0x1c], 8
je 0x1001b813
or dword [edi + 4], 0x2000000
mov ax, word [ecx + 0xa]
jmp 0x1001b85e
mov ax, word [eax*2 + 0x100421c8]
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 0x1001b97e
or word [esi + 0x18], 0x40
mov ecx, edi
call fcn.1001c040
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 0x1001b99c
mov byte [esi + 0x31], 0xff
mov al, byte [esi + 0x32]
cmp al, 0xff
je 0x1001b9b2
movzx eax, al
mov ax, word [eax*2 + 0x10044d70]
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.100228a0
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 0x1001ba1f
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