Function at 0x412f10
Capabilities:
Enumerate process modules
Enumerate processes
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba2a2
mov eax, dword fs:[0]
push eax
sub esp, 0xaf4
mov eax, dword [0x62dc50]
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
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x117]
push ebx
push eax
mov dword [ebp - 0xaec], ebx
mov byte [ebp - 0x918], bl
mov byte [ebp - 0x118], bl
call fcn.0058c670
add esp, 0xc
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
mov dword [ebp - 0xaf4], esi
cmp esi, 0xffffffff
je 0x4132e0
mov eax, 0xf
mov dword [ebp - 0x93c], eax
mov dword [ebp - 0x940], ebx
mov byte [ebp - 0x950], bl
mov dword [ebp - 4], ebx
mov dword [ebp - 0x920], eax
mov dword [ebp - 0x924], ebx
mov byte [ebp - 0x934], bl
push 0x128
lea ecx, [ebp - 0xae8]
push ebx
push ecx
mov byte [ebp - 4], 1
call fcn.0058c670
push 0x800
lea edx, [ebp - 0x918]
push ebx
push edx
call fcn.0058c670
add esp, 0x18
lea eax, [ebp - 0xae8]
push eax
push esi
mov dword [ebp - 0xae8], 0x128
call dword [sym.imp.KERNEL32.dll_Process32First]
lea ecx, [ebp - 0x118]
push ecx
push 0x104
mov dword [ebp - 0xaf0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edx, [ebp - 0x9c0]
push edx
call fcn.00428f40
mov esi, eax
lea eax, [ebp - 0x988]
push eax
mov byte [ebp - 4], 2
call fcn.004289f0
mov ecx, eax
mov eax, esi
lea ebx, [ebp - 0x96c]
mov byte [ebp - 4], 3
call fcn.0040a820
push eax
mov eax, 0x5eeafc
lea ecx, [ebp - 0x9a4]
mov byte [ebp - 4], 4
call fcn.0040a790
add esp, 0xc
mov edi, eax
lea esi, [ebp - 0x934]
mov byte [ebp - 4], 5
call fcn.00404560
mov edi, 0x10
cmp dword [ebp - 0x990], edi
jb 0x41307e
mov ecx, dword [ebp - 0x9a4]
push ecx
call fcn.0047f7fb
add esp, 4
xor esi, esi
mov ebx, 0xf
mov dword [ebp - 0x990], ebx
mov dword [ebp - 0x994], esi
mov byte [ebp - 0x9a4], 0
cmp dword [ebp - 0x958], edi
jb 0x4130af
mov edx, dword [ebp - 0x96c]
push edx
call fcn.0047f7fb
add esp, 4
mov dword [ebp - 0x958], ebx
mov dword [ebp - 0x95c], esi
mov byte [ebp - 0x96c], 0
cmp dword [ebp - 0x974], edi
jb 0x4130d9
mov eax, dword [ebp - 0x988]
push eax
call fcn.0047f7fb
add esp, 4
mov byte [ebp - 4], 1
mov dword [ebp - 0x974], ebx
mov dword [ebp - 0x978], esi
mov byte [ebp - 0x988], 0
cmp dword [ebp - 0x9ac], edi
jb 0x413107
mov ecx, dword [ebp - 0x9c0]
push ecx
call fcn.0047f7fb
add esp, 4
cmp dword [ebp - 0xaf0], esi
je 0x413230
mov edx, dword [ebp - 0xae0]
push edx
push esi
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0x800
mov ebx, eax
lea eax, [ebp - 0x918]
push esi
push eax
call fcn.0058c670
add esp, 0xc
lea ecx, [ebp - 0xafc]
push ecx
push 4
lea edx, [ebp - 0xaf8]
push edx
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x41320a
mov ecx, dword [ebp - 0xaf8]
push 0x800
lea eax, [ebp - 0x918]
push eax
push ecx
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
lea eax, [ebp - 0x918]
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x413180
sub eax, edx
push eax
lea edx, [ebp - 0x918]
push edx
lea ecx, [ebp - 0x950]
call fcn.004049e0
mov ecx, dword [ebp - 0x934]
cmp dword [ebp - 0x920], edi
jae 0x4131b0
lea ecx, [ebp - 0x934]
mov esi, dword [ebp - 0x940]
mov edi, dword [ebp - 0x924]
mov eax, esi
cmp esi, edi
jb 0x4131c4
mov eax, edi
cmp dword [ebp - 0x93c], 0x10
mov edx, dword [ebp - 0x950]
jae 0x4131d9
lea edx, [ebp - 0x950]
call fcn.00401440
test eax, eax
jne 0x413205
cmp esi, edi
jb 0x413205
cmp esi, edi
setne al
test eax, eax
jne 0x413205
mov eax, dword [ebp - 0xaec]
inc eax
mov dword [ebp - 0xaec], eax
cmp eax, 1
jg 0x413292
xor esi, esi
lea edi, [esi + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xaf4]
lea eax, [ebp - 0xae8]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x413113
lea ebx, [eax + 0xf]
cmp dword [ebp - 0x920], edi
jb 0x413247
mov ecx, dword [ebp - 0x934]
push ecx
call fcn.0047f7fb
add esp, 4
mov dword [ebp - 0x920], ebx
mov dword [ebp - 0x924], esi
mov byte [ebp - 0x934], 0
cmp dword [ebp - 0x93c], edi
jb 0x413271
mov edx, dword [ebp - 0x950]
push edx
call fcn.0047f7fb
add esp, 4
mov eax, 1
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.00587964
mov esp, ebp
pop ebp
ret
mov esi, 0x10
cmp dword [ebp - 0x920], esi
jb 0x4132ae
mov edx, dword [ebp - 0x934]
push edx
call fcn.0047f7fb
add esp, 4
mov dword [ebp - 0x920], 0xf
mov dword [ebp - 0x924], 0
mov byte [ebp - 0x934], 0
cmp dword [ebp - 0x93c], esi
jb 0x4132e0
mov eax, dword [ebp - 0x950]
push eax
call fcn.0047f7fb
add esp, 4
xor eax, eax
jmp 0x413276