Function at 0x40d570
Capabilities:
Check if file exists
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e10b2
mov eax, dword fs:[0]
push eax
sub esp, 0xa88
mov eax, dword [0x51d240]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0xa8c], ebx
mov edi, dword [ebp + 8]
mov dword [ebp - 0xa94], edi
mov dword [ebp - 4], 0
mov dword [ebp - 0xa90], 0
call fcn.00404fb0
mov ecx, eax
test ecx, ecx
je 0x40d8dd
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
cmp dword [ebx + 0xc], 0
push 0x208
mov dword [ebp - 4], 0
mov dword [ebp - 0xa90], 1
push 0
jne 0x40d867
lea eax, [ebp - 0x218]
push eax
call fcn.0048af20
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.0048af20
mov ebx, dword [ebx + 0x10]
add esp, 0x18
push ebx
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0xa84], esi
test esi, esi
je 0x40d6cb
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.0048af20
add esp, 0xc
lea eax, [ebp - 0x420]
push 0x104
push eax
push 0
push esi
call sub.PSAPI.DLL_GetModuleFileNameExW
push dword [ebp - 0xa84]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40d6cb
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFindFileNameW]
mov ebx, eax
lea edx, [ebp - 0x218]
mov eax, edx
mov esi, 0x208
sub ebx, eax
nop dword [eax + eax]
lea ecx, [esi + 0x7ffffdf6]
test ecx, ecx
je 0x40d6be
movzx eax, word [ebx + edx]
test ax, ax
je 0x40d6be
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x40d6a0
test esi, esi
lea eax, [edx - 2]
cmovne eax, edx
jmp 0x40d7d6
push 0
push 2
mov dword [ebp - 0xa84], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40d78c
push 0x228
lea eax, [ebp - 0xa7c]
push 0
push eax
call fcn.0048af20
add esp, 0xc
mov dword [ebp - 0xa80], 0x22c
lea eax, [ebp - 0xa80]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40d785
nop word [eax + eax]
cmp dword [ebp - 0xa78], ebx
je 0x40d73b
lea eax, [ebp - 0xa80]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40d720
jmp 0x40d785
lea ecx, [ebp - 0x218]
mov edx, 0x208
lea ebx, [ebp - 0xa5c]
mov eax, ecx
sub ebx, eax
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x40d76e
movzx eax, word [ebx + ecx]
test ax, ax
je 0x40d76e
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40d750
test edx, edx
mov dword [ebp - 0xa84], 1
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0xa84], 0
jne 0x40d7db
lea ecx, [ebp - 0x218]
mov esi, 0x4f0038
mov eax, ecx
mov edx, 0x208
sub esi, eax
nop dword [eax]
lea eax, [edx + 0x7ffffdf6]
test eax, eax
je 0x40d7ce
movzx eax, word [esi + ecx]
test ax, ax
je 0x40d7ce
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x40d7b0
test edx, edx
lea eax, [ecx - 2]
cmovne eax, ecx
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0xa88]
push eax
call fcn.004a7d9f
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x854]
push eax
call fcn.004a7bed
push dword [ebp - 0x854]
mov eax, dword [ebp - 0x844]
push dword [ebp - 0x850]
inc eax
push dword [ebp - 0x84c]
push dword [ebp - 0x848]
push eax
mov eax, dword [ebp - 0x840]
add eax, 0x76c
push eax
push str._d__02d__02d__02d__02d__02d
lea eax, [ebp - 0x628]
push 0x208
push eax
call dword [sym.imp.SHLWAPI.dll_wnsprintfW]
lea eax, [ebp - 0x628]
push eax
mov eax, dword [ebp - 0xa8c]
lea ecx, [ebp - 0x218]
push dword [eax + 0x10]
push ecx
push dword [eax + 4]
push str._s_s__d__s.dmp
push edi
call fcn.0040d2e0
add esp, 0x48
jmp 0x40d8bd
lea eax, [ebp - 0x830]
push eax
call fcn.0048af20
add esp, 0xc
lea eax, [ebp - 0x830]
push 0x104
push eax
call fcn.0044aa40
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
xor esi, esi
nop
push esi
lea eax, [ebp - 0x830]
push eax
mov eax, dword [ebp - 0xa8c]
push dword [eax + 4]
push str._s_s__03d.dmp
push edi
call fcn.0040d2e0
add esp, 0x14
push dword [edi]
call ebx
test eax, eax
je 0x40d8bd
inc esi
cmp esi, 0xa
jle 0x40d890
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0045345a
mov esp, ebp
pop ebp
ret 4
push 0x80004005
call fcn.00404c90
int3