Function at 0x4b1a50
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x54
mov eax, ecx
mov dword [esp + 0x18], edx
push ebx
push esi
push edi
cmp dword [eax], 0
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], 0
jbe 0x4b1d80
mov ebx, dword [ebp + 0xc]
lea edi, [eax + 0x20]
mov dword [esp + 0x10], edi
lea esi, [edi - 0x14]
push esi
push ebx
call sym.ProcessHacker.exe_PhFindEntryHashtable
test eax, eax
jne 0x4b1d61
mov eax, dword [ebx + 8]
push esi
call eax
mov edi, dword [ebx + 0xc]
mov ecx, eax
mov eax, dword [ebx + 0x10]
and ecx, 0x7fffffff
dec edi
mov dword [esp + 0x14], ecx
and edi, ecx
mov eax, dword [eax + edi*4]
cmp eax, 0xffffffff
je 0x4b1aea
mov esi, dword [ebx]
add esi, 8
imul esi, eax
add esi, dword [ebx + 0x18]
cmp dword [esi], ecx
jne 0x4b1ae2
mov eax, dword [esp + 0x10]
add eax, 0xffffffec
push eax
lea eax, [esi + 8]
push eax
mov eax, dword [ebx + 4]
call eax
test al, al
jne 0x4b1b6d
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
jne 0x4b1ab6
mov edx, dword [ebx + 0x20]
cmp edx, 0xffffffff
je 0x4b1b09
mov ecx, dword [ebx]
mov esi, dword [esp + 0x14]
add ecx, 8
imul ecx, edx
add ecx, dword [ebx + 0x18]
mov eax, dword [ecx + 4]
mov dword [ebx + 0x20], eax
jmp 0x4b1b41
mov edx, dword [ebx + 0x24]
cmp edx, dword [ebx + 0x14]
jne 0x4b1b2c
mov edx, dword [ebx + 0xc]
mov ecx, ebx
add edx, edx
call fcn.004a8e10
mov edi, dword [ebx + 0xc]
mov esi, dword [esp + 0x14]
dec edi
mov edx, dword [ebx + 0x24]
and edi, esi
jmp 0x4b1b30
mov esi, dword [esp + 0x14]
mov ecx, dword [ebx]
lea eax, [edx + 1]
add ecx, 8
mov dword [ebx + 0x24], eax
imul ecx, edx
add ecx, dword [ebx + 0x18]
mov dword [ecx], esi
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + edi*4]
mov dword [ecx + 4], eax
mov eax, dword [ebx + 0x10]
mov dword [eax + edi*4], edx
mov edi, dword [esp + 0x10]
push dword [ebx]
lea eax, [edi - 0x14]
push eax
lea eax, [ecx + 8]
push eax
call fcn.004dd620
add esp, 0xc
inc dword [ebx + 0x1c]
jmp 0x4b1b71
mov edi, dword [esp + 0x10]
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b1b76
sub ecx, edx
push ecx
push edi
call sym.ProcessHacker.exe_PhConvertMultiByteToUtf16Ex
mov edx, dword [edi - 0x14]
mov esi, eax
cmp dword [0x54b660], edx
mov eax, dword [edi - 0xc]
sbb ecx, ecx
mov dword [esp + 0x34], edx
movzx edx, word [edi - 2]
and ecx, 3
inc ecx
mov dword [esp + 0x40], eax
mov dword [esp + 0x30], ecx
add edx, edi
mov ecx, dword [edi - 0x10]
mov dword [esp + 0x38], ecx
mov ecx, edx
mov dword [esp + 0x3c], 0
lea eax, [ecx + 1]
mov dword [esp + 0x18], eax
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4b1bc4
sub ecx, dword [esp + 0x18]
push ecx
push edx
call sym.ProcessHacker.exe_PhConvertMultiByteToUtf16Ex
push esi
mov dword [esp + 0x48], eax
call sym.ProcessHacker.exe_PhGetFileName
cmp word [edi - 2], 0
mov dword [esp + 0x48], eax
movzx eax, word [edi - 8]
mov word [esp + 0x50], ax
movzx eax, word [edi - 4]
mov word [esp + 0x52], ax
mov eax, 0xffff
mov dword [esp + 0x4c], esi
mov word [esp + 0x54], ax
mov dword [esp + 0x58], 0
mov dword [esp + 0x5c], 0
jne 0x4b1d05
mov eax, dword [0x54ae78]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4b1c37
mov eax, dword [0x54ae74]
mov dword [esp + 0x14], eax
jmp 0x4b1c78
push 0x7ffe0030
mov dword [esp + 0x1c], 0x7ffe0030
call sym.ProcessHacker.exe_PhCountStringZ
add eax, eax
mov dword [esp + 0x14], eax
cmp word [eax + 0x7ffe002e], 0x5c
jne 0x4b1c60
add eax, 0xfffffffe
mov dword [esp + 0x14], eax
mov dword [0x54ae74], eax
lea ecx, [esp + 0x2c]
xor edx, edx
lock or dword [ecx], edx
mov dword [0x54ae78], 0x7ffe0030
mov edi, dword [esp + 0x44]
push dword [0x54b7b4]
mov esi, dword [edi]
add esi, eax
add esi, dword [0x547ca8]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
push dword [esp + 0x14]
xor edx, edx
mov dword [esp + 0x24], eax
push dword [esp + 0x1c]
lea ecx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov word [ecx + esi], dx
mov esi, dword [eax + 4]
push esi
call fcn.004dd620
push dword [0x547ca8]
add esi, dword [esp + 0x24]
push dword [0x547cac]
push esi
call fcn.004dd620
push dword [edi]
add esi, dword [0x547ca8]
push dword [edi + 4]
push esi
call fcn.004dd620
mov ecx, dword [esp + 0x6c]
add esp, 0x24
add ecx, 0xfffffff8
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b1cf9
call fcn.004a2a20
mov eax, dword [esp + 0x20]
mov edi, dword [esp + 0x10]
mov dword [esp + 0x48], eax
push dword [ebp + 8]
lea eax, [esp + 0x34]
push eax
call dword [esp + 0x2c]
mov ecx, dword [esp + 0x44]
or edx, 0xffffffff
mov byte [esp + 0xf], al
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], edx
dec edx
jne 0x4b1d2c
call fcn.004a2a20
mov ecx, dword [esp + 0x48]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b1d43
call fcn.004a2a20
mov ecx, dword [esp + 0x4c]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x4b1d5a
call fcn.004a2a20
cmp byte [esp + 0xf], 0
je 0x4b1d80
mov eax, dword [esp + 0x1c]
add edi, 0x11c
mov ecx, dword [esp + 0x28]
inc eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
cmp eax, dword [ecx]
jb 0x4b1a81
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8