Function at 0x405fbd
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x4d4]
sub esp, 0x550
mov eax, dword [0x41517c]
xor eax, ebp
mov dword [ebp + 0x4d0], eax
push ebx
push esi
push edi
xor ebx, ebx
mov edi, 0x103
push edi
lea eax, [ebp + 0x3cd]
push ebx
push eax
mov dword [ebp - 0x7c], ebx
mov byte [ebp - 0x69], bl
mov byte [ebp + 0x3cc], bl
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp + 0x2c9]
push ebx
push eax
mov byte [ebp + 0x2c8], bl
call sub.MSVCR100.dll_memset
push edi
lea eax, [ebp + 0x1c5]
push ebx
push eax
mov byte [ebp + 0x1c4], bl
call sub.MSVCR100.dll_memset
add esp, 0x24
push ebx
push 2
mov byte [ebp - 0x6a], bl
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x70], eax
lea esi, [edi + 1]
cmp eax, 0xffffffff
je 0x40625a
lea ecx, [ebp - 0x68]
push ecx
push eax
mov dword [ebp - 0x68], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x406064
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40625a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x60], eax
je 0x406087
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x40606d
jmp 0x406091
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x7c], eax
mov byte [ebp - 0x69], 1
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x69], bl
je 0x40625a
push esi
lea eax, [ebp + 0x2c8]
push eax
push dword [ebp - 0x7c]
call fcn.00405ca0
add esp, 0xc
test al, al
je 0x40625a
lea eax, [ebp + 0x2c8]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll__mbsrchr]
pop ecx
pop ecx
mov dword [ebp - 0x78], eax
cmp eax, ebx
je 0x40625a
lea ecx, [eax + 1]
mov eax, ecx
lea edx, [eax + 1]
mov dword [ebp - 0x70], edx
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4060e5
sub eax, dword [ebp - 0x70]
push eax
push ecx
lea eax, [ebp + 0x1c4]
push esi
push eax
call dword [sym.imp.MSVCR100.dll__mbsnbcpy_s]
mov eax, dword [ebp - 0x78]
push ebx
mov byte [eax], bl
lea eax, [ebp + 0x3cc]
push esi
push eax
call fcn.00405ec0
add esp, 0x1c
test al, al
jne 0x40614f
push esi
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp - 0x74]
call fcn.00405ca0
add esp, 0xc
test al, al
je 0x40625a
lea eax, [ebp + 0x3cc]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll__mbsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x40625a
mov byte [eax], bl
push esi
lea eax, [ebp + 0x2c8]
push eax
lea eax, [ebp + 0x3cc]
push esi
push eax
call fcn.00405e4a
add esp, 0x10
cmp al, bl
jne 0x4061f3
push 1
lea eax, [ebp + 0x3cc]
push esi
push eax
call fcn.00405ec0
add esp, 0xc
cmp al, bl
je 0x4061a1
push esi
lea eax, [ebp + 0x2c8]
push eax
lea eax, [ebp + 0x3cc]
push esi
push eax
call fcn.00405e4a
add esp, 0x10
cmp al, bl
jne 0x4061f3
push esi
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp - 0x74]
call fcn.00405ca0
add esp, 0xc
test al, al
je 0x40625a
lea eax, [ebp + 0x3cc]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll__mbsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x40625a
mov byte [eax], bl
push esi
lea eax, [ebp + 0x2c8]
push eax
lea eax, [ebp + 0x3cc]
push esi
push eax
call fcn.00405e4a
add esp, 0x10
test al, al
je 0x40625a
mov dword [ebp - 0x70], 0x414c68
mov eax, dword [ebp - 0x70]
mov eax, dword [eax]
mov dword [ebp - 0x78], eax
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x406205
sub eax, ecx
mov dword [ebp - 0x74], eax
lea eax, [ebp + 0x1c4]
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40621a
sub eax, ecx
cmp dword [ebp - 0x74], ebx
jbe 0x406247
cmp dword [ebp - 0x74], eax
jne 0x406247
push dword [ebp - 0x74]
lea eax, [ebp + 0x1c4]
push eax
push dword [ebp - 0x78]
call dword [sym.imp.MSVCR100.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
je 0x406256
add dword [ebp - 0x70], 4
cmp dword [ebp - 0x70], 0x414c70
jl 0x4061fa
jmp 0x40625a
mov byte [ebp - 0x6a], 1
push edi
lea eax, [ebp + 0xc1]
push ebx
push eax
mov byte [ebp + 0xc0], bl
call sub.MSVCR100.dll_memset
push dword [ebp - 0x7c]
lea eax, [ebp + 0xc0]
push str.JP2LReadyEvent__d
push esi
push eax
call dword [sym.imp.MSVCR100.dll__snprintf]
add esp, 0x1c
lea eax, [ebp + 0xc0]
push eax
push ebx
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
cmp esi, ebx
je 0x4062ac
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp + 0x4d0]
mov al, byte [ebp - 0x6a]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040bcaf
add ebp, 0x4d4
leave
ret