Function at 0x417330
Capabilities:
Map section object
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xe4
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov eax, dword [esi + 8]
test eax, eax
je 0x417353
cmp dword [eax], 0
je 0x417353
xor cl, cl
jmp 0x417355
mov cl, 1
test cl, cl
jne 0x417975
push 1
lea ecx, [esp + 0x3c]
mov dword [esp + 0x3c], 8
push ecx
push eax
mov dword [esp + 0x48], 0x5248b8
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x41793d
push 1
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 6
push eax
push dword [esi + 8]
mov dword [esp + 0x50], 0x5248b0
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x41793d
push 1
lea eax, [esp + 0x4c]
mov dword [esp + 0x4c], 0x16
push eax
push dword [esi + 8]
mov dword [esp + 0x58], str.Mapped_file
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x41793d
push 1
lea eax, [esp + 0x54]
mov dword [esp + 0x54], 0x18
push eax
push dword [esi + 8]
mov dword [esp + 0x60], str.Mapped_image
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
jne 0x41793d
push 1
lea eax, [esp + 0x5c]
mov dword [esp + 0x5c], 6
push eax
push dword [esi + 8]
mov dword [esp + 0x68], 0x525648
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x417446
mov edx, dword [esi + 0xc]
test edx, edx
je 0x41742f
mov ecx, ebx
call fcn.00409fd0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unable_to_open_key_because_the_object_is_unnamed.
push 0x10
push ebx
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x64]
mov dword [esp + 0x64], 0xe
push eax
push dword [esi + 8]
mov dword [esp + 0x70], 0x5247fc
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x417547
mov edx, dword [sym.ProcessHacker.exe_ProcessQueryAccess]
xor edi, edi
cmp dword [0x5496ac], edi
je 0x4174b9
push dword [esi]
lea ecx, [esp + 0x2c]
call fcn.004ad010
test eax, eax
js 0x417975
mov edx, dword [esi + 4]
lea eax, [esp + 0xc0]
mov ecx, dword [esp + 0x28]
push edi
push 0x18
push eax
push 4
call fcn.004b4010
push dword [esp + 0x28]
test eax, eax
cmovns edi, dword [esp + 0xd4]
jmp 0x4174f5
push dword [esi + 4]
lea ecx, [esp + 0x30]
push dword [esi]
call fcn.004172a0
test eax, eax
js 0x417975
push 0
push 0x18
lea eax, [esp + 0xe0]
push eax
push 0
push dword [esp + 0x3c]
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
push dword [esp + 0x2c]
test eax, eax
cmovns edi, dword [esp + 0xec]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x417975
push edi
call sym.ProcessHacker.exe__PhReferenceProcessItem_4
mov esi, eax
test esi, esi
je 0x417530
push esi
push 0
push 0x8078
push dword [sym.ProcessHacker.exe_PhMainWndHandle]
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call sym.ProcessHacker.exe_PhDereferenceObject
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.The_process_does_not_exist.
push 0x10
push ebx
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x6c]
mov dword [esp + 0x6c], 0xe
push eax
push dword [esi + 8]
mov dword [esp + 0x78], 0x52568c
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x41781a
push dword [esi + 4]
mov edx, 7
mov dword [esp + 0x18], 0
push dword [esi]
lea ecx, [esp + 0x1c]
mov byte [esp + 0x1a], 0
call fcn.004172a0
mov edi, eax
test edi, edi
jns 0x4175ae
push dword [esi + 4]
mov edx, 5
lea ecx, [esp + 0x18]
push dword [esi]
call fcn.004172a0
mov edi, eax
mov byte [esp + 0x12], 1
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4177fd
push 0
lea ecx, [esp + 0x20]
mov dword [esp + 0x20], 0
push ecx
push 0
push 0
push 0
lea ecx, [esp + 0x34]
mov dword [esp + 0x38], 0x2000000
push ecx
push 0
push 0xffffffffffffffff
push eax
push 0xffffffffffffffff
mov dword [esp + 0x40], 0
mov byte [esp + 0x3b], 0
call sym.ProcessHacker.exe_PhGetHandleInformationEx
or esi, 0xffffffff
test eax, eax
js 0x417625
cmp dword [esp + 0x20], 0
jge 0x417625
mov eax, dword [esp + 0x1c]
mov dword [esp + 0x1c], 0
test eax, eax
je 0x417625
lea ecx, [eax - 8]
mov eax, esi
lock xadd dword [ecx + 4], eax
dec eax
jne 0x417625
call fcn.004a2a20
push 0
push 0x10
lea eax, [esp + 0x80]
push eax
push 0
push dword [esp + 0x24]
call dword [sym.imp.ntdll.dll_NtQuerySection]
mov edi, eax
test edi, edi
js 0x4177db
cmp dword [esp + 0x84], 0
jg 0x417667
mov eax, dword [esp + 0x80]
jl 0x417661
cmp eax, 0x2000000
ja 0x417667
mov dword [esp + 0x24], eax
jmp 0x41766c
mov byte [esp + 0x13], 1
movzx eax, byte [esp + 0x12]
xor eax, 1
lea eax, [eax*2 + 2]
push eax
push 0
push 1
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
push dword [esp + 0x38]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
cmp edi, 0xc000004e
jne 0x4176d5
cmp byte [esp + 0x12], 0
jne 0x4177cd
push 2
push 0
push 1
lea eax, [esp + 0x30]
push eax
push 0
push 0
push 0
lea eax, [esp + 0x34]
push eax
push 0xffffffffffffffff
push dword [esp + 0x38]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov edi, eax
test edi, edi
js 0x4177cd
push 0x20
push 4
push dword [0x54b674]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
cmp byte [esp + 0x13], 0
mov esi, eax
je 0x417706
push str.The_section_size_is_greater_than_32_MB._Only_the_first_32_MB_will_be_available_for_editing.
push 0x30
push ebx
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0xc
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esi + 4], eax
mov eax, dword [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [esp + 0x24]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x1c]
mov dword [esi + 0x10], 0xffffffff
mov dword [esi + 0x14], 0
test eax, eax
je 0x41775e
push dword [eax + 4]
push str.Section__
call sym.ProcessHacker.exe_PhConcatStrings2
jmp 0x4177aa
push dword [0x54b7b4]
push 0x18
call sym.ProcessHacker.exe_PhCreateObject
xor edx, edx
mov dword [esp + 0x20], eax
mov dword [eax], 0xe
lea ecx, [eax + 8]
mov dword [eax + 4], ecx
mov word [ecx + 0xe], dx
mov edx, dword [eax + 4]
mov ecx, dword [0x52568c]
mov dword [edx], ecx
mov eax, dword [0x525690]
mov dword [edx + 4], eax
mov eax, dword [0x525694]
mov dword [edx + 8], eax
mov ax, word [0x525698]
mov word [edx + 0xc], ax
mov eax, dword [esp + 0x20]
push esi
push 0
push 0x8080
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], 1
push dword [sym.ProcessHacker.exe_PhMainWndHandle]
call dword [sym.imp.USER32.dll_PostMessageW]
or esi, 0xffffffff
jmp 0x4177db
push 0
push edi
push str.Unable_to_map_a_view_of_the_section.
push ebx
call sym.ProcessHacker.exe_PhShowStatus
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x4177f3
lea ecx, [eax - 8]
lock xadd dword [ecx + 4], esi
dec esi
jne 0x4177f3
call fcn.004a2a20
push dword [esp + 0x14]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
jns 0x417975
push 0
push edi
push str.Unable_to_query_the_section.
push ebx
call sym.ProcessHacker.exe_PhShowStatus
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 1
lea eax, [esp + 0x74]
mov dword [esp + 0x74], 0xc
push eax
push dword [esi + 8]
mov dword [esp + 0x80], 0x5256c4
call sym.ProcessHacker.exe_PhEqualStringRef
test al, al
je 0x417975
xor edi, edi
mov dword [esp + 0x18], edi
cmp dword [0x5496ac], edi
je 0x4178a0
push dword [esi]
mov edx, dword [sym.ProcessHacker.exe_ProcessQueryAccess]
lea ecx, [esp + 0x34]
call fcn.004ad010
test eax, eax
js 0x417975
mov edx, dword [esi + 4]
lea eax, [esp + 0x88]
mov ecx, dword [esp + 0x30]
push edi
push 0x1c
push eax
push 5
call fcn.004b4010
test eax, eax
js 0x41789a
mov eax, dword [esp + 0x94]
mov edi, dword [esp + 0x90]
mov dword [esp + 0x18], eax
push dword [esp + 0x30]
jmp 0x4178ee
push dword [esi + 4]
mov edx, dword [sym.ProcessHacker.exe_ThreadQueryAccess]
lea ecx, [esp + 0x38]
push dword [esi]
call fcn.004172a0
test eax, eax
js 0x417975
push 0
push 0x1c
lea eax, [esp + 0xac]
push eax
push 0
push dword [esp + 0x44]
call dword [sym.imp.ntdll.dll_NtQueryInformationThread]
test eax, eax
js 0x4178ea
mov eax, dword [esp + 0xb0]
mov edi, dword [esp + 0xac]
mov dword [esp + 0x18], eax
push dword [esp + 0x34]
call dword [sym.imp.ntdll.dll_NtClose]
test edi, edi
je 0x417975
push edi
call sym.ProcessHacker.exe__PhReferenceProcessItem_4
mov edi, eax
test edi, edi
je 0x417530
push edi
push 0
call sym.ProcessHacker.exe__PhCreateProcessPropContext_8
push edi
mov esi, eax
call sym.ProcessHacker.exe_PhDereferenceObject
mov eax, dword [esp + 0x18]
push 0x4172f0
push esi
push 0x808a
mov dword [esi + 0x40], eax
push dword [sym.ProcessHacker.exe_PhMainWndHandle]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
je 0x417965
push str.Make_sure_the_Explorer_executable_file_is_present.
push 0
push dword [eax + 4]
push str.FileBrowseExecutable
push dword [sym.ProcessHacker.exe_PhMainWndHandle]
call sym.ProcessHacker.exe__PhShellExecuteUserString_20
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push str.Unable_to_open_file_location_because_the_object_is_unnamed.
push 0x10
push ebx
call sym.ProcessHacker.exe_PhShowMessage
add esp, 0xc
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret