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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x5ac004]
xor eax, esp
mov dword [esp + 0xc8], eax
push ebx
push esi
push edi
lea eax, [esp + 0xc]
mov dword [esp + 0x10], 0
push eax
xor edx, edx
mov dword [esp + 0x10], 0
lea eax, [esp + 0x14]
push eax
push 0
lea ecx, [edx + 0x15]
call fcn.004c4660
mov esi, eax
test esi, esi
js 0x41b973
mov edi, dword ds:[esp + 0xc]
mov eax, dword [esp + 0x10]
shr edi, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x41b962
mov ebx, eax
mov dword [esp + 0xc], eax
mov edi, edi
mov eax, dword [ebx]
lea edx, [esp + 0xa4]
mov dword [esp + 0xa4], eax
mov ecx, 0x16
mov eax, dword [ebx + 4]
mov dword [esp + 0xa8], eax
mov eax, dword [ebx + 8]
mov dword [esp + 0xac], eax
mov eax, dword [ebx + 0xc]
mov dword [esp + 0xb0], eax
lea eax, [esp + 0x18]
push 0
push eax
push 0x10
call fcn.004c4660
mov esi, eax
mov dword [esp + 0x3c], esi
test esi, esi
js 0x41b94a
mov esi, dword [esp + 0x18]
cmp dword [esi], 0
je 0x41b934
lea ebx, [esi + 8]
test ebx, ebx
je 0x41b930
jmp 0x41b580
mov eax, dword [ebx + 8]
test eax, eax
je 0x41b913
cmp byte [0x5b18bb], 0
mov dword ds:[esp + 0x20], eax
mov dword [esp + 0x24], 0
je 0x41b625
lea eax, [esp + 0x88]
mov dword [esp + 0x44], 0x1000
mov dword [esp + 0x40], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x48], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x41b5ed
push 0
push 0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push 0x10
push eax
lea eax, [esp + 0x88]
jmp 0x41b6f8
lea eax, [esp + 0x4c]
mov edx, 0x4cc3b0
mov dword [esp + 0x28], eax
mov ecx, 1
lea eax, [esp + 0x28]
push eax
call fcn.004cc340
push 0
push 0
lea eax, [esp + 0x48]
push 0x10
push eax
lea eax, [esp + 0x88]
jmp 0x41b6f8
lea eax, [esp + 0x20]
mov dword [esp + 0x60], 0x18
push eax
lea eax, [esp + 0x64]
mov dword [esp + 0x68], 0
push eax
push 0x1000
lea eax, [esp + 0x94]
mov dword [esp + 0x78], 0
push eax
mov dword [esp + 0x78], 0
mov dword [esp + 0x80], 0
mov dword [esp + 0x84], 0
call dword [sym.imp.ntdll.dll_NtOpenProcess]
jmp 0x41b680
cmp eax, 0xc0000022
jne 0x41b710
cmp byte [0x5b18bb], 0
je 0x41b86e
lea eax, [esp + 0x88]
mov dword [esp + 0x54], 0x1000
mov dword [esp + 0x50], eax
lea eax, [esp + 0x20]
mov dword [esp + 0x58], eax
mov eax, dword [0x5b1f40]
mov dword [esp + 0x5c], 0
test eax, eax
je 0x41b6ca
mov dword [esp + 0x5c], eax
jmp 0x41b6e6
lea eax, [esp + 0x5c]
mov edx, 0x4cc3b0
mov dword [esp + 0x2c], eax
mov ecx, 1
lea eax, [esp + 0x2c]
push eax
call fcn.004cc340
push 0
push 0
lea eax, [esp + 0x58]
push 0x10
push eax
lea eax, [esp + 0x90]
push 0x999920cb
push eax
push 0
push 0
push 0
push dword [0x5b1f3c]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x41b86e
push 5
lea eax, [esp + 0x34]
push eax
call sym.ProcessHacker.exe_PhEnumProcessesEx
test eax, eax
js 0x41b85c
mov edi, dword [esp + 0x30]
mov eax, edi
mov edx, dword [ebx + 8]
cmp dword [eax + 0x44], edx
je 0x41b84d
mov ecx, dword [eax]
test ecx, ecx
je 0x41b749
add eax, ecx
jne 0x41b736
lea eax, ds:[esp + 0x34]
mov dword [esp + 0x8c], edx
push eax
push dword [esp + 0x8c]
call sym.ProcessHacker.exe_PhGetProcessImageFileName
test eax, eax
js 0x41b81b
mov esi, dword [esp + 0x34]
push esi
call sym.ProcessHacker.exe_PhGetFileName
mov dword [esp + 0x90], eax
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41b791
call fcn.004b3960
push 0
push 0x20
lea eax, [esp + 0xbc]
mov dword [esp + 0x9c], 2
push eax
push 0
push dword [esp + 0x98]
mov dword [esp + 0xc8], 0x20
call dword [sym.imp.ntdll.dll_NtQueryInformationProcess]
test eax, eax
js 0x41b7e8
test byte [esp + 0xd0], 4
mov ecx, 3
mov eax, dword [esp + 0x94]
cmovne eax, ecx
mov dword [esp + 0x94], eax
push 0
lea eax, [esp + 0x90]
push eax
call fcn.0041a320
test al, al
je 0x41b928
mov ecx, dword [esp + 0x90]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41b84d
call fcn.004b3960
jmp 0x41b84d
push 0
lea eax, [esp + 0x90]
mov dword [esp + 0x94], 0
push eax
mov dword [esp + 0x9c], 0
call fcn.0041a320
test al, al
je 0x41b928
push edi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x88]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x41b913
mov eax, dword ds:[ebx + 8]
lea ecx, [esp + 0x38]
push ecx
push eax
mov dword [esp + 0xa0], eax
call sym.ProcessHacker.exe_PhGetProcessImageFileNameByProcessId
test eax, eax
js 0x41b8ea
mov esi, dword [esp + 0x38]
push esi
call sym.ProcessHacker.exe_PhGetFileName
mov dword [esp + 0x9c], eax
lea ecx, [esi - 8]
or eax, 0xffffffff
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41b8ad
call fcn.004b3960
push 0
lea eax, [esp + 0x9c]
mov dword [esp + 0xa4], 2
push eax
call fcn.0041a320
test al, al
je 0x41b928
mov ecx, dword ds:[esp + 0x9c]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41b913
call fcn.004b3960
jmp 0x41b913
push 0
lea eax, [esp + 0x9c]
mov dword [esp + 0xa0], 0
push eax
mov dword [esp + 0xa8], 0
call fcn.0041a320
test al, al
je 0x41b928
mov eax, dword [ebx]
test eax, eax
je 0x41b928
lea esp, [esp]
add ebx, eax
jne 0x41b580
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc]
push esi
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov esi, dword [esp + 0x3c]
add ebx, 0x10
sub edi, 1
mov dword [esp + 0xc], ebx
mov dword [esp + 0x1c], edi
jne 0x41b510
mov eax, dword [esp + 0x10]
push eax
push 0
push dword [0x5b1dac]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, esi
mov ecx, dword ds:[esp + 0xd4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0051e068
mov esp, ebp
pop ebp
ret