Function at 0x405bbc
Capabilities:
Enumerate processes

Disassembly:
push ebp
lea ebp, [esp - 0x4d4]
sub esp, 0x550
mov eax, dword [0x413118]
xor eax, ebp
mov dword [ebp + 0x4d0], eax
push ebx
push esi
push edi
xor ebx, ebx
mov esi, 0x103
push esi
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 esi
lea eax, [ebp + 0x2c9]
push ebx
push eax
mov byte [ebp + 0x2c8], bl
call sub.MSVCR100.dll_memset
push esi
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 edi, [esi + 1]
cmp eax, 0xffffffff
je 0x405e01
lea ecx, [ebp - 0x68]
push ecx
push eax
mov dword [ebp - 0x68], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x405c63
push dword [ebp - 0x70]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405e01
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov dword [ebp - 0x74], eax
mov eax, dword [ebp - 0x74]
cmp dword [ebp - 0x60], eax
je 0x405c86
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 0x70]
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405c6c
jmp 0x405c90
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 0x405e01
push edi
lea eax, [ebp + 0x2c8]
push eax
push dword [ebp - 0x7c]
call fcn.004058a6
add esp, 0xc
test al, al
je 0x405e01
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 0x405e01
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 0x405ce4
sub eax, dword [ebp - 0x70]
push eax
push ecx
lea eax, [ebp + 0x1c4]
push edi
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 edi
push eax
call fcn.00405ab0
add esp, 0x1c
test al, al
jne 0x405d4e
push edi
lea eax, [ebp + 0x3cc]
push eax
push dword [ebp - 0x74]
call fcn.004058a6
add esp, 0xc
test al, al
je 0x405e01
lea eax, [ebp + 0x3cc]
push 0x5c
push eax
call dword [sym.imp.MSVCR100.dll__mbsrchr]
pop ecx
pop ecx
cmp eax, ebx
je 0x405e01
mov byte [eax], bl
lea eax, [ebp + 0x2c8]
push eax
lea eax, [ebp + 0x3cc]
push eax
call fcn.00405a50
pop ecx
pop ecx
test al, al
jne 0x405d9a
push 1
lea eax, [ebp + 0x3cc]
push edi
push eax
call fcn.00405ab0
add esp, 0xc
test al, al
je 0x405e01
lea eax, [ebp + 0x2c8]
push eax
lea eax, [ebp + 0x3cc]
push eax
call fcn.00405a50
pop ecx
pop ecx
test al, al
je 0x405e01
mov dword [ebp - 0x70], 0x412c08
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 0x405dac
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 0x405dc1
sub eax, ecx
cmp dword [ebp - 0x74], ebx
jbe 0x405dee
cmp dword [ebp - 0x74], eax
jne 0x405dee
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 0x405dfd
add dword [ebp - 0x70], 4
cmp dword [ebp - 0x70], 0x412c10
jl 0x405da1
jmp 0x405e01
mov byte [ebp - 0x6a], 1
push esi
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 edi
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 0x405e53
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.0040ad48
add ebp, 0x4d4
leave
ret