Function at 0x4fbcf0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x674]
sub esp, 0x674
push 0xffffffffffffffff
push 0x543886
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x582184]
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 [0x58474c], 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 0x4fc264
cmp dword [ebp - 0x20], ebx
je 0x4fc25d
test edi, edi
je 0x4fc25d
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CreateToolhelp32Snapshot
push edi
call esi
push 0x54708c
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 0x4fc24f
test edi, edi
je 0x4fc24f
cmp dword [ebp - 0x1c], 0
je 0x4fc24f
cmp dword [ebp - 0x30], 0
je 0x4fc24f
test eax, eax
je 0x4fc24f
cmp dword [ebp - 0x24], 0
je 0x4fc24f
push 0
push 2
call ebx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
je 0x4fc24f
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.00502ac0
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call edi
test eax, eax
je 0x4fc251
push 0x412
lea eax, [ebp + 0x25c]
push 0
push eax
call fcn.00502ac0
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 0x4fbeb7
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 0x4fbf59
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 0x4fbf2c
nop dword [eax]
cmp ecx, edx
je 0x4fbf59
sub ecx, 2
cmp word [ecx], si
jne 0x4fbf20
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4fbf59
cmp edi, ecx
jb 0x4fc2aa
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 0x4fc075
push dword [ebp + 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4fc075
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 0x4fbfe0
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 0x4fc090
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fc058
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc04e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc2af
push edx
push ecx
call fcn.005004d1
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 0x4fbf62
jmp 0x4fc1e6
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 0x4fc014
mov byte [ebp - 0x11], 1
test bl, bl
je 0x4fc0ef
push dword [ebp + 8]
push 0x4fbb30
call dword [ebp - 0x28]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4fc100
cmp dword [ebp - 0x2c], 0
je 0x4fc100
push dword [ebp + 8]
push 0x4fbc20
call dword [ebp - 0x28]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test bl, bl
jne 0x4fc11d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4fc185
mov eax, dword [0x58474c]
test eax, eax
jne 0x4fc183
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fc161
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc157
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc2af
push edx
push ecx
call fcn.005004d1
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
jmp 0x4fc07b
mov dword [ecx], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fc1c9
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc1bf
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc2af
push edx
push ecx
call fcn.005004d1
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 0x4fc22d
mov ecx, dword [ebp + 0x22c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fc223
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fc2b4
push edx
push ecx
call fcn.005004d1
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 0x4fc257
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 0x4fc272
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4fc27d
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x4fc284
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.005001f6
lea esp, [ebp + 0x674]
pop ebp
ret
call fcn.00404ca0
call fcn.00504609
call fcn.00504609
int3