Function at 0x1009add8
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
mov edi, edx
mov dword [ebp - 8], eax
xor edx, edx
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x14], edx
mov byte [ebp - 1], dl
mov ecx, dword [edi + 0x28]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [eax + 0x10]
mov dword [ebp - 0x2c], ecx
mov ecx, eax
mov dword [ebp - 0x28], edx
mov edx, edi
call fcn.100cf63a
mov edx, eax
mov dword [ebp - 0x18], edx
test edx, edx
je 0x1009b0ce
movzx ecx, word [edx]
imul eax, ecx, 7
add eax, 0x1028da18
mov dword [ebp - 0x20], eax
movzx eax, byte [eax]
mov ebx, dword [eax*4 + 0x101f1b18]
movzx eax, word [edx + 2]
mov ecx, eax
and eax, 0x7fff
mov word [edx + 2], ax
and ecx, 0x8000
xor eax, eax
mov dword [ebp - 0x30], ecx
inc eax
cmp dword [edi + 0x18], eax
jne 0x1009ae79
mov eax, dword [edi]
test eax, 0x2000
je 0x1009ae79
cmp dword [edi + 0x20], 0
jne 0x1009ae79
test byte [ebp - 0x1c], 8
je 0x1009ae79
and eax, 0xffffdfff
mov ecx, edi
push 3
pop edx
mov dword [edi], eax
call fcn.100cf15b
mov edx, dword [ebp - 8]
push 2
pop eax
mov ecx, dword [edx + 0x18]
mov dword [ebp - 0x10], ecx
cmp ecx, eax
jne 0x1009ae91
test ebx, 0x800000
jmp 0x1009ae97
test ebx, 0x8000000
jne 0x1009b0ce
test bl, 1
je 0x1009aef0
mov eax, ebx
not eax
test eax, 0x40000000
je 0x1009aec4
mov ecx, dword [edx + 0x14]
inc dword [edx + 0x10]
lea eax, [ecx - 1]
mov dword [edx + 0x14], eax
test ecx, ecx
jle 0x1009b0ce
mov ecx, dword [ebp - 0x10]
mov eax, dword [edx + 0x10]
movzx eax, byte [eax]
mov dword [ebp - 0x14], eax
test ebx, sym.x3_barrier_Win32.dll_Ordinal_5
je 0x1009aedd
test al, 0x38
jne 0x1009b0ce
test ebx, 0x100000
je 0x1009aef0
cmp eax, 0xc0
jb 0x1009b0ce
inc dword [edx + 0x10]
mov eax, ecx
test dword [edi], 0x2000
mov dword [ebp - 0xc], eax
je 0x1009af09
mov eax, dword [eax*4 + 0x101edc5c]
jmp 0x1009af2f
push 2
pop edx
cmp eax, edx
jne 0x1009af37
mov eax, ebx
and eax, 0x3000000
cmp eax, 0x1000000
je 0x1009af34
test dword [edi], 0x2000000
je 0x1009af2c
test byte [ebp - 0x1c], 8
jne 0x1009af34
xor eax, eax
inc eax
mov dword [ebp - 0xc], eax
jmp 0x1009af37
mov dword [ebp - 0xc], edx
test dword [edi], 0x4000
je 0x1009af49
mov ecx, dword [ecx*4 + 0x101ee2f8]
mov dword [ebp - 0x10], ecx
push 0x40
push 0
push esi
call fcn.100e19a0
mov eax, dword [ebp - 0x20]
add esp, 0xc
mov byte [esi + 0x34], 0xff
mov al, byte [eax + 2]
test al, al
je 0x1009b03a
lea ecx, [ebp - 0x28]
movzx eax, al
push ecx
push dword [ebp - 0x10]
mov ecx, dword [ebp - 8]
mov edx, esi
push dword [ebp - 0xc]
push edi
push dword [ebp - 0x14]
push 0
push eax
push ebx
push dword [ebp - 0x18]
call fcn.100d00ef
add esp, 0x24
test eax, eax
je 0x1009b0ce
mov eax, dword [ebp - 0x20]
mov al, byte [eax + 1]
test al, al
je 0x1009b03a
push 0
push dword [ebp - 0x10]
xor ecx, ecx
movzx eax, al
push dword [ebp - 0xc]
inc ecx
mov edx, esi
push edi
push dword [ebp - 0x14]
push ecx
mov ecx, dword [ebp - 8]
push eax
push ebx
push dword [ebp - 0x18]
call fcn.100d00ef
add esp, 0x24
test eax, eax
je 0x1009b0ce
test ebx, 0x20000
je 0x1009b03a
mov ecx, dword [ebp - 0x18]
mov edx, esi
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
movzx eax, byte [ecx + 5]
push edi
push dword [ebp - 0x14]
push 2
push eax
push ebx
push ecx
mov ecx, dword [ebp - 8]
call fcn.100d00ef
add esp, 0x24
test eax, eax
je 0x1009b0ce
test ebx, 0x40000
je 0x1009b03a
mov ecx, dword [ebp - 0x18]
mov edx, esi
push 0
push dword [ebp - 0x10]
push dword [ebp - 0xc]
movzx eax, byte [ecx + 6]
push edi
push dword [ebp - 0x14]
push 3
push eax
push ebx
push ecx
mov ecx, dword [ebp - 8]
call fcn.100d00ef
add esp, 0x24
test eax, eax
je 0x1009b0ce
test ebx, 0x200000
je 0x1009b089
mov edx, dword [ebp - 8]
xor ecx, ecx
inc ecx
mov eax, dword [edx + 0x14]
cmp eax, ecx
jl 0x1009b0ce
mov ecx, dword [edx + 0x10]
dec eax
mov dword [edx + 0x14], eax
lea eax, [ecx + 1]
mov dword [edx + 0x10], eax
movzx edx, byte [ecx]
mov ecx, 0x520
call fcn.100cf401
mov edx, eax
test edx, edx
je 0x1009b0ce
movzx eax, word [edx]
imul eax, eax, 7
add eax, 0x1028da18
mov dword [ebp - 0x20], eax
movzx eax, byte [eax]
mov ebx, dword [eax*4 + 0x101f1b18]
jmp 0x1009b08c
mov edx, dword [ebp - 0x18]
mov eax, ebx
and eax, 0x400000
mov dword [ebp - 0x18], eax
je 0x1009b10f
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 8]
mov ecx, dword [eax + 0x14]
lea eax, [ecx - 1]
mov dword [edi + 0x14], eax
mov edi, dword [ebp - 0x24]
test ecx, ecx
jle 0x1009b0ce
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
mov cl, byte [eax]
inc eax
mov byte [ebp - 1], cl
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], eax
test ebx, 0x20000000
je 0x1009b109
cmp byte [ebp - 1], 0x20
jb 0x1009b112
push 0x40
push 0
push esi
call fcn.100e19a0
mov edx, dword [ebp - 0x2c]
xor ecx, ecx
inc ecx
mov byte [esi + 0x34], 0xff
mov byte [esi + 0x32], cl
add esp, 0xc
and dword [edi + 4], 0
cmp byte [edx], 0x9b
jne 0x1009b459
or byte [esi + 0x37], 8
mov eax, 0x2724
mov word [esi + 0x20], ax
mov eax, ecx
jmp 0x1009b45c
cmp byte [ebp - 1], 8
jmp 0x1009b0cc
mov ecx, dword [ebp - 8]
mov eax, dword [ecx + 0x10]
sub eax, dword [edi + 8]
cmp eax, 0xf
jg 0x1009b0ce
xor eax, eax
inc eax
push 4
pop ecx
cmp dword [ebp - 0x28], eax
jne 0x1009b133
test bl, 0x10
je 0x1009b133
or dword [edi + 4], 0x10
jmp 0x1009b142
mov eax, dword [edi]
and eax, ebx
test al, 0x20
je 0x1009b148
or dword [edi + 4], 0x20
push 2
pop eax
or word [esi + 0x18], ax
jmp 0x1009b154
test al, 0x40
je 0x1009b154
or dword [edi + 4], 0x40
or word [esi + 0x18], cx
mov ecx, 0x14000
mov eax, ebx
and eax, ecx
cmp eax, ecx
jne 0x1009b186
or dword [edi + 4], 0x4000
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x1009b175
movzx eax, word [edx + 2]
jmp 0x1009b1ca
xor ecx, ecx
inc ecx
cmp eax, ecx
jne 0x1009b2dc
movzx eax, word [edx + 8]
jmp 0x1009b1ca
mov ecx, 0xc000
mov eax, ebx
and eax, ecx
cmp eax, ecx
jne 0x1009b1a6
mov ax, word [edx + 2]
lea ecx, [esi + 0x20]
mov word [ecx], ax
or dword [edi + 4], 0x4000
jmp 0x1009b1d0
mov ecx, dword [ebp - 0xc]
test ecx, ecx
jne 0x1009b237
mov eax, ebx
and eax, 0x1010008
cmp eax, 0x10000
jne 0x1009b1c6
or dword [edi + 4], 0x2000
mov ax, word [edx + 2]
lea ecx, [esi + 0x20]
mov word [ecx], ax
test ebx, 0x8000
je 0x1009b1e4
mov eax, 0x2000
test dword [edi], eax
je 0x1009b1e4
or dword [edi + 4], eax
mov eax, ebx
and eax, 0x20000000
mov dword [ebp - 0x28], eax
je 0x1009b20e
mov al, byte [edx + 4]
test al, 4
je 0x1009b1fd
test byte [ebp - 0x1c], 8
jne 0x1009b207
test al, 8
je 0x1009b20e
test byte [ebp - 0x1c], 0x10
je 0x1009b20e
mov ax, word [edx + 8]
mov word [ecx], ax
cmp dword [ebp - 0x18], 0
je 0x1009b2f3
cmp dword [ebp - 0x28], 0
movzx eax, byte [ebp - 1]
movzx edx, word [edx + 2]
je 0x1009b2e5
mov ax, word [eax*2 + 0x101f1ca8]
jmp 0x1009b2ed
movzx eax, word [esi + 0x18]
cmp ecx, 1
jne 0x1009b295
or eax, 0x100
lea ecx, [esi + 0x20]
mov word [esi + 0x18], ax
test ebx, 0x10000
je 0x1009b284
or dword [edi + 4], 0x2000
test ebx, 0x80000
je 0x1009b27b
cmp dword [ebp - 0x14], 0xc0
jb 0x1009b272
movzx eax, word [edx + 2]
jmp 0x1009b276
movzx eax, word [edx + 8]
movzx eax, ax
jmp 0x1009b27f
movzx eax, word [edx + 8]
movzx eax, ax
jmp 0x1009b288
movzx eax, word [edx + 2]
mov edi, ecx
mov word [edi], ax
mov edi, dword [ebp - 0x24]
jmp 0x1009b1d0
or eax, 0x200
mov word [esi + 0x18], ax
test ebx, 0x4010000
je 0x1009b1c6
test ebx, 0x80000
je 0x1009b2bf
cmp dword [ebp - 0x14], 0xc0
jae 0x1009b0ce
test ebx, 0x4000000
je 0x1009b180
test byte [ebp - 0x1c], 8
je 0x1009b180
or dword [edi + 4], 0x2000000
movzx eax, word [edx + 0xa]
jmp 0x1009b1ca
mov ax, word [eax*2 + 0x101f1ce8]
add ax, dx
mov word [ecx], ax
mov ecx, dword [ebp - 0x10]
and ecx, 3
shl ecx, 0xa
or cx, word [esi + 0x18]
movzx eax, cx
mov word [esi + 0x18], cx
test ebx, ebx
jns 0x1009b312
or eax, 0x40
mov word [esi + 0x18], ax
mov ebx, dword [edi + 4]
xor ebx, dword [edi]
test ebx, 0x2000000
je 0x1009b328
xor edx, edx
mov ecx, edi
call fcn.100cf15b
test ebx, 0x1f80
je 0x1009b33c
push 2
pop eax
mov edx, eax
mov ecx, edi
call fcn.100cf15b
test bl, 0x70
je 0x1009b34d
xor eax, eax
mov ecx, edi
lea edx, [eax + 1]
call fcn.100cf15b
test ebx, 0x2000
je 0x1009b35f
push 3
pop edx
mov ecx, edi
call fcn.100cf15b
test ebx, 0x4000
je 0x1009b371
push 4
pop edx
mov ecx, edi
call fcn.100cf15b
mov ax, word [edi + 0x1c]
mov ebx, dword [ebp - 0x20]
mov word [esi + 0x1a], ax
mov eax, dword [ebp - 0x30]
or word [esi + 0x18], ax
cmp byte [esi + 0x33], 0
mov al, byte [ebx + 3]
mov byte [esi + 0x37], al
jne 0x1009b393
mov byte [esi + 0x33], 0xff
mov al, byte [esi + 0x34]
cmp al, 0xff
je 0x1009b3a7
movzx eax, al
mov eax, dword [eax*4 + 0x101eed68]
or dword [esi + 0x1c], eax
mov dl, byte [ebx + 4]
mov al, dl
and al, 2
movzx ecx, al
mov al, dl
and al, 8
add cx, cx
movzx eax, al
or cx, ax
mov al, dl
and al, 0x20
add cx, cx
movzx eax, al
and dl, 0xd5
or cx, ax
movzx eax, dl
shl cx, 6
or cx, ax
mov word [esi + 0x38], cx
mov dl, byte [ebx + 5]
mov al, dl
and al, 2
movzx ecx, al
mov al, dl
and al, 8
add cx, cx
movzx eax, al
or cx, ax
mov al, dl
and al, 0x20
add cx, cx
movzx eax, al
and dl, 0xd5
or cx, ax
movzx eax, dl
shl cx, 6
or cx, ax
mov word [esi + 0x3a], cx
mov cl, byte [ebx + 6]
mov al, cl
and al, 2
movzx edx, al
mov al, cl
and al, 8
add dx, dx
movzx eax, al
or dx, ax
mov al, cl
and al, 0x20
add dx, dx
movzx eax, al
and cl, 0xd5
or dx, ax
movzx ecx, cl
mov eax, dword [ebp - 8]
shl dx, 6
or dx, cx
mov word [esi + 0x3c], dx
mov cl, byte [eax + 0x10]
xor eax, eax
mov edx, dword [ebp - 0x2c]
sub cl, dl
mov byte [esi + 0x32], cl
inc eax
jmp 0x1009b45c
push 3
pop eax
pop edi
pop esi
pop ebx
leave
ret