Function at 0x1864b
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov ecx, dword [edi + 0x28]
mov eax, dword [ebp + 8]
and dword [ebp - 0x10], 0
and dword [ebp - 0x20], 0
push ebx
mov dword [ebp - 0x18], ecx
mov ecx, dword [eax + 0x10]
push edi
push eax
mov dword [ebp - 0x24], ecx
mov byte [ebp - 1], 0
call fcn.0001acfc
mov ebx, eax
test ebx, ebx
je 0x18a45
movzx eax, word [ebx]
imul eax, eax, 7
add eax, 0xc1818
cmp dword [edi + 0x18], 1
mov dword [ebp - 0x1c], eax
movzx eax, byte [eax]
mov ecx, dword [eax*4 + 0xbc5c0]
mov dword [ebp - 8], ecx
jne 0x186c8
mov eax, dword [edi]
test eax, 0x2000
je 0x186c8
cmp dword [edi + 0x20], 0
jne 0x186c8
test byte [ebp - 0x18], 8
je 0x186c8
push 3
and eax, 0xffffdfff
push edi
mov dword [edi], eax
call fcn.0001a739
mov ecx, dword [ebp - 8]
mov eax, dword [ebp + 8]
mov edx, dword [eax + 0x18]
mov dword [ebp - 0xc], edx
cmp edx, 2
jne 0x186e6
test ecx, 0x800000
jne 0x18a45
cmp edx, edx
je 0x186f2
test ecx, 0x8000000
jne 0x18a45
test cl, 1
je 0x1873d
mov edx, ecx
not edx
test edx, 0x40000000
je 0x1870f
inc dword [eax + 0x10]
dec dword [eax + 0x14]
js 0x18a45
mov edx, dword [eax + 0x10]
movzx edx, byte [edx]
mov dword [ebp - 0x10], edx
test ecx, 0x10000000
je 0x18729
test dl, 0x38
jne 0x18a45
test ecx, 0x100000
je 0x1873d
cmp edx, 0xc0
jb 0x18a45
inc dword [eax + 0x10]
push dword [ebp - 0x18]
mov edx, dword [edi]
mov eax, dword [ebp - 0xc]
push edx
call fcn.00018601
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0xc], eax
test edx, 0x4000
je 0x18769
mov eax, dword [eax*4 + 0xbbc44]
mov dword [ebp - 0xc], eax
push 0x50
push 0
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 0x1c]
mov byte [esi + 0x42], 0xff
mov al, byte [eax + 2]
add esp, 0xc
test al, al
je 0x18848
lea ecx, [ebp - 0x20]
push ecx
push dword [ebp - 0xc]
movzx eax, al
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 0
push eax
push dword [ebp - 8]
push ebx
push esi
push dword [ebp + 8]
call fcn.0001982a
test eax, eax
je 0x18a45
mov eax, dword [ebp - 0x1c]
mov al, byte [eax + 1]
test al, al
je 0x18848
push 0
push dword [ebp - 0xc]
movzx eax, al
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 1
push eax
push dword [ebp - 8]
push ebx
push esi
push dword [ebp + 8]
call fcn.0001982a
test eax, eax
je 0x18a45
test dword [ebp - 8], 0x20000
je 0x18848
movzx eax, byte [ebx + 5]
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 2
push eax
push dword [ebp - 8]
push ebx
push esi
push dword [ebp + 8]
call fcn.0001982a
test eax, eax
je 0x18a45
test dword [ebp - 8], 0x40000
je 0x18848
movzx eax, byte [ebx + 6]
push 0
push dword [ebp - 0xc]
push dword [ebp - 0x14]
push edi
push dword [ebp - 0x10]
push 3
push eax
push dword [ebp - 8]
push ebx
push esi
push dword [ebp + 8]
call fcn.0001982a
test eax, eax
je 0x18a45
test dword [ebp - 8], 0x200000
je 0x1887e
push dword [ebp + 8]
call fcn.0001b0bf
mov ebx, eax
test ebx, ebx
je 0x18a45
movzx eax, word [ebx]
imul eax, eax, 7
add eax, 0xc1818
mov dword [ebp - 0x1c], eax
movzx eax, byte [eax]
mov eax, dword [eax*4 + 0xbc5c0]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 8]
and eax, 0x400000
mov dword [ebp - 0x28], eax
je 0x188ba
dec dword [ecx + 0x14]
js 0x18a45
mov eax, dword [ecx + 0x10]
mov dl, byte [eax]
inc eax
test dword [ebp - 8], 0x20000000
mov byte [ebp - 1], dl
mov dword [ecx + 0x10], eax
je 0x188b1
cmp dl, 0x20
jmp 0x188b4
cmp dl, 8
jae 0x18a45
mov eax, dword [ecx + 0x10]
sub eax, dword [edi + 8]
cmp eax, 0xf
jg 0x18a45
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x20], ecx
jne 0x188e1
test byte [ebp - 8], 0x10
je 0x188e1
or dword [edi + 4], 0x10
or word [esi + 0x18], cx
jmp 0x1890b
test byte [ebp - 8], 0x20
je 0x188f7
test byte [edi], 0x20
je 0x188f7
or dword [edi + 4], 0x20
or word [esi + 0x18], 2
jmp 0x1890b
test byte [ebp - 8], 0x40
je 0x1890b
test byte [edi], 0x40
je 0x1890b
or dword [edi + 4], 0x40
or word [esi + 0x18], 4
mov edx, dword [ebp - 8]
mov eax, 0x14000
and edx, eax
cmp edx, eax
jne 0x18935
or dword [edi + 4], 0x4000
cmp dword [ebp - 0xc], 0
je 0x18977
cmp dword [ebp - 0xc], ecx
jne 0x18a9e
mov ax, word [ebx + 8]
jmp 0x1897b
mov edx, dword [ebp - 8]
mov eax, 0xc000
and edx, eax
cmp edx, eax
jne 0x18954
mov ax, word [ebx + 2]
mov word [esi + 0x1e], ax
or dword [edi + 4], 0x4000
jmp 0x1897f
cmp dword [ebp - 0x14], 0
jne 0x189e0
test dword [ebp - 8], 0x10000
je 0x18977
test dword [ebp - 8], 0x1000008
jne 0x18977
or dword [edi + 4], 0x2000
mov ax, word [ebx + 2]
mov word [esi + 0x1e], ax
mov ecx, dword [ebp - 8]
test ecx, 0x8000
je 0x18996
mov eax, 0x2000
test dword [edi], eax
je 0x18996
or dword [edi + 4], eax
and ecx, 0x20000000
je 0x189bd
mov al, byte [ebx + 4]
test al, 4
je 0x189ab
test byte [ebp - 0x18], 8
jne 0x189b5
test al, 8
je 0x189bd
test byte [ebp - 0x18], 0x10
je 0x189bd
mov ax, word [ebx + 8]
mov word [esi + 0x1e], ax
cmp dword [ebp - 0x28], 0
je 0x18ab7
movzx eax, byte [ebp - 1]
test ecx, ecx
je 0x18aa7
mov ax, word [eax*2 + 0xc24e0]
jmp 0x18aaf
cmp dword [ebp - 0x14], ecx
jne 0x18a1d
mov eax, 0x100
or word [esi + 0x18], ax
test dword [ebp - 8], 0x10000
je 0x18977
or dword [edi + 4], 0x2000
test dword [ebp - 8], 0x80000
je 0x1892f
cmp dword [ebp - 0x10], 0xc0
jae 0x18977
jmp 0x1892f
mov eax, 0x200
or word [esi + 0x18], ax
test dword [ebp - 8], 0x4010000
je 0x18977
test dword [ebp - 8], 0x80000
je 0x18a80
cmp dword [ebp - 0x10], 0xc0
jb 0x18a80
push 0x50
push 0
push esi
call sub.ntoskrnl.exe_memset
mov eax, dword [ebp - 0x24]
mov byte [esi + 0x42], 0xff
mov byte [esi + 0x40], 1
and dword [edi + 4], 0
add esp, 0xc
cmp byte [eax], 0x9b
jne 0x18a78
or byte [esi + 0x45], 8
mov eax, 0x272c
mov word [esi + 0x1e], ax
jmp 0x18b2a
push 3
pop eax
jmp 0x18b2d
test dword [ebp - 8], 0x4000000
je 0x1892f
test byte [ebp - 0x18], 8
je 0x1892f
or dword [edi + 4], 0x2000000
mov ax, word [ebx + 0xa]
jmp 0x1897b
mov ax, word [eax*2 + 0xc24d0]
add ax, word [ebx + 2]
mov word [esi + 0x1e], ax
mov eax, dword [ebp - 0xc]
and eax, 3
shl eax, 0xa
or word [esi + 0x18], ax
test dword [ebp - 8], 0x80000000
movzx eax, word [esi + 0x18]
je 0x18ad8
or eax, 0x40
mov word [esi + 0x18], ax
push edi
call fcn.0001a780
cmp byte [esi + 0x41], 0
mov word [esi + 0x1a], ax
mov eax, dword [ebp - 0x1c]
mov cl, byte [eax + 3]
mov byte [esi + 0x45], cl
jne 0x18af5
mov byte [esi + 0x41], 0xff
mov cl, byte [esi + 0x42]
cmp cl, 0xff
je 0x18b0c
movzx ecx, cl
mov cx, word [ecx*2 + 0xbc470]
or word [esi + 0x1c], cx
mov cl, byte [eax + 4]
mov byte [esi + 0x46], cl
mov cl, byte [eax + 5]
mov byte [esi + 0x47], cl
mov al, byte [eax + 6]
mov byte [esi + 0x48], al
mov eax, dword [ebp + 8]
mov al, byte [eax + 0x10]
sub al, byte [ebp - 0x24]
mov byte [esi + 0x40], al
xor eax, eax
inc eax
pop ebx
leave
ret 4