Function at 0x41e8b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x5c
push ebx
push esi
push edi
mov edi, dword [0x5491d0]
push dword [0x54b7b4]
mov esi, dword [edi]
add esi, dword [0x546380]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
mov ebx, eax
xor eax, eax
lea ecx, [ebx + 8]
mov dword [esp + 0x10], ebx
mov dword [ebx + 4], ecx
mov dword [ebx], esi
mov word [ecx + esi], ax
push dword [edi]
push dword [edi + 4]
push dword [ebx + 4]
call fcn.004dd620
mov eax, dword [ebx + 4]
add esp, 0xc
add eax, dword [edi]
push dword [0x546380]
push dword [0x546384]
push eax
call fcn.004dd620
mov edi, dword [0x5491d0]
add esp, 0xc
mov esi, dword [edi]
add esi, dword [0x546360]
push dword [0x54b7b4]
lea eax, [esi + 0xa]
push eax
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov dword [esp + 0xc], eax
lea ecx, [eax + 8]
mov dword [eax], esi
mov dword [eax + 4], ecx
mov word [ecx + esi], dx
push dword [edi]
push dword [edi + 4]
push dword [eax + 4]
call fcn.004dd620
mov eax, dword [edi]
add esp, 0xc
mov edi, dword [esp + 0xc]
push dword [0x546360]
add eax, dword [edi + 4]
push dword [0x546364]
push eax
call fcn.004dd620
add esp, 0xc
push dword [ebx + 4]
call dword [sym.imp.ntdll.dll_RtlDoesFileExists_U]
test al, al
jne 0x41e9b5
push str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x41eb6d
push str.You_will_be_unable_to_use_more_advanced_features__view_details_about_system_processes_or_terminate_malicious_software.
push str.The_Process_Hacker_kernel_driver_kprocesshacker.sys_was_not_found_in_the_application_directory.
push 0xfffe
push 0x20
push 0
call sym.ProcessHacker.exe_PhShowMessage2
add esp, 0x14
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 3
mov byte [esp + 0x1c], 1
mov edx, dword [ebx + 4]
push eax
call fcn.004b3760
mov esi, eax
test esi, esi
js 0x41eb90
push 0
push 0
lea eax, [esp + 0x28]
push eax
push dword [edi + 4]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U_WithStatus]
mov edi, eax
test edi, edi
js 0x41eac1
push 0
push 0
push 0x60
push 1
push 1
push 0x80
lea eax, [esp + 0x38]
mov dword [esp + 0x68], 0x18
mov dword [esp + 0x70], eax
lea eax, [esp + 0x48]
push 0
push eax
lea eax, [esp + 0x70]
mov dword [esp + 0x74], 0
push eax
push 0x120089
lea eax, [esp + 0x3c]
mov dword [esp + 0x84], 0x40
push eax
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
call dword [sym.imp.ntdll.dll_NtCreateFile]
mov edi, eax
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
test edi, edi
js 0x41eac1
mov esi, dword [esp + 0x14]
push 0x400
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
push 0
push 0
push 0x400
mov ebx, eax
lea eax, [esp + 0x34]
push ebx
push eax
push 0
push 0
push 0
push esi
call dword [sym.imp.ntdll.dll_NtReadFile]
push esi
mov edi, eax
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
js 0x41eab2
mov eax, dword [esp + 0x2c]
jmp 0x41eac9
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x14]
test edi, edi
js 0x41eb74
push 0
push 0
push 0xc
mov dword [esp + 0x54], eax
lea eax, [esp + 0x4c]
push eax
push 0x99992007
lea eax, [esp + 0x4c]
mov dword [esp + 0x54], 0x4b4060
push eax
push 0
push 0
push 0
push dword [0x5496ac]
mov dword [esp + 0x6c], ebx
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
mov esi, eax
test esi, esi
js 0x41eb17
mov byte [0x5496b4], 1
jmp 0x41eb31
push str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x41eb31
mov edx, esi
mov ecx, str.Unable_to_verify_the_kernel_driver_signature.
call fcn.0041e7e0
push ebx
push 0
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
or esi, 0xffffffff
lea ecx, [ebx - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41eb5d
call fcn.004a2a20
lea ecx, [edi - 8]
lock xadd dword [ecx + 4], esi
dec esi
jne 0x41eb6d
call fcn.004a2a20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x41eb40
mov edx, edi
mov ecx, str.Unable_to_load_the_kernel_driver_signature.
call fcn.0041e7e0
jmp 0x41eb40
push str.EnableKphWarnings
call sym.ProcessHacker.exe_PhGetIntegerSetting
test eax, eax
je 0x41eb48
lea eax, [esp + 0x40]
push eax
call sym.ProcessHacker.exe_PhGetOwnTokenAttributes
test byte [eax + 4], 1
je 0x41eb48
mov edx, esi
mov ecx, str.Unable_to_load_the_kernel_driver.
call fcn.0041e7e0
jmp 0x41eb48