Function at 0x4336d0
Capabilities:
Get windows directory from kuser_shared_data

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
push ebx
push esi
push edi
push 0xb0
lea eax, [ebp - 0xd0]
mov ebx, edx
mov edi, ecx
mov dword [ebp - 0xc], ebx
push 0
push eax
mov dword [ebp - 0x1c], edi
call fcn.004dce30
add esp, 0xc
lea ecx, [ebp - 4]
mov edx, 0x410
push ebx
call fcn.004ad010
or ebx, 0xffffffff
test eax, eax
js 0x4337b9
mov edi, dword [ebp - 4]
push 0x74
push 4
push dword [0x54b674]
mov dword [ebp - 8], edi
mov dword [ebp - 0x14], 0
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0x74
push 0
push eax
mov dword [ebp - 0x18], eax
call fcn.004dce30
add esp, 0xc
push str.System32_ntdll.dll
push 0x7ffe0030
call sym.ProcessHacker.exe_PhConcatStrings2
push 0
mov esi, eax
lea eax, [ebp - 0x14]
push eax
push 0
push str.LdrSystemDllInitBlock
push dword [esi + 4]
push edi
call sym.ProcessHacker.exe_PhGetProcedureAddressRemote
mov edi, eax
lea ecx, [esi - 8]
mov edx, ebx
lock xadd dword [ecx + 4], edx
dec edx
jne 0x43377d
call fcn.004a2a20
test edi, edi
js 0x4337ad
mov eax, dword [ebp - 0x14]
mov esi, dword [ebp - 0x18]
test eax, eax
je 0x43379c
push 0
push 0x74
push esi
push eax
push dword [ebp - 8]
call dword [sym.imp.ntdll.dll_NtReadVirtualMemory]
mov edi, eax
mov eax, dword [ebp - 0xcc]
test edi, edi
cmovns eax, esi
mov dword [ebp - 0xcc], eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
mov edi, dword [ebp - 0x1c]
push dword [ebp - 0xc]
mov edx, 0x400
lea ecx, [ebp - 4]
call fcn.004ad010
mov esi, eax
test esi, esi
js 0x4338bf
mov ecx, dword [ebp - 4]
lea edx, [ebp - 0x140]
call fcn.0045ed70
test eax, eax
js 0x433896
xor esi, esi
lea edi, [ebp - 0xc0]
mov edx, dword [ebp + esi*4 - 0x140]
test edx, edx
je 0x43381a
lea eax, [ebp - 8]
mov ecx, esi
push eax
lea eax, [ebp - 0xc]
push eax
call fcn.0045f0b0
test al, al
je 0x43381a
mov eax, dword [ebp - 0xc]
mov dword [edi - 4], eax
mov eax, dword [ebp - 8]
mov dword [edi], eax
inc esi
add edi, 0xc
cmp esi, 0xe
jl 0x4337f1
lea eax, [ebp - 0xd0]
push eax
push 0x433960
push dword [ebp - 0x1c]
push 0xd7
push dword [sym.ProcessHacker.exe_PhInstanceHandle]
call dword [sym.imp.USER32.dll_DialogBoxParamW]
lea esi, [ebp - 0xc0]
mov edi, 0xe
mov edi, edi
mov eax, dword [esi - 4]
mov dword [esi - 4], 0
test eax, eax
je 0x433870
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x433870
call fcn.004a2a20
mov eax, dword [esi]
mov dword [esi], 0
test eax, eax
je 0x43388e
lea ecx, [eax - 8]
mov eax, ebx
lock xadd dword [ecx + 4], eax
dec eax
jne 0x43388e
call fcn.004a2a20
add esi, 0xc
sub edi, 1
jne 0x433850
mov eax, dword [ebp - 0xcc]
test eax, eax
je 0x4338af
push eax
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp esi, 0xc0000022
je 0x4338e2
cmp esi, 0xc0000005
je 0x4338e2
mov eax, esi
and eax, 0xfff0000
cmp eax, 0x70000
jne 0x4338ed
movzx eax, si
jmp 0x4338e9
push esi
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
test eax, eax
jne 0x4338f5
push esi
call sym.ProcessHacker.exe_PhGetNtMessage
jmp 0x4338fb
push eax
call sym.ProcessHacker.exe_PhGetWin32Message
mov esi, eax
test esi, esi
jne 0x43391d
push str.Unable_to_open_the_process
push 0x532664
push 0x10
push edi
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0x10
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [esi + 4]
push 0x52304c
push str.Unable_to_open_the_process
push 0xfffe
push 0x20
push edi
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x18
lea ecx, [esi - 8]
lock xadd dword [ecx + 4], ebx
dec ebx
jne 0x43394a
call fcn.004a2a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret