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

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xcc
mov eax, dword [0x5c7004]
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.004d4ee0
mov esi, eax
test esi, esi
js 0x41e033
mov edi, dword ds:[esp + 0xc]
mov eax, dword [esp + 0x10]
shr edi, 4
mov dword [esp + 0x1c], edi
test edi, edi
je 0x41e022
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.004d4ee0
mov esi, eax
mov dword [esp + 0x3c], esi
test esi, esi
js 0x41e00a
mov esi, dword [esp + 0x18]
cmp dword [esi], 0
je 0x41dff4
lea ebx, [esi + 8]
test ebx, ebx
je 0x41dff0
jmp 0x41dc40
mov eax, dword [ebx + 8]
test eax, eax
je 0x41dfd3
cmp byte [0x5cd02b], 0
mov dword ds:[esp + 0x20], eax
mov dword [esp + 0x24], 0
je 0x41dce5
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 [0x5cd6d8]
mov dword [esp + 0x4c], 0
test eax, eax
je 0x41dcad
push 0
push 0
mov dword [esp + 0x54], eax
lea eax, [esp + 0x48]
push 0x10
push eax
lea eax, [esp + 0x88]
jmp 0x41ddb8
lea eax, [esp + 0x4c]
mov edx, 0x4dd530
mov dword [esp + 0x28], eax
mov ecx, 1
lea eax, [esp + 0x28]
push eax
call fcn.004dd4c0
push 0
push 0
lea eax, [esp + 0x48]
push 0x10
push eax
lea eax, [esp + 0x88]
jmp 0x41ddb8
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 0x41dd40
cmp eax, 0xc0000022
jne 0x41ddd0
cmp byte [0x5cd02b], 0
je 0x41df2e
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 [0x5cd6d8]
mov dword [esp + 0x5c], 0
test eax, eax
je 0x41dd8a
mov dword [esp + 0x5c], eax
jmp 0x41dda6
lea eax, [esp + 0x5c]
mov edx, 0x4dd530
mov dword [esp + 0x2c], eax
mov ecx, 1
lea eax, [esp + 0x2c]
push eax
call fcn.004dd4c0
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 [0x5cd6d4]
call dword [sym.imp.ntdll.dll_NtDeviceIoControlFile]
test eax, eax
js 0x41df2e
push 5
lea eax, [esp + 0x34]
push eax
call sym.ProcessHacker.exe_PhEnumProcessesEx
test eax, eax
js 0x41df1c
mov edi, dword [esp + 0x30]
mov eax, edi
mov edx, dword [ebx + 8]
cmp dword [eax + 0x44], edx
je 0x41df0d
mov ecx, dword [eax]
test ecx, ecx
je 0x41de09
add eax, ecx
jne 0x41ddf6
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 0x41dedb
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 0x41de51
call fcn.004c1f60
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 0x41dea8
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.0041ca20
test al, al
je 0x41dfe8
mov ecx, dword [esp + 0x90]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41df0d
call fcn.004c1f60
jmp 0x41df0d
push 0
lea eax, [esp + 0x90]
mov dword [esp + 0x94], 0
push eax
mov dword [esp + 0x9c], 0
call fcn.0041ca20
test al, al
je 0x41dfe8
push edi
push 0
push dword [0x5cd55c]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
push dword [esp + 0x88]
call dword [sym.imp.ntdll.dll_NtClose]
jmp 0x41dfd3
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 0x41dfaa
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 0x41df6d
call fcn.004c1f60
push 0
lea eax, [esp + 0x9c]
mov dword [esp + 0xa4], 2
push eax
call fcn.0041ca20
test al, al
je 0x41dfe8
mov ecx, dword ds:[esp + 0x9c]
or eax, 0xffffffff
add ecx, 0xfffffff8
lock xadd dword [ecx + 4], eax
dec eax
jne 0x41dfd3
call fcn.004c1f60
jmp 0x41dfd3
push 0
lea eax, [esp + 0x9c]
mov dword [esp + 0xa0], 0
push eax
mov dword [esp + 0xa8], 0
call fcn.0041ca20
test al, al
je 0x41dfe8
mov eax, dword [ebx]
test eax, eax
je 0x41dfe8
lea esp, [esp]
add ebx, eax
jne 0x41dc40
mov esi, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ebx, dword [esp + 0xc]
push esi
push 0
push dword [0x5cd55c]
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 0x41dbd0
mov eax, dword [esp + 0x10]
push eax
push 0
push dword [0x5cd55c]
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.00534c91
mov esp, ebp
pop ebp
ret