Function at 0x478ee0
Capabilities:
Enumerate processes
Get disk information
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59aa06
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x62819c]
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 eax, dword [ebp + 0xc]
xor ebx, ebx
mov esi, dword [ebp + 8]
push 0x208
mov dword [ebp - 0x664], eax
lea eax, [ebp - 0x218]
push ebx
push eax
mov dword [ebp - 0x65c], esi
call fcn.0054b380
push 0x22c
lea eax, [ebp - 0x64c]
push ebx
push eax
call fcn.0054b380
add esp, 0x18
mov dword [ebp - 0x654], ebx
mov dword [ebp - 0x658], ebx
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4793eb
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x650], eax
mov dword [ebp - 4], ebx
call fcn.0047e9e0
mov eax, dword [0x60247c]
cmp eax, 0xffffffff
jne 0x478fb8
push 0x5b8438
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x478fcd
push 0x60247c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x478fcd
mov eax, dword [0x60247c]
test eax, eax
je 0x478fd7
call fcn.00428a90
mov ecx, eax
test ecx, ecx
je 0x4793f5
jmp 0x478fe6
mov dword [0x60247c], 0
test esi, esi
jne 0x479126
xor ecx, ecx
jmp 0x47913f
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x660], eax
push 0x208
lea eax, [ebp - 0x420]
mov byte [ebp - 4], 1
push 0
push eax
call fcn.0054b380
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x660]
push 0x5b83e0
push eax
call fcn.0042bf70
mov edi, dword [ebp - 0x660]
lea eax, [ebp - 0x420]
add esp, 0x18
push 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
lea ecx, [ebp - 0x420]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479045
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x650]
call fcn.00429870
mov esi, dword [ebp - 0x650]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x4790ad
lea eax, [ecx - 1]
test eax, eax
js 0x4793ff
cmp eax, ecx
jg 0x4793ff
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x4790ad
cmp eax, 0x2f
je 0x4790ad
push 1
push 0x5ad728
lea ecx, [ebp - 0x650]
call fcn.00429240
mov esi, dword [ebp - 0x650]
mov edx, dword [ebp - 0x65c]
mov ecx, edx
lea eax, [ecx + 2]
mov dword [ebp - 0x65c], eax
mov edi, edi
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4790c0
sub ecx, dword [ebp - 0x65c]
sar ecx, 1
cmp ecx, 3
jbe 0x479108
add edx, 6
jne 0x4790e1
xor ecx, ecx
jmp 0x4790f5
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4790e6
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x650]
call fcn.00429240
mov esi, dword [ebp - 0x650]
mov byte [ebp - 4], 0
add edi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [edi + 0xc], eax
dec eax
test eax, eax
jg 0x479152
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x479152
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x479130
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x479130
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x650]
call fcn.00429870
mov esi, dword [ebp - 0x650]
cmp dword [esi - 0xc], 4
push esi
jg 0x47917c
push str.704_tKFunction::KillProcessByPath_tKillProcessByPath_path_to_short:_ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallKFunction.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x14
xor ebx, ebx
jmp 0x4793ae
push str.708_tKFunction::KillProcessByPath_tKillProcessByPath_path:_ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallKFunction.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x14
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x65c], edi
cmp edi, 0xffffffff
je 0x479396
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47938f
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
mov edx, eax
mov dword [ebp - 0x660], edx
nop
mov ecx, dword [ebp - 0x644]
cmp ecx, edx
je 0x479369
test ecx, ecx
je 0x479369
cmp ecx, 4
je 0x479369
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x479369
mov ecx, dword [0x60247c]
cmp ecx, 0xffffffff
jne 0x479257
push 0x5b8438
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x479275
push 0x60247c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x479275
mov ecx, dword [0x60247c]
test ecx, ecx
je 0x47927f
mov eax, dword [0x631950]
test eax, eax
je 0x47927f
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
call eax
jmp 0x47929d
mov dword [0x60247c], 0
mov eax, dword [0x63194c]
test eax, eax
je 0x47935a
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x47935a
cmp dword [ebp + 0x10], 0
mov ecx, dword [esi - 0xc]
je 0x4792f5
cmp eax, ecx
jle 0x47935a
push ecx
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.005559a2
add esp, 0xc
test eax, eax
jne 0x47935a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x644]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.747_tKFunction::KillProcessByPath_tTerminate_Process_return:_d__error:_d__pid:_d__path:_ws
jmp 0x479331
cmp eax, ecx
jne 0x47935a
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.00555852
add esp, 8
test eax, eax
jne 0x47935a
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov edi, eax
lea eax, [ebp - 0x218]
push eax
push dword [ebp - 0x644]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push edi
push str.757_tKFunction::KillProcessByPath_tTerminate_Process_return:_d__error:_d__pid:_d__path:_ws
push str.H:_rc_v11_i18n_20230711_branchCoding_support_newsetup_srccommonappKUninstallKFunction.cpp
push str._INFO_
push 0x631888
call fcn.004677c0
add esp, 0x20
test edi, edi
jne 0x479354
inc dword [ebp - 0x658]
jmp 0x47935a
inc dword [ebp - 0x654]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [ebp - 0x65c]
xor ebx, ebx
lea eax, [ebp - 0x64c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
mov edx, dword [ebp - 0x660]
test eax, eax
jne 0x4791e0
test ebx, ebx
je 0x47938f
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x664]
test ecx, ecx
je 0x4793a8
mov eax, dword [ebp - 0x654]
mov dword [ecx], eax
mov ebx, dword [ebp - 0x658]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4793cd
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, ebx
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.00545ec7
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.004293d0
push 0x80004005
call fcn.004293d0
push 0x80070057
call fcn.004293d0
int3