Function at 0x4fbe90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x674]
sub esp, 0x674
push 0xffffffffffffffff
push 0x543ac6
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x583184]
xor eax, ebp
mov dword [ebp + 0x670], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x67c]
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x684]
push str.Kernel32.dll
mov dword [ebp - 0x2c], eax
mov dword [0x585768], 0
mov byte [ebp - 0x11], bl
call esi
push str.user32.dll
mov dword [ebp - 0x10], eax
call esi
push str.Psapi.dll
mov dword [ebp - 0x20], eax
call esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x18], edi
test eax, eax
je 0x4fc404
cmp dword [ebp - 0x20], ebx
je 0x4fc3fd
test edi, edi
je 0x4fc3fd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CreateToolhelp32Snapshot
push edi
call esi
push 0x5480dc
push edi
mov ebx, eax
call esi
push str.Process32FirstW
push edi
mov dword [ebp - 0x1c], 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 - 0x20]
mov dword [ebp - 0x24], eax
call esi
mov dword [ebp - 0x28], eax
test ebx, ebx
je 0x4fc3ef
test edi, edi
je 0x4fc3ef
cmp dword [ebp - 0x1c], 0
je 0x4fc3ef
cmp dword [ebp - 0x30], 0
je 0x4fc3ef
test eax, eax
je 0x4fc3ef
cmp dword [ebp - 0x24], 0
je 0x4fc3ef
push 0
push 2
call ebx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
je 0x4fc3ef
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.00502c60
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call edi
test eax, eax
je 0x4fc3f1
push 0x412
lea eax, [ebp + 0x25c]
push 0
push eax
call fcn.00502c60
add esp, 0xc
lea eax, [ebp + 0x25c]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [ebp + 0x23c], 0
lea ecx, [ebp + 0x25c]
mov dword [ebp + 0x240], 0
mov dword [ebp + 0x23c], 0
lea edx, [ecx + 2]
mov dword [ebp + 0x240], 7
mov word [ebp + 0x22c], ax
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fc057
sub ecx, edx
lea eax, [ebp + 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x22c]
call fcn.00404420
mov dword [ebp - 4], 0
call fcn.004070f0
mov ebx, dword [ebp + 0x240]
lea edx, [ebp + 0x22c]
mov edi, dword [ebp + 0x23c]
cmp ebx, 8
movzx esi, ax
cmovae edx, dword [ebp + 0x22c]
test edi, edi
je 0x4fc0f9
or ecx, 0xffffffff
lea eax, [edi - 1]
cmp eax, ecx
cmovb ecx, eax
cmp word [edx + ecx*2], si
lea ecx, [edx + ecx*2]
je 0x4fc0cc
nop dword [eax]
cmp ecx, edx
je 0x4fc0f9
sub ecx, 2
cmp word [ecx], si
jne 0x4fc0c0
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4fc0f9
cmp edi, ecx
jb 0x4fc44a
cmp ebx, 8
mov dword [ebp + 0x23c], ecx
lea eax, [ebp + 0x22c]
cmovae eax, dword [ebp + 0x22c]
xor edx, edx
mov word [eax + ecx*2], dx
mov bl, byte [ebp + 0x680]
mov edi, dword [ebp - 0x1c]
lea eax, [ebp + 0x24]
push eax
push dword [ebp - 0x34]
call fcn.00405e70
add esp, 8
test al, al
je 0x4fc215
push dword [ebp + 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4fc215
push 0x208
lea eax, [ebp + 0x25c]
push eax
push 0
push esi
call dword [ebp - 0x24]
xor eax, eax
mov dword [ebp + 0x254], 0
lea ecx, [ebp + 0x25c]
mov dword [ebp + 0x258], 0
mov dword [ebp + 0x254], 0
lea edx, [ecx + 2]
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4fc180
sub ecx, edx
lea eax, [ebp + 0x25c]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp + 0x244]
call fcn.00404420
mov byte [ebp - 4], 1
mov ecx, dword [ebp + 0x23c]
cmp dword [ebp + 0x254], ecx
jae 0x4fc230
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fc1f8
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc1ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc44f
push edx
push ecx
call fcn.00500671
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp]
push eax
push edi
call dword [ebp - 0x30]
test eax, eax
jne 0x4fc102
jmp 0x4fc386
cmp dword [ebp + 0x258], 8
lea eax, [ebp + 0x244]
mov dword [ebp + 0x254], ecx
cmovae eax, dword [ebp + 0x244]
xor edx, edx
mov word [eax + ecx*2], dx
lea eax, [ebp + 0x22c]
push eax
lea eax, [ebp + 0x244]
push eax
call fcn.00405e40
add esp, 8
test al, al
je 0x4fc1b4
mov byte [ebp - 0x11], 1
test bl, bl
je 0x4fc28f
push dword [ebp + 8]
push 0x4fbcd0
call dword [ebp - 0x28]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4fc2a0
cmp dword [ebp - 0x2c], 0
je 0x4fc2a0
push dword [ebp + 8]
push 0x4fbdc0
call dword [ebp - 0x28]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test bl, bl
jne 0x4fc2bd
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4fc325
mov eax, dword [0x585768]
test eax, eax
jne 0x4fc323
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fc301
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc2f7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc44f
push edx
push ecx
call fcn.00500671
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
jmp 0x4fc21b
mov dword [ecx], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fc369
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc35f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc44f
push edx
push ecx
call fcn.00500671
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x240]
cmp edx, 8
jb 0x4fc3cd
mov ecx, dword [ebp + 0x22c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc3c3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc454
push edx
push ecx
call fcn.00500671
add esp, 8
mov ebx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ebp + 0x23c], 0
mov dword [ebp + 0x240], 7
mov word [ebp + 0x22c], ax
jmp 0x4fc3f7
xor ebx, ebx
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x4fc412
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4fc41d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x4fc424
push ebx
call esi
mov al, byte [ebp - 0x11]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x670]
xor ecx, ebp
call fcn.00500396
lea esp, [ebp + 0x674]
pop ebp
ret
call fcn.00404ca0
call fcn.005047a9
call fcn.005047a9
int3