Function at 0x41d760
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x5c7004]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
call fcn.004dec20
test eax, eax
jne 0x41d7a3
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x50], 0x200
push 0x200
push 4
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov edi, eax
mov dword [esp + 0x84], 0x140012
lea eax, [esp + 0x84]
mov dword [esp + 0x88], str.REGISTRY
mov dword [esp + 0x74], eax
lea eax, [esp + 0x50]
push eax
push edi
push dword [esp + 0x58]
lea eax, [esp + 0x78]
mov dword [esp + 0x78], 0x18
push eax
mov dword [esp + 0x80], 0
mov dword [esp + 0x88], 0x40
mov dword [esp + 0x8c], 0
mov dword [esp + 0x90], 0
call fcn.004dec20
mov esi, eax
mov ecx, eax
call dword [0x55890c]
call esi
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0x80000005
je 0x41d858
cmp ebx, 0xc0000023
je 0x41d858
cmp ebx, 0xc0000004
jne 0x41d877
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x50]
add eax, eax
mov dword [esp + 0x50], eax
push eax
jmp 0x41d7b0
mov dword ds:[esp + 0x1c], edi
test ebx, ebx
js 0x41db23
cmp dword [edi], 0
mov dword [esp + 0x18], 0
jbe 0x41db0c
add edi, 4
lea esp, [esp]
cmp byte [0x5cd02b], 0
mov eax, dword [edi + 4]
mov esi, dword [edi]
mov dword [esp + 0x38], eax
mov eax, dword [edi + 8]
mov dword [esp + 0x3c], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], 0
push eax
jne 0x41d92b
lea eax, [esp + 0x38]
mov dword [esp + 0x38], 0x18
push eax
push 0x1000
lea eax, [esp + 0x58]
mov dword [esp + 0x44], 0
push eax
mov dword [esp + 0x50], 0
mov dword [esp + 0x4c], 0
mov dword [esp + 0x54], 0
mov dword [esp + 0x58], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
cmp eax, 0xc0000022
jne 0x41d939
cmp byte [0x5cd02b], 0
lea ecx, [ecx]
je 0x41da6b
lea eax, [esp + 0x20]
push eax
mov edx, 0x1000
lea ecx, [esp + 0x50]
call fcn.004dd080
lea esp, [esp]
test eax, eax
js 0x41da6b
push 5
lea eax, [esp + 0x2c]
push eax
call sym.ProcessHacker.exe_PhEnumProcessesEx
test eax, eax
js 0x41da5c
mov ebx, dword [esp + 0x28]
mov eax, ebx
cmp dword [eax + 0x44], esi
je 0x41da4d
mov ecx, dword [eax]
test ecx, ecx
je 0x41d975
add eax, ecx
jne 0x41d962
lea eax, [esp + 0x2c]
mov dword [esp + 0x54], esi
push eax
push dword [esp + 0x50]
call sym.ProcessHacker.exe_PhGetProcessImageFileName
test eax, eax
js 0x41da27
mov esi, dword [esp + 0x2c]
push esi
call sym.ProcessHacker.exe_PhGetFileName
mov dword [esp + 0x58], eax
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41d9b0
call fcn.004c1f60
push 0
push 0x20
lea eax, [esp + 0x94]
mov dword [esp + 0x64], 2
push eax
push 0
push dword [esp + 0x5c]
mov dword [esp + 0xa0], 0x20
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x41d9f7
test byte [esp + 0xa8], 4
mov ecx, 3
mov eax, dword [esp + 0x5c]
cmovne eax, ecx
mov dword [esp + 0x5c], eax
push 0
lea eax, [esp + 0x58]
push eax
call fcn.0041ca20
test al, al
je 0x41db08
mov ecx, dword [esp + 0x58]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41da4d
nop
call fcn.004c1f60
jmp 0x41da4d
push 0
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
push eax
mov dword [esp + 0x64], 0
call fcn.0041ca20
test al, al
je 0x41db08
push ebx
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x4c]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x41daf0
lea eax, [esp + 0x30]
mov dword [esp + 0x60], esi
push eax
push esi
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x41dad0
mov esi, dword [esp + 0x30]
push esi
call sym.ProcessHacker.exe_PhGetFileName
mov dword [esp + 0x64], eax
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41da9f
call fcn.004c1f60
push 0
lea eax, [esp + 0x64]
mov dword [esp + 0x6c], 2
push eax
call fcn.0041ca20
test al, al
je 0x41db08
mov ecx, dword [esp + 0x64]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41daf0
call fcn.004c1f60
jmp 0x41daf0
push 0
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 0
push eax
mov dword [esp + 0x70], 0
call fcn.0041ca20
test al, al
je 0x41db08
mov ecx, dword [esp + 0x18]
add edi, 0xc
mov eax, dword [esp + 0x1c]
inc ecx
mov dword [esp + 0x18], ecx
cmp ecx, dword [eax]
jb 0x41d8a0
mov ebx, dword [esp + 0x10]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov ecx, dword [esp + 0xac]
mov eax, ebx
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00534c91
mov esp, ebp
pop ebp
ret