Function at 0x4b14e0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], 8
cmp dword [ebx], 8
mov eax, dword [ebx + 4]
mov dword [esp + 0x14], 0x533820
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 8
jb 0x4b156f
push 0
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x20]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4b156f
mov esi, dword [ebx]
push dword [0x54b7b4]
sub esi, 8
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
mov ecx, dword [ebx]
sub ecx, 8
push ecx
mov ecx, dword [ebx + 4]
add ecx, 8
push ecx
push dword [edi + 4]
call fcn.004dd620
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx], 0x16
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], 0x16
mov dword [esp + 0x1c], str.SystemRoot
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x16
jb 0x4b1619
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4b1619
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhGetSystemRoot
mov eax, dword [ebx]
mov ebx, dword [esp + 0x18]
push dword [0x54b7b4]
lea esi, [ebx - 0x16]
add esi, eax
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
push ebx
push dword [esp + 0x20]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
push dword [edi + 4]
call fcn.004dd620
mov eax, dword [ebp + 8]
add esp, 0xc
mov ecx, dword [eax]
sub ecx, 0x16
push ecx
mov ecx, dword [eax + 4]
add ecx, 0x16
push ecx
mov ecx, dword [edi + 4]
add ecx, ebx
push ecx
call fcn.004dd620
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx], 0x12
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], 0x12
mov dword [esp + 0x1c], str.system32_
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x12
jb 0x4b16ce
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4b16ce
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhGetSystemRoot
mov eax, dword [ebx]
mov ebx, dword [esp + 0x18]
push dword [0x54b7b4]
lea esi, [ebx + 2]
add esi, eax
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
push ebx
push dword [esp + 0x20]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
push dword [edi + 4]
call fcn.004dd620
mov eax, dword [edi + 4]
mov ecx, ebx
shr ecx, 1
mov edx, 0x5c
add esp, 0xc
mov word [eax + ecx*2], dx
mov eax, dword [ebp + 8]
mov ecx, dword [edi + 4]
add ecx, 2
add ecx, ebx
push dword [eax]
push dword [eax + 4]
push ecx
call fcn.004dd620
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx], 0
je 0x4b1786
mov eax, dword [ebx + 4]
cmp word [eax], 0x5c
jne 0x4b1786
push ebx
call sym.ProcessHacker.exe_PhResolveDevicePrefix
test eax, eax
jne 0x4b178c
cmp dword [ebx], 0x10
mov eax, dword [ebx + 4]
mov dword [esp + 0x18], 0x10
mov dword [esp + 0x1c], str.Windows
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0x10
jb 0x4b1786
push 1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x4b1786
mov esi, dword [ebx]
push dword [0x54b7b4]
add esi, 4
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov edi, eax
xor ecx, ecx
lea eax, [edi + 8]
mov dword [edi + 4], eax
mov dword [edi], esi
mov word [eax + esi], cx
mov ecx, dword [edi + 4]
mov ax, word [0x7ffe0030]
mov word [ecx], ax
mov ecx, 0x3a
mov eax, dword [edi + 4]
mov word [eax + 2], cx
push dword [ebx]
mov ecx, dword [edi + 4]
push dword [ebx + 4]
add ecx, 4
push ecx
call fcn.004dd620
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
lock inc dword [ebx - 4]
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4