Function at 0x41f248
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x439794
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x139c
call fcn.0042e770
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.0042225b
add esp, 4
and eax, 0xff
test eax, eax
jne 0x41f2b3
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 0x41f6f3
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x1384]
push edx
call fcn.004226c7
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 fcn.0042e336
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x1384]
call sub.MFC42.DLL_CString::CString
call fcn.00415a49
and eax, 0xff
test eax, eax
je 0x41f51b
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x41f344
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 0x41f6f3
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 0x41f38c
cmp dword [ebp - 0x1c], 0
je 0x41f38c
cmp dword [ebp - 0x14], 0
jne 0x41f3ba
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 0x41f6f3
lea eax, [ebp - 0x18]
push eax
push 0x1000
lea ecx, [ebp - 0x1028]
push ecx
call dword [ebp - 0x20]
mov dword [ebp - 0x24], 0
jmp 0x41f3df
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 0x41f50c
mov dword [ebp - 0x1034], 0
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp + ecx*4 - 0x1028]
push edx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x102c], eax
cmp dword [ebp - 0x102c], 0
je 0x41f4f0
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 0x41f4f0
mov al, byte [0x4496a0]
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.004077f0
push eax
lea eax, [ebp - 0x1138]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x41f4f0
mov ecx, dword [ebp - 0x102c]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 0x28]
push edx
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 0x41f6f3
mov eax, dword [ebp - 0x102c]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x102c], 0
jmp 0x41f3d6
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
jmp 0x41f6d4
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x114c], eax
cmp dword [ebp - 0x114c], 0
jne 0x41f559
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 0x41f6f3
push str.CreateToolhelp32Snapshot
mov edx, dword [ebp - 0x114c]
push edx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1148], eax
push str.Process32First
mov eax, dword [ebp - 0x114c]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1140], eax
push str.Process32Next
mov ecx, dword [ebp - 0x114c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x1278], eax
cmp dword [ebp - 0x1148], 0
je 0x41f5bc
cmp dword [ebp - 0x1140], 0
je 0x41f5bc
cmp dword [ebp - 0x1278], 0
jne 0x41f5ed
mov edx, dword [ebp - 0x114c]
push edx
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 0x41f6f3
mov dword [ebp - 0x1274], pe_nt_image_headers32
push 0
push 2
call dword [ebp - 0x1148]
mov dword [ebp - 0x113c], eax
lea eax, [ebp - 0x1274]
push eax
mov ecx, dword [ebp - 0x113c]
push ecx
call dword [ebp - 0x1140]
mov dword [ebp - 0x1144], eax
cmp dword [ebp - 0x1144], 0
je 0x41f6c7
lea edx, [ebp - 0x1250]
push edx
lea eax, [ebp - 0x137c]
push eax
call sub.MSVCRT.dll_strcpy
add esp, 8
push 0x104
lea ecx, [ebp - 0x137c]
push ecx
lea edx, [ebp - 0x137c]
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [ebp - 0x10]
call fcn.004077f0
push eax
lea eax, [ebp - 0x137c]
push eax
call dword [sym.imp.MSVCRT.dll__strcmpi]
add esp, 8
test eax, eax
jne 0x41f6a8
mov ecx, dword [ebp - 0x114c]
push ecx
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 0x41f6f3
lea edx, [ebp - 0x1274]
push edx
mov eax, dword [ebp - 0x113c]
push eax
call dword [ebp - 0x1278]
mov dword [ebp - 0x1144], eax
jmp 0x41f621
mov ecx, dword [ebp - 0x114c]
push ecx
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