Function at 0x4fde40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
lea ebp, [esp - 0x674]
sub esp, 0x674
push 0xffffffffffffffff
push 0x545b46
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x585184]
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 [0x58774c], 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 0x4fe3b4
cmp dword [ebp - 0x20], ebx
je 0x4fe3ad
test edi, edi
je 0x4fe3ad
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
push str.CreateToolhelp32Snapshot
push edi
call esi
push 0x54a06c
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 0x4fe39f
test edi, edi
je 0x4fe39f
cmp dword [ebp - 0x1c], 0
je 0x4fe39f
cmp dword [ebp - 0x30], 0
je 0x4fe39f
test eax, eax
je 0x4fe39f
cmp dword [ebp - 0x24], 0
je 0x4fe39f
push 0
push 2
call ebx
mov ebx, eax
mov dword [ebp - 0x1c], ebx
cmp ebx, 0xffffffff
je 0x4fe39f
push 0x228
lea eax, [ebp + 4]
push 0
push eax
call fcn.00504c10
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push ebx
call edi
test eax, eax
je 0x4fe3a1
push 0x412
lea eax, [ebp + 0x25c]
push 0
push eax
call fcn.00504c10
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 0x4fe007
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 0x4fe0a9
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 0x4fe07c
nop dword [eax]
cmp ecx, edx
je 0x4fe0a9
sub ecx, 2
cmp word [ecx], si
jne 0x4fe070
sub ecx, edx
sar ecx, 1
cmp ecx, 0xffffffff
je 0x4fe0a9
cmp edi, ecx
jb 0x4fe3fa
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 0x4fe1c5
push dword [ebp + 8]
push 0
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4fe1c5
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 0x4fe130
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 0x4fe1e0
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fe1a8
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fe19e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe3ff
push edx
push ecx
call fcn.00502621
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 0x4fe0b2
jmp 0x4fe336
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 0x4fe164
mov byte [ebp - 0x11], 1
test bl, bl
je 0x4fe23f
push dword [ebp + 8]
push 0x4fdc80
call dword [ebp - 0x28]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4fe250
cmp dword [ebp - 0x2c], 0
je 0x4fe250
push dword [ebp + 8]
push 0x4fdd70
call dword [ebp - 0x28]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
test bl, bl
jne 0x4fe26d
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x4fe2d5
mov eax, dword [0x58774c]
test eax, eax
jne 0x4fe2d3
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fe2b1
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fe2a7
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe3ff
push edx
push ecx
call fcn.00502621
add esp, 8
xor eax, eax
mov dword [ebp + 0x254], 0
mov dword [ebp + 0x258], 7
mov word [ebp + 0x244], ax
jmp 0x4fe1cb
mov dword [ecx], eax
mov byte [ebp - 4], 0
mov edx, dword [ebp + 0x258]
cmp edx, 8
jb 0x4fe319
mov ecx, dword [ebp + 0x244]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fe30f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe3ff
push edx
push ecx
call fcn.00502621
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 0x4fe37d
mov ecx, dword [ebp + 0x22c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4fe373
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4fe404
push edx
push ecx
call fcn.00502621
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 0x4fe3a7
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 0x4fe3c2
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4fe3cd
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test ebx, ebx
je 0x4fe3d4
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.00502346
lea esp, [ebp + 0x674]
pop ebp
ret
call fcn.00404ca0
call fcn.00506759
call fcn.00506759
int3