Function at 0x405a39
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x544
mov eax, dword [0x41a1d4]
xor eax, esp
mov dword [esp + 0x540], eax
push ebx
push ebp
push esi
push edi
mov esi, 0x104
lea eax, [esp + 0x140]
xor edi, edi
xor bl, bl
push esi
push edi
push eax
mov dword [esp + 0x20], edi
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [esp + 0x254]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
push esi
lea eax, [esp + 0x364]
push edi
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x24
xor bh, bh
mov byte [esp + 0x13], bh
push edi
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x405caf
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x405aca
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405caf
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
cmp dword [esp + 0x20], ebp
je 0x405ae9
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405ad2
jmp 0x405af3
mov edi, dword [esp + 0x30]
mov bl, 1
mov dword [esp + 0x14], edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x405caf
push 0x104
lea eax, [esp + 0x248]
push eax
push edi
call fcn.00406a8c
add esp, 0xc
test al, al
je 0x405caf
mov edi, dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsrchr]
lea eax, [esp + 0x244]
push 0x5c
push eax
call edi
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x405caf
lea edx, [esi + 1]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405b46
sub ecx, ebx
lea eax, [esp + 0x348]
push ecx
push edx
mov ebx, 0x104
push ebx
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcpy_s]
push 0
lea eax, [esp + 0x154]
mov byte [esi], 0
push ebx
push eax
call fcn.00406cab
add esp, 0x1c
test al, al
jne 0x405bb2
push ebx
lea eax, [esp + 0x144]
push eax
push ebp
call fcn.00406a8c
add esp, 0xc
test al, al
je 0x405cab
lea eax, [esp + 0x140]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x405cab
mov byte [eax], 0
push ebx
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406c31
add esp, 0x10
test al, al
jne 0x405c56
push 1
lea eax, [esp + 0x144]
push ebx
push eax
call fcn.00406cab
add esp, 0xc
test al, al
je 0x405c09
push ebx
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406c31
add esp, 0x10
test al, al
jne 0x405c56
push ebx
lea eax, [esp + 0x144]
push eax
push ebp
call fcn.00406a8c
add esp, 0xc
test al, al
je 0x405cab
lea eax, [esp + 0x140]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x405cab
mov byte [eax], 0
lea eax, [esp + 0x244]
push ebx
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406c31
add esp, 0x10
test al, al
je 0x405cab
mov esi, 0x419d40
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405c60
sub ecx, edx
lea edx, [esp + 0x348]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405c73
sub edx, edi
test ecx, ecx
je 0x405ca0
cmp ecx, edx
jne 0x405ca0
push ecx
lea eax, [esp + 0x34c]
push eax
push dword [esi]
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbsnbcmp]
add esp, 0xc
test eax, eax
je 0x405d21
add esi, 4
cmp esi, 0x419d48
jl 0x405c5b
mov bh, byte [esp + 0x13]
mov ebp, 0x104
lea eax, [esp + 0x44c]
push ebp
push 0
push eax
call sub.VCRUNTIME140.dll_memset
push dword [esp + 0x20]
lea eax, [esp + 0x45c]
push str.JP2LReadyEvent__d
push ebp
push eax
call fcn.00402fc4
add esp, 0x1c
lea eax, [esp + 0x44c]
push eax
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, eax
test esi, esi
je 0x405d06
push esi
call dword [sym.imp.KERNEL32.dll_SetEvent]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x550]
mov al, bh
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040bfab
add esp, 0x544
ret
mov bh, 1
jmp 0x405caf