Function at 0x40bb23
Capabilities:
Enumerate processes
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x479132
mov eax, dword fs:[0]
push eax
sub esp, 0xb4c
mov eax, dword [0x4997d0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
and dword [ebp - 0xa0], 0
xor eax, eax
mov word [ebp - 0x2ac], ax
push 0x206
push 0
lea eax, [ebp - 0x2aa]
push eax
call fcn.0044b400
add esp, 0xc
lea eax, [ebp - 0xab1]
mov dword [ebp - 0xab0], eax
lea eax, [ebp - 0x2e8]
mov dword [ebp - 0xb48], eax
and dword [ebp - 4], 0
push 0
push 0
lea ecx, [ebp - 0x2e8]
call fcn.00401f59
mov dword [ebp - 4], 1
and dword [ebp - 0x2cc], 0
lea eax, [ebp - 0xabd]
mov dword [ebp - 0xabc], eax
lea eax, [ebp - 0x2c8]
mov dword [ebp - 0xb4c], eax
mov byte [ebp - 4], 2
push 0
push 0
lea ecx, [ebp - 0x2c8]
call fcn.00401f59
mov byte [ebp - 4], 3
lea eax, [ebp - 0x2c8]
push eax
push dword [ebp + 8]
call fcn.00405576
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x40bc57
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
push str._Sys_wrapper__OpenProcessIdByName_u8to16_fail
push 0x482183
push 4
call fcn.0040479d
add esp, 0xc
or dword [ebp - 0xa9c], 0xffffffff
mov byte [ebp - 4], 4
push 0
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00401f59
mov byte [ebp - 4], 1
mov dword [ebp - 4], 5
push 0
push 1
lea ecx, [ebp - 0x2e8]
call fcn.00401f59
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xa9c]
jmp 0x40c344
lea eax, [ebp - 0x2e8]
push eax
lea eax, [ebp - 0x2c8]
push eax
call fcn.00403749
pop ecx
pop ecx
movzx eax, al
test eax, eax
jne 0x40bcd6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
push str._Sys_wrapper__OpenProcessIdByName_extract_name_fail
push 0x48218e
push 4
call fcn.0040479d
add esp, 0xc
or dword [ebp - 0xaa0], 0xffffffff
mov byte [ebp - 4], 6
push 0
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00401f59
mov byte [ebp - 4], 1
mov dword [ebp - 4], 7
push 0
push 1
lea ecx, [ebp - 0x2e8]
call fcn.00401f59
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0xaa0]
jmp 0x40c344
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0xa4], eax
cmp dword [ebp - 0xa4], 0xffffffff
je 0x40c2e6
and dword [ebp - 0x51c], 0
push 0x228
push 0
lea eax, [ebp - 0x518]
push eax
call fcn.0044b400
add esp, 0xc
mov dword [ebp - 0x51c], 0x22c
lea eax, [ebp - 0x51c]
push eax
push dword [ebp - 0xa4]
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x40c2d8
lea eax, [ebp - 0xac9]
mov dword [ebp - 0xac8], eax
lea eax, [ebp - 0x538]
mov dword [ebp - 0xb50], eax
mov byte [ebp - 4], 8
push 0
push 0
lea ecx, [ebp - 0x538]
call fcn.00401f59
mov byte [ebp - 4], 9
lea eax, [ebp - 0x4f8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401d61
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x538]
push eax
lea eax, [ebp - 0x2c]
push eax
call fcn.00403749
pop ecx
pop ecx
movzx eax, al
neg eax
sbb eax, eax
inc eax
mov byte [ebp - 0xaa1], al
mov byte [ebp - 4], 0xb
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.00401f59
mov byte [ebp - 4], 9
movzx eax, byte [ebp - 0xaa1]
test eax, eax
je 0x40bdd0
mov byte [ebp - 4], 0xc
push 0
push 1
lea ecx, [ebp - 0x538]
call fcn.00401f59
mov byte [ebp - 4], 3
jmp 0x40c2be
lea ecx, [ebp - 0x538]
call fcn.0040759c
mov dword [ebp - 0xae0], eax
lea ecx, [ebp - 0x2e8]
call fcn.0040759c
mov dword [ebp - 0xae4], eax
push dword [ebp - 0xae0]
push dword [ebp - 0xae4]
call fcn.0044c282
pop ecx
pop ecx
test eax, eax
jne 0x40c2a7
push dword [ebp - 0x514]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0xa0], eax
cmp dword [ebp - 0xa0], 0
je 0x40c281
push 0x104
lea eax, [ebp - 0x2ac]
push eax
push 0
push dword [ebp - 0xa0]
call sub.PSAPI.DLL_GetModuleFileNameExW
mov dword [ebp - 0xa78], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
lea eax, [ebp - 0xaed]
mov dword [ebp - 0xaec], eax
lea eax, [ebp - 0x968]
mov dword [ebp - 0xb54], eax
mov byte [ebp - 4], 0xd
push 0
push 0
lea ecx, [ebp - 0x968]
call fcn.00401ecc
mov byte [ebp - 4], 0xe
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401d61
mov byte [ebp - 4], 0xf
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x48]
push eax
call fcn.004056c3
pop ecx
pop ecx
mov byte [ebp - 4], 0x10
push 0
push 1
lea ecx, [ebp - 0x48]
call fcn.00401f59
mov byte [ebp - 4], 0xe
push dword [ebp - 0x2cc]
push dword [ebp - 0xa78]
lea ecx, [ebp - 0x968]
call fcn.004238c5
push eax
push str._Sys_wrapper__OpenProcessIdByName_GetModuleFileNameExW_active:_s_len:_d___err:_d
push 0x48218f
push 0
call fcn.0040479d
add esp, 0x18
lea ecx, [ebp - 0x2c8]
call fcn.0040759c
mov dword [ebp - 0xb04], eax
push dword [ebp - 0xb04]
lea eax, [ebp - 0x2ac]
push eax
call fcn.0044c282
pop ecx
pop ecx
test eax, eax
jne 0x40bf4e
mov byte [ebp - 4], 0x11
push 0
push 1
lea ecx, [ebp - 0x968]
call fcn.00401ecc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0x12
push 0
push 1
lea ecx, [ebp - 0x538]
call fcn.00401f59
mov byte [ebp - 4], 3
jmp 0x40c2d8
xor eax, eax
mov word [ebp - 0x94c], ax
push 0x40e
push 0
lea eax, [ebp - 0x94a]
push eax
call fcn.0044b400
add esp, 0xc
push 0x208
lea eax, [ebp - 0x94c]
push eax
push dword [ebp - 0xa0]
call sub.PSAPI.DLL_GetProcessImageFileNameW
mov dword [ebp - 0xa78], eax
cmp dword [ebp - 0xa78], 0
jbe 0x40c128
lea eax, [ebp - 0xb0d]
mov dword [ebp - 0xb0c], eax
lea eax, [ebp - 0xa98]
mov dword [ebp - 0xb58], eax
mov byte [ebp - 4], 0x13
push 0
push 0
lea ecx, [ebp - 0xa98]
call fcn.00401ecc
mov byte [ebp - 4], 0x14
lea eax, [ebp - 0x94c]
push eax
lea ecx, [ebp - 0x64]
call fcn.00401d61
mov byte [ebp - 4], 0x15
lea eax, [ebp - 0xa98]
push eax
lea eax, [ebp - 0x64]
push eax
call fcn.004056c3
pop ecx
pop ecx
mov byte [ebp - 4], 0x16
push 0
push 1
lea ecx, [ebp - 0x64]
call fcn.00401f59
mov byte [ebp - 4], 0x14
push dword [ebp - 0xa78]
lea ecx, [ebp - 0xa98]
call fcn.004238c5
push eax
push str._Sys_wrapper__OpenProcessIdByName_GetProcessImageFileNameW__image:_s_len:_d_
push 0x482209
push 0
call fcn.0040479d
add esp, 0x14
push 0x104
lea eax, [ebp - 0x2ac]
push eax
lea eax, [ebp - 0x94c]
push eax
lea ecx, [ebp - 0xa79]
call fcn.0041227f
lea eax, [ebp - 0x2ac]
push eax
lea ecx, [ebp - 0x80]
call fcn.00401d61
mov byte [ebp - 4], 0x17
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.004056c3
pop ecx
pop ecx
mov byte [ebp - 4], 0x18
push 0
push 1
lea ecx, [ebp - 0x80]
call fcn.00401f59
mov byte [ebp - 4], 0x14
lea ecx, [ebp - 0x968]
call fcn.004238c5
push eax
push str._Sys_wrapper__OpenProcessIdByName_DosDevicePath2LogicalPath_got_active:_s
push 0x48220a
push 0
call fcn.0040479d
add esp, 0x10
lea ecx, [ebp - 0x2c8]
call fcn.0040759c
mov dword [ebp - 0xb34], eax
push dword [ebp - 0xb34]
lea eax, [ebp - 0x2ac]
push eax
call fcn.0044c282
pop ecx
pop ecx
test eax, eax
jne 0x40c10f
mov byte [ebp - 4], 0x19
push 0
push 1
lea ecx, [ebp - 0xa98]
call fcn.00401ecc
mov byte [ebp - 4], 0xe
mov byte [ebp - 4], 0x1a
push 0
push 1
lea ecx, [ebp - 0x968]
call fcn.00401ecc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0x1b
push 0
push 1
lea ecx, [ebp - 0x538]
call fcn.00401f59
mov byte [ebp - 4], 3
jmp 0x40c2d8
mov byte [ebp - 4], 0x1c
push 0
push 1
lea ecx, [ebp - 0xa98]
call fcn.00401ecc
mov byte [ebp - 4], 0xe
jmp 0x40c14e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
push dword [ebp - 0x2cc]
push str._Sys_wrapper__OpenProcessIdByName_GetProcessImageFileNameW_FAIL__err:_d
push 0x48220b
push 4
call fcn.0040479d
add esp, 0x10
mov byte [ebp - 0xa74], 0
push 0x103
push 0
lea eax, [ebp - 0xa73]
push eax
call fcn.0044b400
add esp, 0xc
push 0x104
lea eax, [ebp - 0xa74]
push eax
push dword [ebp - 0x514]
lea ecx, [ebp - 0xa79]
call fcn.0041215b
test eax, eax
je 0x40c241
lea eax, [ebp - 0xa74]
push eax
lea ecx, [ebp - 0x9c]
call fcn.00401c41
mov byte [ebp - 4], 0x1d
lea eax, [ebp - 0x968]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00405e91
pop ecx
pop ecx
mov byte [ebp - 4], 0x1e
push 0
push 1
lea ecx, [ebp - 0x9c]
call fcn.00401ecc
mov byte [ebp - 4], 0xe
lea ecx, [ebp - 0x968]
call fcn.004238c5
push eax
push str._Sys_wrapper__OpenProcessIdByName_RetrieveGameImagePath_active:_s
push 0x48220e
push 0
call fcn.0040479d
add esp, 0x10
push dword [ebp + 8]
lea ecx, [ebp - 0x968]
call fcn.00411221
neg eax
sbb eax, eax
inc eax
movzx eax, al
test eax, eax
je 0x40c23f
mov byte [ebp - 4], 0x1f
push 0
push 1
lea ecx, [ebp - 0x968]
call fcn.00401ecc
mov byte [ebp - 4], 9
mov byte [ebp - 4], 0x20
push 0
push 1
lea ecx, [ebp - 0x538]
call fcn.00401f59
mov byte [ebp - 4], 3
jmp 0x40c2d8
jmp 0x40c255
push str._Sys_wrapper__OpenProcessIdByName_RetrieveGameImagePath_FAIL
push 0x48220f
push 0
call fcn.0040479d
add esp, 0xc
push dword [ebp - 0xa0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0xa0], 0
mov byte [ebp - 4], 0x21
push 0
push 1
lea ecx, [ebp - 0x968]
call fcn.00401ecc
mov byte [ebp - 4], 9
jmp 0x40c2a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
push dword [ebp - 0x2cc]
push str._Sys_wrapper__OpenProcessIdByName_OpenProcess_fail__err:_d
push 0x482256
push 4
call fcn.0040479d
add esp, 0x10
mov byte [ebp - 4], 0x22
push 0
push 1
lea ecx, [ebp - 0x538]
call fcn.00401f59
mov byte [ebp - 4], 3
lea eax, [ebp - 0x51c]
push eax
push dword [ebp - 0xa4]
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x40bd33
push dword [ebp - 0xa4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40c30c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x2cc], eax
push dword [ebp - 0x2cc]
push str._Sys_wrapper__OpenProcessIdByName_CreateToolhelp32Snapshot_fail__err:_d
push 0x482257
push 4
call fcn.0040479d
add esp, 0x10
mov eax, dword [ebp - 0xa0]
mov dword [ebp - 0xaa8], eax
mov byte [ebp - 4], 0x23
push 0
push 1
lea ecx, [ebp - 0x2c8]
call fcn.00401f59
mov byte [ebp - 4], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2e8]
call fcn.00401dd5
mov eax, dword [ebp - 0xaa8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b3ec
leave
ret