Function at 0x491e80
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x678]
sub esp, 0x678
push 0xffffffffffffffff
push 0x50fa16
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x5500a4]
xor eax, ebp
mov dword [ebp + 0x674], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov byte [ebp - 0x11], dl
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 0x680]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.Kernel32.dll
mov dword [ebp - 0x28], eax
mov dword [0x553164], 0
mov byte [ebp - 0x12], bl
call esi
push str.user32.dll
mov dword [ebp - 0x10], eax
call esi
mov edi, eax
push str.Psapi.dll
mov dword [ebp - 0x1c], edi
call esi
mov esi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], esi
test eax, eax
je 0x492261
test edi, edi
je 0x49225a
test esi, esi
je 0x49225a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CreateToolhelp32Snapshot
push edi
call esi
push 0x52e494
push edi
mov dword [ebp - 0x24], eax
call esi
push str.Process32FirstW
push edi
mov ebx, eax
call esi
push str.Process32NextW
push dword [ebp - 0x10]
mov edi, eax
call esi
push str.GetModuleFileNameExW
push dword [ebp - 0x18]
mov dword [ebp - 0x30], eax
call esi
push str.EnumWindows
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call esi
mov ecx, eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], ecx
test eax, eax
je 0x49224f
test edi, edi
je 0x49224f
test ebx, ebx
je 0x49224f
cmp dword [ebp - 0x30], 0
je 0x49224f
test ecx, ecx
je 0x49224f
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x49224f
push 0
push 2
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x49224f
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.004d98b0
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call edi
test eax, eax
je 0x492251
push 0x412
lea eax, [ebp + 0x260]
push 0
push eax
call fcn.004d98b0
add esp, 0xc
lea eax, [ebp + 0x260]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp + 0x260]
push eax
lea ecx, [ebp + 0x22c]
call fcn.0040a850
mov dword [ebp - 4], 0
lea ecx, [ebp + 0x22c]
call fcn.00402fb0
mov edi, eax
cmp dword [eax + 0x14], 8
jb 0x492034
mov edi, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp + 0x25c], 0xffffffff
test eax, eax
je 0x4920c0
dec eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp + 0x25c]
push eax
call fcn.0040b0a0
add esp, 8
mov eax, dword [eax]
cmp word [edi + eax*2], 0x5c
lea esi, [edi + eax*2]
je 0x492075
cmp esi, edi
je 0x4920ba
sub esi, 2
cmp word [esi], 0x5c
jne 0x492068
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
je 0x4920ba
lea ecx, [ebp + 0x22c]
call fcn.00402fb0
cmp dword [eax + 0x10], esi
jb 0x4922ae
cmp dword [eax + 0x14], 8
mov dword [ebp + 0x25c], 0
mov dword [eax + 0x10], esi
jb 0x4920a7
mov eax, dword [eax]
lea ecx, [ebp + 0x25c]
push ecx
lea eax, [eax + esi*2]
push eax
call fcn.0040af70
add esp, 8
mov esi, dword [ebp - 0x20]
nop dword [eax]
mov ecx, dword [ebp - 0x34]
call fcn.0040a750
lea edx, [ebp + 0x24]
mov ecx, eax
call fcn.00412e90
test al, al
je 0x492219
push dword [ebp + 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x492219
push 0x208
lea eax, [ebp + 0x260]
push eax
push 0
push edi
call esi
lea eax, [ebp + 0x260]
push eax
lea ecx, [ebp + 0x244]
call fcn.0040a850
mov byte [ebp - 4], 1
lea ecx, [ebp + 0x22c]
call fcn.0040a740
lea ecx, [ebp + 0x244]
mov esi, eax
call fcn.0040a740
cmp eax, esi
jb 0x49220a
lea ecx, [ebp + 0x244]
call fcn.00402fb0
cmp dword [eax + 0x10], esi
jb 0x4922ae
cmp dword [eax + 0x14], 8
mov dword [ebp + 0x25c], 0
mov dword [eax + 0x10], esi
jb 0x492164
mov eax, dword [eax]
lea ecx, [ebp + 0x25c]
push ecx
lea eax, [eax + esi*2]
push eax
call fcn.0040af70
add esp, 8
lea ecx, [ebp + 0x244]
call fcn.0040a740
lea ecx, [ebp + 0x22c]
mov esi, eax
call fcn.0040a740
cmp esi, eax
jne 0x49220a
lea ecx, [ebp + 0x22c]
call fcn.0040a750
lea ecx, [ebp + 0x244]
mov esi, eax
call fcn.0040a750
mov edx, esi
mov ecx, eax
call fcn.00412e90
test al, al
je 0x49220a
cmp byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 1
je 0x4921de
push dword [ebp + 8]
push 0x491d00
call dword [ebp - 0x2c]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x28]
jmp 0x4921f0
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4921f0
push dword [ebp + 8]
push 0x491dc0
call dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
jne 0x49220a
test esi, esi
je 0x49222c
mov eax, dword [0x553164]
test eax, eax
jne 0x49222a
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x244]
call fcn.0040a7c0
lea eax, [ebp]
push eax
push ebx
call dword [ebp - 0x30]
test eax, eax
je 0x49223b
jmp 0x4920ba
mov dword [esi], eax
mov byte [ebp - 4], 0
lea ecx, [ebp + 0x244]
call fcn.0040a7c0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x22c]
call fcn.0040a7c0
jmp 0x492251
xor ebx, ebx
mov esi, dword [ebp - 0x18]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x492270
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call edi
jmp 0x492276
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x49227d
push esi
call edi
test ebx, ebx
je 0x492288
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 0x12]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x674]
xor ecx, ebp
call fcn.004d6fd3
lea esp, [ebp + 0x678]
pop ebp
ret
call fcn.0040afe0
int3