Function at 0x491b60
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x678]
sub esp, 0x678
push 0xffffffffffffffff
push 0x50f666
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 0x491f41
test edi, edi
je 0x491f3a
test esi, esi
je 0x491f3a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CreateToolhelp32Snapshot
push edi
call esi
push 0x52e488
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 0x491f2f
test edi, edi
je 0x491f2f
test ebx, ebx
je 0x491f2f
cmp dword [ebp - 0x30], 0
je 0x491f2f
test ecx, ecx
je 0x491f2f
mov esi, dword [ebp - 0x20]
test esi, esi
je 0x491f2f
push 0
push 2
call eax
mov ebx, eax
cmp ebx, 0xffffffff
je 0x491f2f
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.004d9580
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call edi
test eax, eax
je 0x491f31
push 0x412
lea eax, [ebp + 0x260]
push 0
push eax
call fcn.004d9580
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 0x491d14
mov edi, dword [eax]
mov eax, dword [eax + 0x10]
mov dword [ebp + 0x25c], 0xffffffff
test eax, eax
je 0x491da0
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 0x491d55
cmp esi, edi
je 0x491d9a
sub esi, 2
cmp word [esi], 0x5c
jne 0x491d48
sub esi, edi
sar esi, 1
cmp esi, 0xffffffff
je 0x491d9a
lea ecx, [ebp + 0x22c]
call fcn.00402fb0
cmp dword [eax + 0x10], esi
jb 0x491f8e
cmp dword [eax + 0x14], 8
mov dword [ebp + 0x25c], 0
mov dword [eax + 0x10], esi
jb 0x491d87
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 0x491ef9
push dword [ebp + 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x491ef9
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 0x491eea
lea ecx, [ebp + 0x244]
call fcn.00402fb0
cmp dword [eax + 0x10], esi
jb 0x491f8e
cmp dword [eax + 0x14], 8
mov dword [ebp + 0x25c], 0
mov dword [eax + 0x10], esi
jb 0x491e44
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 0x491eea
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 0x491eea
cmp byte [ebp - 0x11], 0
mov byte [ebp - 0x12], 1
je 0x491ebe
push dword [ebp + 8]
push 0x4919e0
call dword [ebp - 0x2c]
push 0x1388
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, dword [ebp - 0x28]
jmp 0x491ed0
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x491ed0
push dword [ebp + 8]
push 0x491aa0
call dword [ebp - 0x2c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x11], 0
jne 0x491eea
test esi, esi
je 0x491f0c
mov eax, dword [0x553164]
test eax, eax
jne 0x491f0a
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 0x491f1b
jmp 0x491d9a
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 0x491f31
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 0x491f50
push edi
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call edi
jmp 0x491f56
mov edi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
test esi, esi
je 0x491f5d
push esi
call edi
test ebx, ebx
je 0x491f68
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.004d6ca5
lea esp, [ebp + 0x678]
pop ebp
ret
call fcn.0040afe0
int3