Function at 0x422b44
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43d66f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x139c
call fcn.004320a0
push edi
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00425c0b
add esp, 4
and eax, 0xff
test eax, eax
jne 0x422baf
mov dword [ebp - 0x1380], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1380]
jmp 0x422ff5
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1384]
push edx
call fcn.00426077
add esp, 8
mov dword [ebp - 0x13a4], eax
mov eax, dword [ebp - 0x13a4]
mov dword [ebp - 0x13a8], eax
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x13a8]
push ecx
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::operator
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1384]
call sub.MFC42.DLL_CString::CString
call fcn.00418e19
and eax, 0xff
test eax, eax
je 0x422e1d
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x422c40
mov dword [ebp - 0x1388], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1388]
jmp 0x422ff5
push str.EnumProcesses
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x20], eax
push str.EnumProcessModules
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1c], eax
push str.GetModuleFileNameExA
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x20], 0
je 0x422c88
cmp dword [ebp - 0x1c], 0
je 0x422c88
cmp dword [ebp - 0x14], 0
jne 0x422cb6
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x138c], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x138c]
jmp 0x422ff5
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea ecx, [ebp - 0x1028]
push ecx
call dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
jmp 0x422cdb
mov edx, dword [ebp - 0x24]
add edx, 1
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x18]
shr eax, 2
cmp dword [ebp - 0x24], eax
jae 0x422e0e
mov dword [ebp - 0x1034], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + ecx*4 - 0x1028]
push edx
push 0
push 0x411
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x102c], 0
je 0x422df2
lea eax, [ebp - 0x1030]
push eax
push 4
lea ecx, [ebp - 0x1034]
push ecx
mov edx, dword [ebp - 0x102c]
push edx
call dword [ebp - 0x1c]
test eax, eax
je 0x422df2
mov al, byte [0x44f368]
mov byte [ebp - 0x1138], al
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x1137]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea ecx, [ebp - 0x1138]
push ecx
mov edx, dword [ebp - 0x1034]
push edx
mov eax, dword [ebp - 0x102c]
push eax
call dword [ebp - 0x14]
push 0x104
lea ecx, [ebp - 0x1138]
push ecx
lea edx, [ebp - 0x1138]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp - 0x10]
call fcn.0040cdc0
push eax
lea eax, [ebp - 0x1138]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x422df2
mov ecx, dword [ebp + 0xc]
cmp dword [ecx], 0
je 0x422dc4
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x102c]
mov dword [edx], eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1390], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1390]
jmp 0x422ff5
mov edx, dword [ebp - 0x102c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x102c], 0
jmp 0x422cd2
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x422fd6
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x114c], eax
cmp dword [ebp - 0x114c], 0
jne 0x422e5b
mov dword [ebp - 0x1394], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1394]
jmp 0x422ff5
push str.CreateToolhelp32Snapshot
mov ecx, dword [ebp - 0x114c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1148], eax
push str.Process32First
mov edx, dword [ebp - 0x114c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1140], eax
push str.Process32Next
mov eax, dword [ebp - 0x114c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1278], eax
cmp dword [ebp - 0x1148], 0
je 0x422ebe
cmp dword [ebp - 0x1140], 0
je 0x422ebe
cmp dword [ebp - 0x1278], 0
jne 0x422eef
mov ecx, dword [ebp - 0x114c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x1398], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x1398]
jmp 0x422ff5
mov dword [ebp - 0x1274], 0x128
push 0
push 2
call dword [ebp - 0x1148]
mov dword [ebp - 0x113c], eax
lea edx, [ebp - 0x1274]
push edx
mov eax, dword [ebp - 0x113c]
push eax
call dword [ebp - 0x1140]
mov dword [ebp - 0x1144], eax
cmp dword [ebp - 0x1144], 0
je 0x422fc9
lea ecx, [ebp - 0x1250]
push ecx
lea edx, [ebp - 0x137c]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x104
lea eax, [ebp - 0x137c]
push eax
lea ecx, [ebp - 0x137c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp - 0x10]
call fcn.0040cdc0
push eax
lea edx, [ebp - 0x137c]
push edx
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x422faa
mov eax, dword [ebp - 0x114c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x139c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x139c]
jmp 0x422ff5
lea ecx, [ebp - 0x1274]
push ecx
mov edx, dword [ebp - 0x113c]
push edx
call dword [ebp - 0x1278]
mov dword [ebp - 0x1144], eax
jmp 0x422f23
mov eax, dword [ebp - 0x114c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x13a0], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp - 0x13a0]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
mov esp, ebp
pop ebp
ret