Function at 0x4023d0
Capabilities:
Link many functions at runtime
Terminate process

Disassembly:
sub esp, 0x2e8
mov eax, dword [0x458640]
xor eax, esp
mov dword [esp + 0x2e4], eax
mov eax, dword [esp + 0x2ec]
mov ecx, dword [esp + 0x2f4]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x2f0]
lea edx, [esp + 0x24]
push edx
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], ecx
mov dword [eax], 0
mov dword [esp + 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x402439
mov ecx, dword [esp + 0x2e4]
xor ecx, esp
call fcn.0042cf8a
add esp, 0x2e8
ret 0x10
mov eax, dword [esp + 0x34]
cmp eax, 2
push ebx
push ebp
push esi
push edi
jne 0x402628
push str.PSAPI.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebx, eax
test ebx, ebx
mov dword [esp + 0x10], ebx
je 0x40274d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push ebx
call esi
push str.EnumProcessModules
push ebx
mov ebp, eax
call esi
push str.GetModuleFileNameExA
mov edi, eax
push ebx
mov dword [esp + 0x34], edi
call esi
test ebp, ebp
mov dword [esp + 0x30], eax
je 0x4025d7
test edi, edi
je 0x4025d7
test eax, eax
je 0x4025d7
mov esi, dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, 0x400
mov dword [esp + 0x14], eax
xor edi, edi
test edi, edi
je 0x4024d4
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, dword [esp + 0x14]
add eax, eax
mov dword [esp + 0x14], eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
mov edi, eax
test edi, edi
je 0x4025d7
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ecx
push edi
call ebp
test eax, eax
je 0x4025c7
mov eax, dword [esp + 0x14]
cmp dword [esp + 0x18], eax
je 0x4024b6
shr dword [esp + 0x18], 2
mov ebp, 0
je 0x402607
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
nop
mov byte [esp + 0x1f0], 0
mov edx, dword [edi + ebp*4]
push edx
push 1
push 0x410
call ebx
mov esi, eax
test esi, esi
je 0x40258e
lea eax, [esp + 0x14]
push eax
push 4
lea ecx, [esp + 0x30]
push ecx
push esi
call dword [esp + 0x3c]
test eax, eax
je 0x402572
mov eax, dword [esp + 0x28]
push 0x104
lea edx, [esp + 0x1f4]
push edx
push eax
push esi
call dword [esp + 0x40]
test eax, eax
jne 0x402572
mov byte [esp + 0x1f0], al
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0x1f4]
push edx
call dword [esp + 0x28]
test eax, eax
jne 0x4025dd
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esp + 0x1f0]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x402598
sub eax, edx
lea eax, [esp + eax + 0x1e7]
push str.NTVDM.EXE
push eax
call fcn.0042d22e
add ebp, 1
add esp, 8
cmp ebp, dword [esp + 0x18]
jb 0x402520
jmp 0x402603
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
jmp 0x402747
cmp dword [esp + 0x308], 0
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 1
je 0x4025fc
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
jmp 0x402603
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ebx, dword [esp + 0x10]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x40274f
cmp eax, 1
jne 0x40274d
push str.Kernel32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x40274d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.CreateToolhelp32Snapshot
push ebp
call esi
push str.Process32First
push ebp
mov edi, eax
call esi
push str.Process32Next
push ebp
mov ebx, eax
call esi
mov ebp, eax
test ebp, ebp
je 0x402742
test ebx, ebx
je 0x402742
test edi, edi
je 0x402742
push 0
push 2
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x40269d
mov edx, dword [esp + 0x10]
push edx
jmp 0x402747
lea eax, [esp + 0xc8]
push eax
mov edi, 0x128
push esi
mov dword [esp + 0xd0], edi
call ebx
test eax, eax
je 0x402730
jmp 0x4026c0
mov ecx, dword [esp + 0x24]
push ecx
lea edx, [esp + 0xf0]
push edx
call dword [esp + 0x28]
test eax, eax
jne 0x4026fd
lea eax, [esp + 0xc8]
push eax
push esi
mov dword [esp + 0xd0], edi
call ebp
test eax, eax
jne 0x4026c0
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x40274f
cmp dword [esp + 0x308], 0
mov ecx, dword [esp + 0x1c]
mov dword [ecx], 1
je 0x402730
mov edx, dword [esp + 0xd0]
push edx
push 1
push 1
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x402730
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ebx, dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, 1
jmp 0x40274f
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
mov ecx, dword [esp + 0x2f4]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0042cf8a
add esp, 0x2e8
ret 0x10