Function at 0x46e16d
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
mov eax, ecx
mov dword [ebp - 0x38], edx
xor edx, edx
mov dword [ebp - 8], eax
push esi
mov ecx, edx
mov dword [ebp - 0x1c], edx
mov eax, dword [eax]
mov ebx, edx
push edi
mov dword [ebp - 0x34], ecx
add eax, 0x40
mov dword [ebp - 0x30], ecx
mov edi, edx
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x24], edx
push ecx
push 8
push 2
mov dword [ebp - 0x18], edx
mov ecx, eax
mov byte [ebp - 3], dl
mov dword [ebp - 0x28], edx
pop edx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0xc], ebx
call fcn.004828cc
mov esi, eax
test esi, esi
js 0x46e542
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x46e542
imul esi, eax, 0x14
push esi
call sym.BootLib.dll_BlMmAllocateHeap
mov edx, eax
mov dword [ebp - 0x1c], edx
test edx, edx
jne 0x46e1ec
mov esi, 0xc0000017
jmp 0x46e542
push esi
xor esi, esi
push esi
push edx
call sym.BootLib.dll_memset
add esp, 0xc
mov dword [ebp - 0x20], esi
lea eax, [ebp - 0x20]
mov dword [ebp - 0x18], esi
push eax
push esi
mov esi, dword [ebp - 0x2c]
mov ecx, esi
push 8
push 2
pop edx
call fcn.0048290e
test eax, eax
js 0x46e4f6
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x14]
push eax
mov ecx, esi
call fcn.004829b0
mov edi, dword [ebp - 0x14]
mov esi, eax
test esi, esi
js 0x46e515
movzx eax, word [edi + 0x22]
mov ecx, 0xff
cmp ax, cx
jbe 0x46e4c8
mov ecx, 0x7fff
cmp ax, cx
ja 0x46e4c8
mov esi, 0x200
test esi, eax
je 0x46e2b0
push dword [ebp - 0x38]
lea edx, [ebp - 0x24]
mov ecx, edi
call fcn.0046e70c
mov edx, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x58]
test edx, edx
jns 0x46e2ab
mov esi, dword [ebp - 0x10]
or ecx, 0x80
mov dword [eax + 0x58], ecx
lea eax, [edi + 8]
or dword [esi], 0x20000000
push dword [0x4bbba0]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x10
push eax
push 0x20
pop ecx
call fcn.0046b0e2
jmp 0x46e2b3
or ecx, esi
mov dword [eax + 0x58], ecx
mov esi, dword [ebp - 0x10]
mov eax, 0x1000
mov byte [ebp - 2], 0
test word [edi + 0x22], ax
je 0x46e321
lea edx, [ebp - 0xc]
mov byte [ebp - 2], 0
mov ecx, edi
call fcn.0046e08e
mov ebx, dword [ebp - 0xc]
test eax, eax
js 0x46e31c
test byte [ebx + 8], 8
mov byte [ebp - 2], 0
je 0x46e30d
cmp word [ebp - 0x30], 0
mov byte [ebp - 2], 0
jne 0x46e30d
xor ecx, ecx
mov dword [esi + 0x10], ebx
inc ecx
xor ebx, ebx
mov dword [ebp - 0x30], ecx
mov byte [ebp - 2], cl
mov ecx, dword [ebp - 8]
mov dword [ebp - 0xc], ebx
or dword [ecx + 0x58], 0x80000
or dword [esi], 0x800000
test ebx, ebx
je 0x46e31c
push ebx
call sym.BootLib.dll_BlMmFreeHeap
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov eax, 0x1000
mov edx, dword [ebp - 8]
mov ecx, 0x100
mov byte [ebp - 1], 0
test word [edi + 0x22], cx
je 0x46e3a3
or dword [edx + 0x58], ecx
or dword [esi], 0x40000000
mov byte [ebp - 1], 0
test word [edi + 0x22], ax
je 0x46e3a3
lea edx, [ebp - 0xc]
mov byte [ebp - 1], 0
mov ecx, edi
call fcn.0046e08e
mov ebx, dword [ebp - 0xc]
test eax, eax
js 0x46e3a0
test byte [ebx + 8], 4
mov edx, dword [ebp - 8]
mov byte [ebp - 1], 0
je 0x46e391
cmp word [ebp - 0x34], 0
mov byte [ebp - 1], 0
jne 0x46e391
xor ecx, ecx
mov dword [esi + 0x10], ebx
or dword [edx + 0x58], 0x8000
inc ecx
xor ebx, ebx
mov dword [ebp - 0x34], ecx
or dword [esi], 0x1000000
mov dword [ebp - 0xc], ebx
mov byte [ebp - 1], cl
test ebx, ebx
je 0x46e3a3
push ebx
call sym.BootLib.dll_BlMmFreeHeap
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov edx, dword [ebp - 8]
movzx eax, word [edi + 0x22]
mov ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, dword [esi]
test eax, 0x400
je 0x46e3ef
test ecx, 0x20000000
jne 0x46e3c1
or dword [edx + 0x58], 0x20
push 0
lea edx, [ebp - 3]
mov ecx, edi
call fcn.00481efe
test eax, eax
js 0x46e3e1
cmp byte [ebp - 3], 0
je 0x46e3e1
mov ecx, dword [ebp - 8]
or dword [ecx + 0x58], 0x4000
or dword [esi], 0x4000000
mov ecx, dword [esi]
movzx eax, word [edi + 0x22]
jmp 0x46e3f2
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov edx, eax
mov dword [ebp - 0x14], edx
test eax, 0x2000
je 0x46e419
mov edx, dword [ebp - 8]
or dword [edx + 0x58], 0x10000
or dword [esi], 0x8000000
mov ecx, dword [esi]
movzx eax, word [edi + 0x22]
jmp 0x46e41c
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov edx, eax
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 8]
test eax, 0x800
je 0x46e440
or dword [edx + 0x58], 0x40
or dword [esi], 0x10000000
mov ecx, dword [esi]
movzx eax, word [edi + 0x22]
jmp 0x46e443
mov eax, dword [ebp - 0x14]
movzx eax, ax
mov edx, 0x1000
test edx, eax
je 0x46e45b
cmp byte [ebp - 1], 0
jne 0x46e45b
cmp byte [ebp - 2], 0
je 0x46e462
test eax, 0x4000
je 0x46e46a
or ecx, 0x2000000
mov dword [esi], ecx
test ecx, 0x34000000
je 0x46e4a5
push 8
pop edx
mov ecx, edi
call fcn.0047ffbe
mov esi, eax
test esi, esi
js 0x46e49a
lea eax, [ebp - 0x28]
mov edx, 0xffff
push eax
push 2
mov ecx, edi
call fcn.0047fb4c
mov esi, eax
test esi, esi
jns 0x46e4a2
cmp esi, 0xc0000225
jne 0x46e515
mov esi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x28]
mov dword [esi + 4], edi
xor edi, edi
and dword [ebp - 0x28], edi
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 0x24]
and dword [ebp - 0x24], edi
inc dword [ebp - 0x18]
mov dword [esi + 0xc], ecx
add esi, 0x14
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], esi
test edi, edi
je 0x46e4d8
mov ecx, edi
call fcn.0047fa60
xor edi, edi
mov dword [ebp - 0x14], edi
mov esi, dword [ebp - 0x2c]
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 0x20]
mov ecx, esi
push 8
push 2
pop edx
call fcn.0048290e
test eax, eax
jns 0x46e221
mov ecx, dword [ebp - 8]
lea esi, [eax + 0x3ffffddb]
mov edx, dword [ebp - 0x18]
mov dword [ecx + 0x5c], edx
mov edx, dword [ebp - 0x1c]
and dword [ebp - 0x1c], 0
neg esi
mov dword [ecx + 0x60], edx
sbb esi, esi
and esi, eax
test edi, edi
je 0x46e520
mov ecx, edi
call fcn.0047fa60
mov ecx, dword [ebp - 0x24]
test ecx, ecx
je 0x46e52c
call fcn.0047fa60
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x46e538
call fcn.0047fa60
test ebx, ebx
je 0x46e542
push ebx
call sym.BootLib.dll_BlMmFreeHeap
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x1c]
call fcn.0046e554
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret