Function at 0x46a180
Capabilities:
Enumerate process modules
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4861f3
push eax
mov eax, dword [esp + 0x10]
mov dword fs:[0], esp
sub esp, 0x2c0
push ebx
push ebp
push esi
push edi
xor esi, esi
push eax
push esi
mov ebp, ecx
push 0x478
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
cmp ebx, esi
jne 0x46a251
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 0x10]
mov ebx, eax
call fcn.0042e690
mov ecx, 0x1f
xor eax, eax
lea edi, [esp + 0x14d]
mov byte [esp + 0x14c], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x14c]
push 0x80
push ecx
push ebx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2e4], esi
stosb byte es:[edi], al
call fcn.0042e750
lea edx, [esp + 0x14c]
lea eax, [esp + 0x1cc]
push edx
push ebx
push 0x4b41f4
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0x10
lea ecx, [esp + 0x1cc]
push esi
push esi
push ecx
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov dword [esp + 0x2d8], 0xffffffff
call fcn.0042e6c0
xor eax, eax
jmp 0x46a6a7
lea edx, [esp + 0x44]
lea eax, [esp + 0x24]
push edx
push 4
push eax
push ebx
mov dword [esp + 0x34], esi
call sub.PSAPI.DLL_EnumProcessModules
test eax, eax
jne 0x46a286
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
push 0xf00f
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x46a6a7
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x49]
mov byte [esp + 0x48], 0
mov edx, dword [esp + 0x24]
push 0x104
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x4c]
stosw word es:[edi], ax
push ecx
push edx
push ebx
stosb byte es:[edi], al
call sub.PSAPI.DLL_GetModuleFileNameExA
test eax, eax
jne 0x46a2cf
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
push 0xf00f
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x46a6a7
cmp byte [esp + 0x48], 0x5c
jne 0x46a39c
push 4
lea eax, [esp + 0x4c]
push 0x4b41ec
push eax
call dword [sym.imp.MSVCRT.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
jne 0x46a318
lea edi, [esp + 0x4c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x48]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
push 0xc
lea ecx, [esp + 0x4c]
push str.Systemroot_
push ecx
call dword [sym.imp.MSVCRT.dll__mbsnbicmp]
add esp, 0xc
test eax, eax
jne 0x46a39c
lea edx, [esp + 0x1cc]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea edi, [esp + 0x53]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1cc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x48]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x1cc]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor esi, esi
mov edi, dword [esp + 0x2e0]
push edi
call fcn.00446410
add esp, 4
cmp eax, esi
jne 0x46a3cb
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
push esi
push 0xf00f
call sub.MFC42.DLL_AfxMessageBox_1
xor eax, eax
jmp 0x46a6a7
push eax
mov dword [ebp + 0xa00], esi
mov dword [ebp + 0x9fc], ebx
mov dword [ebp + 0xa08], eax
mov dword [ebp + 0xa04], edi
call fcn.00446380
add esp, 4
lea ecx, [esp + 0x20]
add eax, 0x30
mov dword [esp + 0x20], esi
push esi
push 4
push ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
mov eax, dword [esp + 0x20]
cmp eax, esi
jne 0x46a41b
push ebx
lea ecx, [ebp + 0x85c]
call fcn.004274e0
mov dword [esp + 0x20], eax
lea edx, [esp + 0x1c]
push eax
push edx
mov ecx, ebp
call fcn.0046b720
mov ebx, 1
lea ecx, [esp + 0x34]
mov dword [esp + 0x2d8], ebx
call sub.MFC42.DLL_CFile::CFile
push esi
lea eax, [esp + 0x4c]
push 0x20
push eax
lea ecx, [esp + 0x40]
mov byte [esp + 0x2e4], 2
call sub.MFC42.DLL_CFile::Open
test eax, eax
jne 0x46a4c7
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_5
lea ecx, [esp + 0x48]
lea edx, [esp + 0x10]
push ecx
push 0xf065
push edx
mov byte [esp + 0x2e4], 3
call sub.MFC42.DLL_AfxFormatString1
mov eax, dword [esp + 0x10]
push esi
push esi
push eax
call sub.MFC42.DLL_AfxMessageBox
lea ecx, [esp + 0x10]
mov byte [esp + 0x2d8], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x2d8], bl
call fcn.0047e000
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2d8], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x46a6a7
lea ecx, [esp + 0x34]
call sub.MFC42.DLL_CFile::Close
lea edi, [ebp + 0xfd8]
push ebx
mov ecx, edi
call fcn.0046f0e0
lea ecx, [esp + 0x48]
push 0x2e
push ecx
mov dword [ebp + 0xa14], esi
call dword [sym.imp.MSVCRT.dll__mbschr]
lea edx, [esp + 0x50]
add esp, 8
sub eax, edx
lea ecx, [esp + 0x18]
push eax
lea eax, [esp + 0x4c]
push eax
call sub.MFC42.DLL_CString::CString_3
push str..dbp
lea ecx, [esp + 0x1c]
mov byte [esp + 0x2dc], 4
call sub.MFC42.DLL_CString::operator
mov ecx, dword [esp + 0x18]
push ecx
mov ecx, edi
call fcn.0046f990
test eax, eax
je 0x46a54e
mov eax, dword [ebp + 0x9f8]
lea edx, [esp + 0x48]
push edx
push eax
call dword [sym.imp.MSVCRT.dll__mbsicmp]
add esp, 8
test eax, eax
jne 0x46a54e
mov dword [ebp + 0xa14], ebx
lea ecx, [ebp + 0x85c]
call fcn.00428700
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString_5
push 0x80
lea ecx, [esp + 0x18]
mov byte [esp + 0x2dc], 5
call sub.MFC42.DLL_CString::LoadStringA
lea eax, [esp + 0x48]
lea ecx, [esp + 0x30]
push eax
call sub.MFC42.DLL_CString::CString_2
push eax
lea ecx, [esp + 0x30]
push 0x4a67d8
push ecx
mov byte [esp + 0x2e4], 6
call sub.MFC42.DLL_operator_2
push 0x4a1554
lea edx, [esp + 0x2c]
mov bl, 7
push eax
push edx
mov byte [esp + 0x2e4], bl
call sub.MFC42.DLL_operator_1
push eax
lea ecx, [esp + 0x18]
mov byte [esp + 0x2dc], 8
call fcn.0047e17a
lea ecx, [esp + 0x28]
mov byte [esp + 0x2d8], bl
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x2c]
mov byte [esp + 0x2d8], 6
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x30]
mov byte [esp + 0x2d8], 5
call sub.MFC42.DLL_CString::CString
call sub.MFC42.DLL_AfxGetThread
cmp eax, esi
je 0x46a60d
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x7c]
jmp 0x46a60f
xor eax, eax
mov ecx, dword [esp + 0x14]
push ecx
mov ecx, eax
call sub.MFC42.DLL_CWnd::SetWindowTextA
lea edx, [esp + 0x48]
lea ecx, [ebp + 0x9f8]
push edx
call fcn.0047dd2a
lea eax, [esp + 0x1c]
mov esi, 1
push eax
lea ecx, [ebp + 0x9f0]
mov dword [ebp + 0xe90], esi
call fcn.0047dfc4
lea ecx, [ebp + 0x9f4]
call sub.MFC42.DLL_CString::Empty
mov ecx, ebp
mov dword [ebp + 0x854], esi
call fcn.00469c30
lea ecx, [esp + 0x14]
mov byte [esp + 0x2d8], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov byte [esp + 0x2d8], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x34]
mov byte [esp + 0x2d8], 1
call fcn.0047e000
lea ecx, [esp + 0x1c]
mov dword [esp + 0x2d8], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov eax, esi
mov ecx, dword [esp + 0x2d0]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x2cc
ret 4