Function at 0x405bac
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x544
mov eax, dword [0x41b1b4]
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 0x405e22
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x405c3d
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x405e22
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov ebp, eax
cmp dword [esp + 0x20], ebp
je 0x405c5c
lea eax, [esp + 0x18]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x405c45
jmp 0x405c66
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 0x405e22
push 0x104
lea eax, [esp + 0x248]
push eax
push edi
call fcn.00406c6d
add esp, 0xc
test al, al
je 0x405e22
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 0x405e22
lea edx, [esi + 1]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405cb9
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.00406e8c
add esp, 0x1c
test al, al
jne 0x405d25
push ebx
lea eax, [esp + 0x144]
push eax
push ebp
call fcn.00406c6d
add esp, 0xc
test al, al
je 0x405e1e
lea eax, [esp + 0x140]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x405e1e
mov byte [eax], 0
push ebx
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406e12
add esp, 0x10
test al, al
jne 0x405dc9
push 1
lea eax, [esp + 0x144]
push ebx
push eax
call fcn.00406e8c
add esp, 0xc
test al, al
je 0x405d7c
push ebx
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406e12
add esp, 0x10
test al, al
jne 0x405dc9
push ebx
lea eax, [esp + 0x144]
push eax
push ebp
call fcn.00406c6d
add esp, 0xc
test al, al
je 0x405e1e
lea eax, [esp + 0x140]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x405e1e
mov byte [eax], 0
lea eax, [esp + 0x244]
push ebx
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406e12
add esp, 0x10
test al, al
je 0x405e1e
mov esi, 0x41ad20
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405dd3
sub ecx, edx
lea edx, [esp + 0x348]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405de6
sub edx, edi
test ecx, ecx
je 0x405e13
cmp ecx, edx
jne 0x405e13
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 0x405e94
add esi, 4
cmp esi, 0x41ad28
jl 0x405dce
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.00402f91
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 0x405e79
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.0040c2bc
add esp, 0x544
ret
mov bh, 1
jmp 0x405e22