Function at 0x45f9f0
Capabilities:
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c7f5f
mov eax, dword fs:[0]
push eax
sub esp, 0x49c
mov eax, dword [0x501320]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4a8], ecx
xor eax, eax
mov dword [ebp - 0x4a0], 2
xor ebx, ebx
push 0x206
mov dword [ebp - 0x4a4], ebx
push eax
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push eax
call fcn.004be332
push 0x228
lea eax, [ebp - 0x48c]
mov dword [ebp - 0x490], ebx
push ebx
push eax
call fcn.004be332
add esp, 0x18
lea eax, [ebp - 0x218]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea edi, [ebp - 0x218]
add edi, 0xfffffffe
jmp 0x45fa90
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x45fa90
push 0
mov ecx, 7
mov esi, 0x4eab94
rep movsd dword es:[edi], dword [esi]
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x498], eax
cmp eax, 0xffffffff
jne 0x45fad1
call esi
mov dword [ebp - 0x4a0], eax
mov eax, dword [ebp - 0x498]
lea ecx, [ebp - 0x490]
mov dword [ebp - 0x490], 0x22c
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
jne 0x45faf5
call esi
mov dword [ebp - 0x4a0], eax
mov edi, dword [ebp - 0x498]
jmp 0x45fb00
push dword [ebp - 0x488]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x49c], esi
test esi, esi
je 0x45fd8b
mov edx, dword [ebp - 0x488]
lea ecx, [ebp - 0x230]
call fcn.0045f900
mov dword [ebp - 4], 0
cmp dword [ebp - 0x220], 0
jne 0x45fb82
cmp word [ebp - 0x46c], 0
jne 0x45fb52
xor eax, eax
jmp 0x45fb6f
lea eax, [ebp - 0x46c]
lea edx, [eax + 2]
jmp 0x45fb60
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45fb60
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x46c]
push eax
lea ecx, [ebp - 0x230]
call fcn.004096f0
xor eax, eax
mov dword [ebp - 0x24c], 7
mov dword [ebp - 0x250], 0
mov word [ebp - 0x260], ax
cmp word [ebp - 0x218], ax
jne 0x45fbac
xor ecx, ecx
jmp 0x45fbc4
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x45fbb5
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x260]
call fcn.004096f0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x260]
mov edi, dword [ebp - 0x250]
lea edx, [ebp - 0x230]
or ebx, 1
mov esi, edi
cmp dword [ebp - 0x24c], 8
mov dword [ebp - 0x4a4], ebx
cmovae ecx, dword [ebp - 0x260]
cmp dword [ebp - 0x21c], 8
cmovae edx, dword [ebp - 0x230]
cmp dword [ebp - 0x220], edi
cmovb esi, dword [ebp - 0x220]
test esi, esi
jne 0x45fc40
xor eax, eax
test eax, eax
jne 0x45fc68
mov ecx, dword [ebp - 0x220]
cmp ecx, edi
jae 0x45fc5f
or eax, 0xffffffff
jmp 0x45fc66
mov ax, word [edx]
cmp ax, word [ecx]
jne 0x45fc51
add edx, 2
add ecx, 2
dec esi
jmp 0x45fc23
movzx eax, word [edx]
cmp ax, word [ecx]
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x45fc27
xor eax, eax
cmp ecx, edi
setne al
test eax, eax
sete al
test al, al
jne 0x45fce6
push 0xc
xor eax, eax
mov dword [ebp - 0x234], 7
push str.explorer.exe
lea ecx, [ebp - 0x248]
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
call fcn.004096f0
mov dword [ebp - 4], 2
lea eax, [ebp - 0x248]
push dword [ebp - 0x238]
or ebx, 2
cmp dword [ebp - 0x234], 8
mov dword [ebp - 0x4a4], ebx
cmovae eax, dword [ebp - 0x248]
push eax
push dword [ebp - 0x220]
push ecx
lea ecx, [ebp - 0x230]
call fcn.00408e60
mov byte [ebp - 0x491], 0
test eax, eax
jne 0x45fced
mov byte [ebp - 0x491], 1
test bl, 2
je 0x45fd2a
and ebx, 0xfffffffd
cmp dword [ebp - 0x234], 8
jb 0x45fd0d
push dword [ebp - 0x248]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
mov dword [ebp - 4], 0
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
test bl, 1
je 0x45fd53
and ebx, 0xfffffffe
cmp dword [ebp - 0x24c], 8
jb 0x45fd53
push dword [ebp - 0x260]
call edi
add esp, 4
cmp byte [ebp - 0x491], 0
jne 0x45fda6
push dword [ebp - 0x49c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x21c], 8
jb 0x45fd85
push dword [ebp - 0x230]
call edi
add esp, 4
mov edi, dword [ebp - 0x498]
lea eax, [ebp - 0x490]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x45fb00
jmp 0x45fe26
mov esi, dword [ebp - 0x49c]
lea eax, [ebp - 0x4a4]
push eax
push 2
push esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x45fe0c
lea eax, [ebp - 0x49c]
mov dword [ebp - 0x49c], 0
push eax
push 1
push 2
push 0
push 0xf01ff
push dword [ebp - 0x4a4]
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov ecx, dword [ebp - 0x4a8]
mov eax, dword [ebp - 0x49c]
push dword [ebp - 0x4a4]
mov dword [ebp - 0x4a0], 0
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x21c], 8
jb 0x45fe20
push dword [ebp - 0x230]
call edi
add esp, 4
mov edi, dword [ebp - 0x498]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45fe33
push esi
call ebx
test edi, edi
je 0x45fe3a
push edi
call ebx
mov eax, dword [ebp - 0x4a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004bdb6c
mov esp, ebp
pop ebp
ret