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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa4
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0xa0], eax
push ebx
push esi
push edi
call fcn.004f35a0
test eax, eax
jne 0x41b0e3
mov eax, 0xc0000001
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x50], 0x200
push 0x200
push 4
push dword [0x5b1dac]
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.004f35a0
mov esi, eax
mov ecx, eax
call dword [0x5404bc]
call esi
mov ebx, eax
mov dword [esp + 0x10], ebx
cmp ebx, 0x80000005
je 0x41b198
cmp ebx, 0xc0000023
je 0x41b198
cmp ebx, 0xc0000004
jne 0x41b1b7
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, dword [esp + 0x50]
add eax, eax
mov dword [esp + 0x50], eax
push eax
jmp 0x41b0f0
mov dword ds:[esp + 0x1c], edi
test ebx, ebx
js 0x41b463
cmp dword [edi], 0
mov dword [esp + 0x18], 0
jbe 0x41b44c
add edi, 4
lea esp, [esp]
cmp byte [0x5b18bb], 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 0x41b26b
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 0x41b279
cmp byte [0x5b18bb], 0
lea ecx, [ecx]
je 0x41b3ab
lea eax, [esp + 0x20]
push eax
mov edx, 0x1000
lea ecx, [esp + 0x50]
call fcn.004cbf00
lea esp, [esp]
test eax, eax
js 0x41b3ab
push 5
lea eax, [esp + 0x2c]
push eax
call sym.ProcessHacker.exe_PhEnumProcessesEx
test eax, eax
js 0x41b39c
mov ebx, dword [esp + 0x28]
mov eax, ebx
cmp dword [eax + 0x44], esi
je 0x41b38d
mov ecx, dword [eax]
test ecx, ecx
je 0x41b2b5
add eax, ecx
jne 0x41b2a2
lea eax, [esp + 0x2c]
mov dword [esp + 0x54], esi
push eax
push dword [esp + 0x50]
call sym.ProcessHacker.exe_PhGetProcessImageFileName
test eax, eax
js 0x41b367
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 0x41b2f0
call fcn.004b3960
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 0x41b337
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.0041a320
test al, al
je 0x41b448
mov ecx, dword [esp + 0x58]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41b38d
nop
call fcn.004b3960
jmp 0x41b38d
push 0
lea eax, [esp + 0x58]
mov dword [esp + 0x5c], 0
push eax
mov dword [esp + 0x64], 0
call fcn.0041a320
test al, al
je 0x41b448
push ebx
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x4c]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x41b430
lea eax, [esp + 0x30]
mov dword [esp + 0x60], esi
push eax
push esi
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x41b410
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 0x41b3df
call fcn.004b3960
push 0
lea eax, [esp + 0x64]
mov dword [esp + 0x6c], 2
push eax
call fcn.0041a320
test al, al
je 0x41b448
mov ecx, dword [esp + 0x64]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41b430
call fcn.004b3960
jmp 0x41b430
push 0
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 0
push eax
mov dword [esp + 0x70], 0
call fcn.0041a320
test al, al
je 0x41b448
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 0x41b1e0
mov ebx, dword [esp + 0x10]
mov eax, ebx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xa0]
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret
push edi
push 0
push dword [0x5b1dac]
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.0051e068
mov esp, ebp
pop ebp
ret