Function at 0x4b5798
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
jne 0x4b534e
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
je 0x4b534e
mov cl, 1
mov byte [eax + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
mov eax, 0xc000009a
jmp 0x4b5826
mov cl, 1
mov byte [eax + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
jmp 0x4b581f
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov esi, dword [ebp + 8]
push 1
push dword [esi + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov ecx, dword [esi + 0x4c]
cmp ecx, 1
lea ebx, [ecx*8 - 4]
jbe 0x4b53a8
mov eax, dword [esi + 0x68]
add eax, 8
dec ecx
mov edx, dword [eax]
movzx edx, byte [edx + 1]
add eax, 8
dec ecx
lea ebx, [ebx + edx*4 + 8]
jne 0x4b5398
push 0x20206553
push ebx
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
mov edi, eax
test edi, edi
jne 0x4b53ce
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5333
mov eax, dword [esi + 0x4c]
dec eax
lea ecx, [ebp + 0xc]
push ecx
push ecx
mov dword [edi], eax
mov eax, dword [esi + 0x4c]
lea ecx, [edi + eax*8 - 4]
push ecx
lea ecx, [edi + 4]
push ecx
mov ecx, dword [esi + 0x68]
push ebx
add ecx, 8
push ecx
dec eax
push eax
call fcn.00495a61
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5817
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov esi, dword [ebp + 8]
push 1
push dword [esi + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov eax, dword [esi + 0x54]
dec eax
lea eax, [eax + eax*2]
push 0x20206553
lea eax, [eax*4 + 0x10]
push eax
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
mov edi, eax
test edi, edi
jne 0x4b5454
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5333
mov eax, dword [esi + 0x54]
mov dword [edi], eax
lea eax, [edi + 4]
push eax
push dword [esi + 0x74]
push dword [esi + 0x54]
call fcn.00507e88
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5817
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov esi, dword [ebp + 8]
push 1
push dword [esi + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x68]
mov eax, dword [ecx + eax*8]
movzx ebx, byte [eax + 1]
push 0x20206553
lea ebx, [ebx*4 + 0xc]
push ebx
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
mov edi, eax
test edi, edi
jne 0x4b54ce
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5333
lea eax, [edi + 4]
mov dword [edi], eax
mov ecx, dword [esi + 0x64]
mov edx, dword [esi + 0x68]
push dword [edx + ecx*8]
add ebx, 0xfffffffc
push eax
push ebx
call sym.ntoskrnl.exe_RtlCopySid
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5817
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov esi, dword [ebp + 8]
push 1
push dword [esi + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov eax, dword [esi + 0x70]
movzx ebx, byte [eax + 1]
push 0x20206553
lea ebx, [ebx*4 + 0xc]
push ebx
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
mov edi, eax
test edi, edi
jne 0x4b5546
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5333
lea eax, [edi + 4]
mov dword [edi], eax
push dword [esi + 0x70]
add ebx, 0xfffffffc
push eax
push ebx
call sym.ntoskrnl.exe_RtlCopySid
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5817
push 4
pop esi
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov ebx, dword [ebp + 8]
push 1
push dword [ebx + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov eax, dword [ebx + 0x7c]
test eax, eax
je 0x4b5595
movzx esi, word [eax + 2]
add esi, 4
push 0x20206553
push esi
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
test eax, eax
mov dword [ebp + 8], eax
jne 0x4b55bc
mov ecx, dword [ebx + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5333
cmp dword [ebx + 0x7c], 0
lea edi, [eax + 4]
je 0x4b55de
mov dword [eax], edi
mov esi, dword [ebx + 0x7c]
movzx ecx, word [esi + 2]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x4b55e1
and dword [eax], 0
mov ecx, dword [ebx + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
jne 0x4b560a
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
je 0x4b560a
mov cl, 1
mov byte [eax + 0x49], 1
call dword [sym.imp.HAL.dll_HalRequestSoftwareInterrupt]
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
jmp 0x4b5824
push 0x20206553
push 0x10
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
test eax, eax
je 0x4b534e
mov esi, dword [ebp + 8]
mov edi, eax
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x4b5687
push 0x20206553
push 4
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
test eax, eax
je 0x4b534e
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 0x80]
jmp 0x4b5685
mov esi, dword [ebp + 8]
cmp dword [esi + 0x80], 2
jne case.0x4b57ad.11
push 0x20206553
push 4
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
test eax, eax
je 0x4b534e
mov ecx, dword [esi + 0x84]
mov dword [eax], ecx
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
jmp 0x4b5824
push 0x20206553
push 0x38
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
mov edi, eax
test edi, edi
je 0x4b534e
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov esi, dword [ebp + 8]
push 1
push dword [esi + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov eax, dword [esi + 0x10]
mov dword [edi], eax
mov eax, dword [esi + 0x14]
mov dword [edi + 4], eax
mov eax, dword [esi + 0x18]
mov dword [edi + 8], eax
mov eax, dword [esi + 0x1c]
mov dword [edi + 0xc], eax
mov eax, dword [esi + 0x28]
mov dword [edi + 0x10], eax
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x14], eax
mov eax, dword [esi + 0x80]
mov dword [edi + 0x18], eax
mov eax, dword [esi + 0x84]
mov dword [edi + 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [edi + 0x20], eax
mov eax, dword [esi + 0x70]
movzx eax, byte [eax + 1]
mov ecx, 0x3ffffffe
sub ecx, eax
mov eax, dword [esi + 0x5c]
lea eax, [eax + ecx*4]
mov ecx, dword [esi + 0x7c]
test ecx, ecx
je 0x4b571e
movzx ecx, word [ecx + 2]
sub eax, ecx
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x60]
mov dword [edi + 0x24], eax
mov eax, dword [esi + 0x4c]
dec eax
mov dword [edi + 0x28], eax
mov eax, dword [esi + 0x54]
mov dword [edi + 0x2c], eax
mov eax, dword [esi + 0x40]
mov dword [edi + 0x30], eax
mov eax, dword [esi + 0x44]
mov dword [edi + 0x34], eax
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
jmp 0x4b5817
push dword [ebp + 0x10]
push dword [ebp + 8]
call sym.ntoskrnl.exe_SeQuerySessionIdToken
jmp 0x4b5824
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
dec eax
cmp eax, 0xb
push esi
push edi
ja case.0x4b57ad.11
jmp dword [eax*4 + 0x4b5763]
mov eax, dword fs:[0x124]
dec dword [eax + 0xd4]
mov esi, dword [ebp + 8]
push 1
push dword [esi + 0x30]
call sym.ntoskrnl.exe_ExAcquireResourceSharedLite
mov eax, dword [esi + 0x68]
mov eax, dword [eax]
movzx ebx, byte [eax + 1]
push 0x20206553
lea ebx, [ebx*4 + 0x10]
push ebx
push 1
call sym.ntoskrnl.exe_ExAllocatePoolWithTag
mov edi, eax
test edi, edi
je 0x4b5325
lea eax, [ebp + 0xc]
push eax
push eax
lea eax, [edi + 8]
push eax
push edi
push ebx
push dword [esi + 0x68]
push 1
call fcn.00495a61
mov ecx, dword [esi + 0x30]
call sym.ntoskrnl.exe_ExReleaseResourceLite
mov eax, dword fs:[0x124]
inc dword [eax + 0xd4]
je 0x4b582d
mov eax, dword [ebp + 0x10]
mov dword [eax], edi
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
lea ecx, [eax + 0x34]
cmp dword [ecx], ecx
jne 0x4b5358
jmp 0x4b581f
mov eax, 0xc0000003
jmp 0x4b5826