Function at 0x454160
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5050ad
mov eax, dword fs:[0]
push eax
sub esp, 0x248
mov eax, dword [0x567e00]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
test edi, edi
je 0x454388
cmp word [edi], 0
je 0x454388
test esi, esi
je 0x454388
push 0x228
lea eax, [ebp - 0x250]
mov dword [ebp - 0x254], 0x22c
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x454214
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x4541f0
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_CreateToolhelp32Snapshot:_0x_08x.
push str.kupdate::KProcessUtils::GetProcessPid
push 0x98
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412230
add esp, 0x18
jmp 0x4543a6
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x454346
lea esp, [esp]
lea eax, [ebp - 0x230]
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 8
test eax, eax
jne 0x454272
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x45425e
mov eax, dword [ebp - 0x24c]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x45431a
lea eax, [ebp - 0x24c]
push eax
push ecx
mov ecx, esi
call fcn.00452970
jmp 0x45431a
push 1
push dword [ebp - 0x24c]
lea eax, [ebp - 0x28]
push eax
call fcn.00453dd0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
add esp, 0x14
test eax, eax
jne 0x4542c9
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
je 0x4542ba
mov eax, dword [ebp - 0x24c]
mov dword [ecx], eax
add dword [esi + 4], 4
jmp 0x4542c9
lea eax, [ebp - 0x24c]
push eax
push ecx
mov ecx, esi
call fcn.00452970
mov edx, dword [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x454306
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4542fc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x454340
push edx
push ecx
call fcn.004c6f6f
add esp, 8
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x254]
push eax
push ebx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x454230
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
setne al
jmp 0x4543a8
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x454358
movzx eax, ax
or eax, 0x80070000
push eax
push str.Failed_Process32First:_0x_08x.
push str.kupdate::KProcessUtils::GetProcessPid
push 0xb0
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412230
add esp, 0x18
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi]
cmp eax, dword [esi + 4]
setne al
jmp 0x4543a8
push str.Invalid_Args.
push str.kupdate::KProcessUtils::GetProcessPid
push 0x8f
push str.D:_rc_bug_mas_v12_2408Coding_supportwpsupdateUpdateClient_srcutilKProcessUtils.cpp
push 0
call fcn.00412230
add esp, 0x14
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004c6f8b
mov esp, ebp
pop ebp
ret