Function at 0x46a260
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4da81b
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x2288
call fcn.004c0850
mov eax, dword [0x523f10]
xor eax, esp
mov dword [esp + 0x2284], eax
push esi
push edi
mov eax, dword [0x523f10]
xor eax, esp
push eax
lea eax, [esp + 0x2298]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
push str.psapi.dll
mov dword [esp + 0x38], eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [esp + 0x10], esi
test esi, esi
je 0x46a575
push str.SeDebugPrivilege
call fcn.0046a190
add esp, 4
push str.EnumProcesses
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call esi
mov ecx, dword [esp + 0x10]
push str.EnumProcessModules
push ecx
mov edi, eax
call esi
mov edx, dword [esp + 0x10]
push str.GetModuleFileNameExW
push edx
mov dword [esp + 0x34], eax
call esi
mov dword [esp + 0x38], eax
lea eax, [esp + 0x28]
push eax
push 0x400
lea ecx, [esp + 0x8c]
push ecx
call edi
mov edi, dword [esp + 0x28]
shr edi, 2
mov dword [esp + 0x30], edi
mov dword [esp + 0x18], 0
test edi, edi
jle 0x46a566
lea edx, [esp + 0x84]
mov dword [esp + 0xc], edx
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
push ecx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [esp + 0x24], esi
test esi, esi
je 0x46a550
lea edx, [esp + 0x28]
push edx
push 0x10
lea eax, [esp + 0x4c]
push eax
push esi
call dword [esp + 0x3c]
xor eax, eax
mov dword [esp + 0x14], eax
jmp 0x46a384
mov esi, dword [esp + 0x24]
mov edx, dword [esp + eax*4 + 0x44]
push 0x104
lea ecx, [esp + 0x2088]
push ecx
push edx
push esi
call dword [esp + 0x48]
test eax, eax
jne 0x46a3aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x46a52f
cmp dword [ebp + 0xc], 0
je 0x46a410
lea eax, [esp + 0x2084]
lea edx, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x46a3c0
sub eax, edx
sar eax, 1
mov esi, eax
js 0x46a407
jmp 0x46a3e0
movzx eax, word [esp + esi*2 + 0x2084]
cmp ax, 0x5c
je 0x46a407
movzx eax, ax
push eax
call fcn.004bde74
add esp, 4
sub esi, 1
mov word [esp + esi*2 + 0x2086], ax
jns 0x46a3e0
lea esi, [esp + esi*2 + 0x2086]
jmp 0x46a417
lea esi, [esp + 0x2084]
mov edi, dword [esp + 0x34]
push ecx
mov ecx, esp
mov dword [esp + 0x20], esp
push esi
push edi
push str.Looking_for___s_:__s
push ecx
call fcn.0046bd30
add esp, 0x10
call fcn.00469ea0
add esp, 4
push edi
push esi
call fcn.004b98c4
add esp, 8
test eax, eax
jne 0x46a52f
push ecx
mov esi, esp
mov dword [esp + 0x20], esp
mov dword [esp + 0x20], esi
call fcn.004ab443
xor ecx, ecx
test eax, eax
setne cl
test ecx, ecx
je 0x46a598
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esi], eax
mov ecx, str.____found__adding
mov dword [esp + 0x22a4], 0
test ecx, 0xffff0000
jne 0x46a4ab
mov edx, ecx
movzx edi, dx
push edi
call fcn.004b33b0
test eax, eax
je 0x46a4c5
push edi
push eax
mov ecx, esi
call fcn.00424e6b
jmp 0x46a4c5
push str.____found__adding
call fcn.004b9b7a
add esp, 4
push eax
push str.____found__adding
mov ecx, esi
call fcn.004253ee
mov dword [esp + 0x22a4], 0xffffffff
call fcn.00469ea0
mov eax, dword [ebx + 0xc]
add esp, 4
mov dword [esp + 0x20], 1
test eax, eax
jne 0x46a4eb
xor ecx, ecx
jmp 0x46a4f3
mov ecx, dword [ebx + 0x14]
sub ecx, eax
sar ecx, 2
mov esi, dword [ebx + 0x10]
mov edx, esi
sub edx, eax
sar edx, 2
cmp edx, ecx
jae 0x46a511
mov eax, dword [esp + 0xc]
mov ecx, dword [eax]
mov dword [esi], ecx
add esi, 4
mov dword [ebx + 0x10], esi
jmp 0x46a52f
cmp eax, esi
jbe 0x46a51a
call fcn.004b9cf1
mov eax, dword [ebx]
mov edx, dword [esp + 0xc]
push esi
push eax
push edx
lea eax, [esp + 0x48]
push eax
mov eax, ebx
call fcn.00474850
mov eax, dword [esp + 0x14]
inc eax
cmp eax, 1
mov dword [esp + 0x14], eax
jl 0x46a380
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x30]
mov eax, dword [esp + 0x18]
add dword [esp + 0xc], 4
inc eax
cmp eax, edi
mov dword [esp + 0x18], eax
jl 0x46a343
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x2298]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x2284]
xor ecx, esp
call fcn.004b9212
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00422000
int3