Function at 0x405bd3
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x544
mov eax, dword [0x41a174]
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 0x405e49
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x128
push eax
push esi
call sub.kernel32.dll_Process32First
test eax, eax
jne 0x405c64
push esi
call dword [sym.imp.kernel32.dll_CloseHandle]
jmp 0x405e49
call dword [sym.imp.kernel32.dll_GetCurrentProcessId]
mov ebp, eax
cmp dword [esp + 0x20], ebp
je 0x405c83
lea eax, [esp + 0x18]
push eax
push esi
call sub.kernel32.dll_Process32Next
test eax, eax
jne 0x405c6c
jmp 0x405c8d
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 0x405e49
push 0x104
lea eax, [esp + 0x248]
push eax
push edi
call fcn.00406c67
add esp, 0xc
test al, al
je 0x405e49
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 0x405e49
lea edx, [esi + 1]
mov ecx, edx
lea ebx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ce0
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.00406e86
add esp, 0x1c
test al, al
jne 0x405d4c
push ebx
lea eax, [esp + 0x144]
push eax
push ebp
call fcn.00406c67
add esp, 0xc
test al, al
je 0x405e45
lea eax, [esp + 0x140]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x405e45
mov byte [eax], 0
push ebx
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406e0c
add esp, 0x10
test al, al
jne 0x405df0
push 1
lea eax, [esp + 0x144]
push ebx
push eax
call fcn.00406e86
add esp, 0xc
test al, al
je 0x405da3
push ebx
lea eax, [esp + 0x248]
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406e0c
add esp, 0x10
test al, al
jne 0x405df0
push ebx
lea eax, [esp + 0x144]
push eax
push ebp
call fcn.00406c67
add esp, 0xc
test al, al
je 0x405e45
lea eax, [esp + 0x140]
push 0x5c
push eax
call edi
pop ecx
pop ecx
test eax, eax
je 0x405e45
mov byte [eax], 0
lea eax, [esp + 0x244]
push ebx
push eax
lea eax, [esp + 0x148]
push ebx
push eax
call fcn.00406e0c
add esp, 0x10
test al, al
je 0x405e45
mov esi, 0x419cd8
mov ecx, dword [esi]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405dfa
sub ecx, edx
lea edx, [esp + 0x348]
lea edi, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x405e0d
sub edx, edi
test ecx, ecx
je 0x405e3a
cmp ecx, edx
jne 0x405e3a
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 0x405ebb
add esi, 4
cmp esi, 0x419ce0
jl 0x405df5
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.00402e32
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 0x405ea0
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.0040baa8
add esp, 0x544
ret
mov bh, 1
jmp 0x405e49