Function at 0x401ca0
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, 0x2390
call fcn.00412100
mov eax, dword [0x42119c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x239c], eax
mov dword [esp + 0x10], 0
call fcn.0040a170
mov esi, eax
call dword [sym.imp.WINMM.dll_timeGetTime]
cmp esi, 3
mov dword [esp + 0x24], eax
je 0x401e7d
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.CreateToolhelp32Snapshot
push str.kernel32.dll
call esi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call edi
push str.Process32First
mov ebx, eax
push str.kernel32.dll
mov dword [esp + 0x20], ebx
call esi
push eax
call edi
push str.Process32Next
push str.kernel32.dll
mov dword [esp + 0x1c], eax
call esi
push eax
call edi
test ebx, ebx
mov ebp, eax
je 0x4020dc
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4020dc
test ebp, ebp
je 0x4020dc
xor edi, edi
push edi
push 6
call ebx
mov esi, eax
cmp esi, 0xffffffff
je 0x401e37
mov bl, byte [esp + 0x23a8]
lea eax, [esp + 0x1f70]
push eax
push esi
mov dword [esp + 0x1f78], 0x128
call dword [esp + 0x1c]
cmp eax, 1
jne 0x401dfa
mov ecx, dword [esp + 0x23a4]
push ecx
lea edx, [esp + 0x1f98]
push edx
call fcn.0041917e
add esp, 8
test eax, eax
je 0x401de9
lea eax, [esp + 0x1f70]
push eax
push esi
mov dword [esp + 0x1f78], 0x128
call ebp
cmp eax, 1
jne 0x401dfa
mov edi, edi
mov ecx, dword [esp + 0x23a4]
push ecx
lea edx, [esp + 0x1f98]
push edx
call fcn.0041917e
add esp, 8
test eax, eax
je 0x401de9
lea eax, [esp + 0x1f70]
push eax
push esi
mov dword [esp + 0x1f78], 0x128
call ebp
cmp eax, 1
je 0x401db0
jmp 0x401dfa
test bl, bl
mov edi, 1
jne 0x401dfa
mov dword [esp + 0x10], 2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x4020ba
cmp edi, 1
jne 0x4020ba
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x24]
cmp eax, 0x7530
jae 0x401e5a
xor edi, edi
push edi
push 6
call dword [esp + 0x20]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401d56
pop edi
pop esi
mov dword [esp + 8], 0x10011
mov eax, dword [esp + 8]
pop ebp
pop ebx
mov ecx, dword [esp + 0x238c]
call fcn.004120e8
add esp, 0x2390
ret
pop edi
pop esi
mov dword [esp + 8], 2
mov eax, dword [esp + 8]
pop ebp
pop ebx
mov ecx, dword [esp + 0x238c]
call fcn.004120e8
add esp, 0x2390
ret
push str.psapi.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
mov dword [esp + 0x28], edi
je 0x4020dc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.EnumProcesses
push edi
call esi
push str.EnumProcessModules
mov ebp, eax
push edi
mov dword [esp + 0x34], ebp
call esi
push str.GetModuleFileNameExA
mov ebx, eax
push edi
mov dword [esp + 0x20], ebx
call esi
test ebp, ebp
mov dword [esp + 0x14], eax
je 0x4020d5
test ebx, ebx
je 0x4020d5
test eax, eax
je 0x4020d5
lea ecx, [esp + 0x1c]
push ecx
push 0xfa0
lea edx, [esp + 0x38]
push edx
xor ebx, ebx
call ebp
test eax, eax
je 0x402081
jmp 0x401f00
mov eax, dword [esp + 0x1c]
xor ebp, ebp
test eax, 0xfffffffc
jbe 0x402043
mov eax, dword [esp + ebp*4 + 0x30]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x402024
lea ecx, [esp + 0x20]
push ecx
push 0xfa0
lea edx, [esp + 0xfd8]
push edx
push esi
call dword [esp + 0x28]
test eax, eax
je 0x402019
mov eax, dword [esp + 0x20]
xor edi, edi
test eax, 0xfffffffc
jbe 0x402019
lea ecx, [ecx]
mov ecx, dword [esp + edi*4 + 0xfd0]
push 0x104
lea eax, [esp + 0x209c]
push eax
push ecx
push esi
call dword [esp + 0x24]
test eax, eax
je 0x401ff0
lea edx, [esp + 0x219c]
push edx
lea eax, [esp + 0x22a0]
push eax
push 0
lea ecx, [esp + 0x20a4]
push 0
push ecx
call fcn.00411f6f
lea edx, [esp + 0x21b0]
push edx
lea eax, [esp + 0x22b4]
push eax
lea ecx, [esp + 0x20b4]
push str._s_s
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov edx, dword [esp + 0x23c8]
push edx
lea eax, [esp + 0x20c0]
push eax
call fcn.0041917e
add esp, 0x2c
test eax, eax
je 0x402001
mov ecx, dword [esp + 0x20]
inc edi
shr ecx, 2
cmp edi, ecx
jb 0x401f60
jmp 0x402019
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x10], 0x10011
jmp 0x402019
mov al, byte [esp + 0x23a8]
test al, al
mov ebx, 1
jne 0x402019
mov dword [esp + 0x10], 2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x28]
cmp ebx, 1
je 0x402043
cmp dword [esp + 0x10], 0x10011
je 0x402043
mov edx, dword [esp + 0x1c]
inc ebp
shr edx, 2
cmp ebp, edx
jb 0x401f11
mov al, byte [esp + 0x23a8]
test al, al
je 0x4020b3
cmp ebx, 1
jne 0x4020b3
call dword [sym.imp.WINMM.dll_timeGetTime]
sub eax, dword [esp + 0x24]
cmp eax, 0x7530
jae 0x4020ab
lea eax, [esp + 0x1c]
push eax
push 0xfa0
lea ecx, [esp + 0x38]
push ecx
xor ebx, ebx
call dword [esp + 0x38]
test eax, eax
jne 0x401f00
push edi
mov dword [esp + 0x14], 0x10011
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238c]
call fcn.004120e8
add esp, 0x2390
ret
mov dword [esp + 0x10], 2
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x238c]
call fcn.004120e8
add esp, 0x2390
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov ecx, dword [esp + 0x239c]
pop edi
pop esi
pop ebp
mov eax, 0x10011
pop ebx
call fcn.004120e8
add esp, 0x2390
ret