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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59b1e6
mov eax, dword fs:[0]
push eax
sub esp, 0x658
mov eax, dword [0x61ce74]
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.00540d70
push 0x22c
lea eax, [ebp - 0x64c]
push ebx
push eax
call fcn.00540d70
add esp, 0x18
mov dword [ebp - 0x654], ebx
mov dword [ebp - 0x658], ebx
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x47496b
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x650], eax
mov dword [ebp - 4], ebx
call fcn.00479c60
mov eax, dword [0x61b7b4]
cmp eax, 0xffffffff
jne 0x474538
push 0x5bdf2c
push 0x5bdef4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x47454d
push 0x61b7b4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x47454d
mov eax, dword [0x61b7b4]
test eax, eax
je 0x474557
call fcn.00421b80
mov ecx, eax
test ecx, ecx
je 0x474975
jmp 0x474566
mov dword [0x61b7b4], 0
test esi, esi
jne 0x4746a6
xor ecx, ecx
jmp 0x4746bf
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.00540d70
movzx eax, word [esi]
push eax
lea eax, [ebp - 0x660]
push 0x5bded4
push eax
call fcn.004289d0
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 0x4745c5
sub ecx, edx
lea eax, [ebp - 0x420]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x650]
call fcn.004263f0
mov esi, dword [ebp - 0x650]
mov ecx, dword [esi - 0xc]
test ecx, ecx
je 0x47462d
lea eax, [ecx - 1]
test eax, eax
js 0x47497f
cmp eax, ecx
jg 0x47497f
movzx eax, word [esi + eax*2]
cmp eax, 0x5c
je 0x47462d
cmp eax, 0x2f
je 0x47462d
push 1
push 0x5b14ac
lea ecx, [ebp - 0x650]
call fcn.00425dc0
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 0x474640
sub ecx, dword [ebp - 0x65c]
sar ecx, 1
cmp ecx, 3
jbe 0x474688
add edx, 6
jne 0x474661
xor ecx, ecx
jmp 0x474675
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474666
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x650]
call fcn.00425dc0
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 0x4746d2
mov ecx, dword [edi]
push edi
mov eax, dword [ecx]
call dword [eax + 4]
jmp 0x4746d2
mov ecx, esi
lea edx, [ecx + 2]
jmp 0x4746b0
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4746b0
sub ecx, edx
sar ecx, 1
push ecx
push esi
lea ecx, [ebp - 0x650]
call fcn.004263f0
mov esi, dword [ebp - 0x650]
cmp dword [esi - 0xc], 4
push esi
jg 0x4746fc
push str.704_tKFunction::KillProcessByPath_tKillProcessByPath_path_to_short:_ws
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallKFunction.cpp
push str._INFO_
push 0x629b08
call fcn.004638c0
add esp, 0x14
xor ebx, ebx
jmp 0x47492e
push str.708_tKFunction::KillProcessByPath_tKillProcessByPath_path:_ws
push str.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallKFunction.cpp
push str._INFO_
push 0x629b08
call fcn.004638c0
add esp, 0x14
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
mov dword [ebp - 0x65c], edi
cmp edi, 0xffffffff
je 0x474916
lea eax, [ebp - 0x64c]
mov dword [ebp - 0x64c], 0x22c
push eax
push edi
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x47490f
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 0x4748e9
test ecx, ecx
je 0x4748e9
cmp ecx, 4
je 0x4748e9
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
test ebx, ebx
je 0x4748e9
mov ecx, dword [0x61b7b4]
cmp ecx, 0xffffffff
jne 0x4747d7
push 0x5bdf2c
push 0x5bdef4
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x4747f5
push 0x61b7b4
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call edi
test eax, eax
je 0x4747f5
mov ecx, dword [0x61b7b4]
test ecx, ecx
je 0x4747ff
mov eax, dword [0x629bd0]
test eax, eax
je 0x4747ff
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push ebx
call eax
jmp 0x47481d
mov dword [0x61b7b4], 0
mov eax, dword [0x629bcc]
test eax, eax
je 0x4748da
push 0x104
lea ecx, [ebp - 0x218]
push ecx
push 0
push ebx
call eax
test eax, eax
je 0x4748da
cmp dword [ebp + 0x10], 0
mov ecx, dword [esi - 0xc]
je 0x474875
cmp eax, ecx
jle 0x4748da
push ecx
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0054b6d1
add esp, 0xc
test eax, eax
jne 0x4748da
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 0x4748b1
cmp eax, ecx
jne 0x4748da
lea eax, [ebp - 0x218]
push eax
push esi
call fcn.0054b581
add esp, 8
test eax, eax
jne 0x4748da
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.T:_tmp_3174_1630465749774Coding_support_newsetup_srccommonappKUninstallKFunction.cpp
push str._INFO_
push 0x629b08
call fcn.004638c0
add esp, 0x20
test edi, edi
jne 0x4748d4
inc dword [ebp - 0x658]
jmp 0x4748da
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 0x474760
test ebx, ebx
je 0x47490f
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 0x474928
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 0x47494d
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.0053d079
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00425f50
push 0x80004005
call fcn.00425f50
push 0x80070057
call fcn.00425f50
int3