Function at 0x42d4e0
Capabilities:
Check if file exists
Enumerate processes
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x50125b
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x55ec40]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov al, byte [ebp + 0x10]
mov edi, dword [ebp + 8]
push 0
push 2
mov dword [ebp - 0x684], edi
mov byte [ebp - 0x67d], al
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
push 0x228
mov dword [ebp - 0x684], eax
lea eax, [ebp - 0x678]
push 0
push eax
mov dword [ebp - 0x67c], 0x22c
call fcn.004d1bb0
add esp, 0xc
lea eax, [ebp - 0x67c]
push eax
push dword [ebp - 0x684]
call sub.KERNEL32.dll_Process32FirstW
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x42d72e
nop
mov eax, dword [ebp - 0x674]
cmp eax, dword [ebp + 0xc]
jne 0x42d714
cmp byte [ebp - 0x67d], 0
cmovne eax, dword [ebp - 0x664]
push eax
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x42d70e
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004d1bb0
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x208
push eax
push 0
push esi
call sub.KERNEL32.dll_K32GetModuleFileNameExW
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
xorps xmm0, xmm0
mov dword [ebp - 0x440], 0
lea ecx, [ebp - 0x420]
mov dword [ebp - 0x43c], 0
movups xmmword [ebp - 0x450], xmm0
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42d600
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x450]
call fcn.0042a890
lea eax, [ebp - 0x450]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x438]
push eax
call fcn.00430aa0
add esp, 8
mov ecx, dword [ebp - 0x43c]
mov byte [ebp - 4], 2
cmp ecx, 7
jbe 0x42d683
mov edx, dword [ebp - 0x450]
lea ecx, [ecx*2 + 2]
mov eax, edx
cmp ecx, 0x1000
jb 0x42d679
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d7f4
push ecx
push edx
call fcn.004cefc9
add esp, 8
cmp dword [ebp - 0x424], 0xf
lea eax, [ebp - 0x438]
cmova eax, dword [ebp - 0x438]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x42d6b0
shr eax, 4
not al
test al, 1
jne 0x42d775
mov ecx, dword [ebp - 0x424]
mov dword [ebp - 4], 0xffffffff
cmp ecx, 0xf
jbe 0x42d6f1
mov edx, dword [ebp - 0x438]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d6e7
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d7f4
push ecx
push edx
call fcn.004cefc9
add esp, 8
mov dword [ebp - 0x428], 0
mov dword [ebp - 0x424], 0xf
mov byte [ebp - 0x438], 0
jmp 0x42d714
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x67c]
push eax
push dword [ebp - 0x684]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x42d570
push dword [ebp - 0x684]
call esi
xorps xmm0, xmm0
mov ecx, edi
push 0
movups xmmword [edi], xmm0
push 0x504683
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.00413600
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004cefd7
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x684]
call esi
cmp dword [ebp - 0x424], 0xf
lea eax, [ebp - 0x438]
push 0x7e
cmova eax, dword [ebp - 0x438]
push eax
call fcn.004d1df0
add esp, 8
test eax, eax
lea eax, [ebp - 0x438]
push eax
je 0x42d7b2
push edi
call fcn.0042de90
add esp, 8
jmp 0x42d7b9
mov ecx, edi
call fcn.00422cc0
mov ecx, dword [ebp - 0x424]
cmp ecx, 0xf
jbe 0x42d758
mov edx, dword [ebp - 0x438]
inc ecx
mov eax, edx
cmp ecx, 0x1000
jb 0x42d7e5
mov edx, dword [eax - 4]
add ecx, 0x23
sub eax, edx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x42d7f4
push ecx
push edx
call fcn.004cefc9
add esp, 8
jmp 0x42d758
call fcn.004d529e
int3