Function at 0x403e16
Capabilities:
Check if file exists
Enumerate processes
Get process image filename

Disassembly:
push 0x480
mov eax, 0x41b832
call fcn.00417909
xor edi, edi
push 0x228
lea eax, [ebp - 0x440]
push edi
push eax
mov esi, ecx
mov dword [ebp - 0x450], edi
mov dword [ebp - 0x444], edi
call sub.MSVCR80.dll_memset
add esp, 0xc
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push 0x206
mov ebx, eax
lea eax, [ebp - 0x216]
push edi
push eax
mov dword [ebp - 0x448], edi
mov word [ebp - 0x218], di
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
cmp eax, 0xffffffff
mov dword [ebp - 0x454], eax
je 0x404054
lea ecx, [ebp - 0x444]
push ecx
push eax
mov dword [ebp - 0x444], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x404036
cmp dword [ebp - 0x43c], ebx
je 0x403ed4
lea eax, [ebp - 0x444]
push eax
push dword [ebp - 0x454]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x403eaa
cmp dword [ebp - 0x43c], ebx
jne 0x404036
push dword [ebp - 0x42c]
push edi
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
cmp eax, edi
mov dword [ebp - 0x448], eax
je 0x404036
push 0x104
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x448]
call sub.PSAPI.DLL_GetProcessImageFileNameW
cmp eax, edi
je 0x404036
lea eax, [ebp - 0x218]
push eax
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_wchar_t_const__]
push edi
push str.HarddiskVolume
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
je 0x404036
push dword [ecx]
mov ecx, esi
push eax
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
push eax
mov ecx, esi
mov dword [ebp - 4], edi
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push edi
push 0x4221f4
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_unsigned_int___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::find_wchar_t_const___unsigned_int_const]
mov ecx, dword [sym.imp.MSVCP80.dll_unsigned_int_const_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::npos]
cmp eax, dword [ecx]
je 0x404036
push dword [ecx]
mov ecx, esi
push eax
lea eax, [ebp - 0x470]
push eax
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::substr_unsigned_int__unsigned_int_]
xor ebx, ebx
inc ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x470]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
push esi
lea eax, [ebp - 0x48c]
push 0x423120
push eax
call dword [sym.imp.MSVCP80.dll_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____cdecl_std::operator_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___wchar_t_const___class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
add esp, 0xc
push eax
mov ecx, esi
mov dword [ebp - 4], 2
call dword [sym.imp.MSVCP80.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t______thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t___const__]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48c]
call dword [sym.imp.MSVCP80.dll_public:_void___thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::destructor_void_]
mov dword [ebp - 0x44c], ebx
cmp dword [esi + 0x18], 8
jb 0x404000
mov eax, dword [esi + 4]
jmp 0x404003
lea eax, [esi + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, ebx
mov dword [ebp - 0x450], eax
je 0x404036
push edi
mov ecx, esi
call dword [sym.imp.MSVCP80.dll_public:_wchar_t____thiscall_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::operator___unsigned_int_]
mov cx, word [ebp - 0x44c]
add word [eax], cx
inc dword [ebp - 0x44c]
cmp dword [ebp - 0x44c], 0x1a
jle 0x403ff5
push dword [ebp - 0x454]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
cmp dword [ebp - 0x448], edi
je 0x404054
push dword [ebp - 0x448]
call esi
mov eax, dword [ebp - 0x450]
call fcn.00417953
ret