Function at 0x4010c8
Capabilities:
Link many functions at runtime

Disassembly:
jmp 0x407780
sub esp, 0x50c
mov eax, dword [esp + 0x510]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [esp + 0x10], esi
je 0x407c56
cmp byte [eax], 0
je 0x407c56
mov ecx, dword [esp + 0x528]
cmp ecx, esi
je 0x4077b5
mov dword [ecx], esi
push 0x4106a4
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.MSVCRT.dll_strstr]
add esp, 8
test eax, eax
je 0x4077d4
mov dword [esp + 0x24], 1
lea eax, [esp + 0x13c]
mov dword [esp + 0x13c], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 0x14c]
cmp eax, 2
jne 0x407a66
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, esi
mov dword [esp + 0x1c], edi
je 0x407c56
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push edi
call esi
push str.EnumProcessModules
push edi
mov ebp, eax
call esi
mov ebx, eax
push str.GetModuleFileNameExA
push edi
mov dword [esp + 0x3c], ebx
call esi
push str.GetModuleBaseNameA
push edi
mov dword [esp + 0x38], eax
call esi
test ebp, ebp
mov dword [esp + 0x28], eax
je 0x407a52
test ebx, ebx
je 0x407a52
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x407a52
test eax, eax
je 0x407a52
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x400
mov dword [esp + 0x14], eax
xor edi, edi
test edi, edi
je 0x4078a4
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x14]
lea eax, [ecx + ecx]
mov dword [esp + 0x14], eax
jmp 0x4078aa
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
push 0
call ebx
push eax
call esi
mov edi, eax
test edi, edi
je 0x407a18
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x20]
push edx
push eax
push edi
call ebp
test eax, eax
je 0x4078db
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x20]
cmp ecx, eax
jne 0x4078ff
jmp 0x407881
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov edx, dword [esp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50c
ret
mov eax, dword [esp + 0x20]
mov dword [esp + 0x18], 0
shr eax, 2
mov dword [esp + 0x20], eax
je 0x407a0c
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebp, edi
mov byte [esp + 0x38], 0
mov eax, dword [ebp]
push eax
push 0
push 0x410
call ebx
mov esi, eax
test esi, esi
je 0x4079ee
lea ecx, [esp + 0x14]
lea edx, [esp + 0x2c]
push ecx
push 4
push edx
push esi
call dword [esp + 0x44]
test eax, eax
je 0x4079e7
mov eax, dword [esp + 0x24]
push 0x104
test eax, eax
je 0x407977
mov ecx, dword [esp + 0x30]
lea eax, [esp + 0x3c]
push eax
push ecx
push esi
call dword [esp + 0x40]
test eax, eax
jne 0x40798f
jmp 0x40798a
mov eax, dword [esp + 0x30]
lea edx, [esp + 0x3c]
push edx
push eax
push esi
call dword [esp + 0x38]
test eax, eax
jne 0x40798f
mov byte [esp + 0x38], 0
mov ecx, dword [esp + 0x520]
lea edx, [esp + 0x38]
push ecx
push edx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x4079e7
mov eax, dword [esp + 0x10]
inc eax
cmp eax, 1
mov dword [esp + 0x10], eax
jne 0x4079d8
mov eax, dword [esp + 0x528]
test eax, eax
je 0x4079d8
mov eax, dword [ebp]
push eax
push 0
push 0x400
call ebx
mov ecx, dword [esp + 0x528]
mov dword [ecx], eax
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x524]
cmp edx, eax
jge 0x407a30
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
inc eax
add ebp, 4
cmp eax, ecx
mov dword [esp + 0x18], eax
jb 0x407920
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push edi
push 0
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50c
ret
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50c
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50c
ret
cmp eax, 1
jne 0x407c56
push str.KERNEL32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
cmp ebx, esi
je 0x407c56
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push ebx
call esi
push str.Process32First
push ebx
mov edi, eax
call esi
push str.Process32Next
push ebx
mov ebp, eax
call esi
test eax, eax
mov dword [esp + 0x28], eax
je 0x407c4f
test ebp, ebp
je 0x407c4f
test edi, edi
je 0x407c4f
push 0
push 2
call edi
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x18], esi
je 0x407c4f
lea edx, [esp + 0x1d0]
mov ecx, 0x49
xor eax, eax
lea edi, [esp + 0x1d4]
push edx
push esi
rep stosd dword es:[edi], eax
mov dword [esp + 0x1d8], 0x128
call ebp
test eax, eax
je 0x407c34
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ecx, 0x88
xor eax, eax
lea edi, [esp + 0x2fc]
mov dword [esp + 0x2f8], 0
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x1d8]
test eax, eax
je 0x407bff
mov edx, dword [esp + 0x1e0]
lea ecx, [esp + 0x2f8]
push 0x224
push ecx
push edx
push eax
call fcn.0040120d
add esp, 0x10
test eax, eax
je 0x407bff
mov eax, dword [esp + 0x24]
test eax, eax
mov eax, dword [esp + 0x520]
push eax
je 0x407bb6
lea ecx, [esp + 0x41c]
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x407bff
mov ebp, dword [esp + 0x10]
inc ebp
cmp ebp, 1
mov dword [esp + 0x10], ebp
jne 0x407bab
mov edi, dword [esp + 0x528]
test edi, edi
je 0x407bab
mov edx, dword [esp + 0x300]
push edx
push eax
push 0x400
call esi
mov dword [edi], eax
cmp ebp, dword [esp + 0x524]
jge 0x407c19
jmp 0x407bff
lea ecx, [esp + 0x31c]
push ecx
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x407bff
mov ebp, dword [esp + 0x10]
inc ebp
cmp ebp, 1
mov dword [esp + 0x10], ebp
jne 0x407bf6
mov edi, dword [esp + 0x528]
test edi, edi
je 0x407bf6
mov edx, dword [esp + 0x300]
push edx
push eax
push 0x400
call esi
mov dword [edi], eax
cmp ebp, dword [esp + 0x524]
jge 0x407c19
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x1d0]
push eax
push ecx
call dword [esp + 0x30]
test eax, eax
je 0x407c30
jmp 0x407b26
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x50c
ret
mov esi, dword [esp + 0x18]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50c
ret
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x50c
ret