Function at 0x4507e0
Capabilities:
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47fb4d
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x4b5200]
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 ebx, ecx
xorps xmm0, xmm0
mov dword [ebp - 0x2c], 0
movq qword [ebp - 0x34], xmm0
mov dword [ebp - 0x34], 0
mov dword [ebp - 4], 0
movq qword [ebp - 0x20], xmm0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], 0
mov byte [ebp - 0x18], 1
mov byte [ebp - 4], 1
push 0x20a
mov byte [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
call fcn.0046b90c
add esp, 4
mov esi, eax
xor eax, eax
mov dword [ebp - 0x34], esi
push esi
push eax
push eax
push 0x26
mov word [esi + 0x208], ax
push eax
mov word [esi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
xor eax, eax
mov byte [ebp - 0x2c], 0
cmp word [esi], ax
je 0x45089d
nop dword [eax]
inc eax
cmp word [esi + eax*2], 0
jne 0x450890
mov dword [ebp - 0x30], eax
jmp 0x4508a2
mov dword [ebp - 0x30], eax
xor eax, eax
xor ecx, ecx
inc ecx
cmp word [ecx*2 + 0x4a96b8], 0
jne 0x4508a4
add eax, ecx
mov edx, 2
mov dword [ebp - 0x14], eax
xor ecx, ecx
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
movzx ecx, word [esi]
add esp, 4
mov dword [ebp - 0x28], eax
mov edx, eax
mov edi, ecx
test cx, cx
je 0x4508f3
mov edi, esi
sub edi, eax
mov word [edx], cx
add edx, 2
movzx eax, word [edi + edx]
mov ecx, eax
test ax, ax
jne 0x4508e2
mov edi, 0x4a96b8
mov ecx, 0x5c
sub edi, edx
nop
mov word [edx], cx
lea edx, [edx + 2]
movzx eax, word [edi + edx]
mov ecx, eax
test ax, ax
jne 0x450900
xor eax, eax
push esi
mov word [edx], ax
call fcn.0046b303
mov eax, dword [ebp - 0x28]
add esp, 4
cmp dword [ebx + 0x994], 0
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x2c], 1
jne 0x450953
push 2
call fcn.0046b90c
add esp, 4
mov dword [ebx + 0x994], eax
xor ecx, ecx
mov word [eax], cx
mov dword [ebx + 0x998], ecx
mov edi, dword [ebx + 0x994]
xor esi, esi
mov byte [ebx + 0x99c], 1
mov byte [ebp - 0x18], 0
test edi, edi
je 0x450978
cmp word [edi], si
je 0x450978
nop
inc esi
cmp word [edi + esi*2], 0
jne 0x450970
xor ecx, ecx
mov dword [ebp - 0x1c], esi
lea eax, [esi + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], ebx
test esi, esi
jle 0x4509b5
mov ecx, ebx
sub edi, ebx
mov edx, esi
mov ax, word [ecx + edi]
mov word [ecx], ax
add ecx, 2
sub edx, 1
jne 0x4509a6
xor eax, eax
mov byte [ebp - 0x18], 1
push ecx
lea ecx, [ebp - 0x20]
mov word [ebx + esi*2], ax
call fcn.00402f70
push 0
push 1
push 0xffffffffffffffff
push 1
push 0x49faa8
lea ecx, [ebp - 0x20]
call fcn.00402380
mov edi, dword [ebp - 0x20]
mov esi, dword [ebp - 0x1c]
cmp eax, 2
jle 0x450a17
dec eax
test esi, esi
jne 0x450a01
test edi, edi
je 0x4509fe
cmp word [edi], si
je 0x4509fe
inc esi
cmp word [edi + esi*2], 0
jne 0x4509f6
mov dword [ebp - 0x1c], esi
cmp esi, eax
setge byte [ebp - 0x18]
jl 0x450a17
cmovl eax, esi
mov esi, eax
xor eax, eax
mov dword [ebp - 0x1c], esi
mov word [edi + esi*2], ax
mov ecx, dword [ebp - 0x28]
mov byte [ebp - 0x2c], 1
cmp edi, ecx
je 0x450a4b
test edi, edi
je 0x450e7f
mov eax, edi
mov ebx, ecx
sub eax, ecx
mov dword [ebp - 0x24], eax
movzx eax, word [eax + ebx]
mov ecx, eax
test ax, ax
jne 0x450e32
cmp word [ebx], ax
jne 0x450e37
mov byte [ebp - 0x18], 0
test esi, esi
jne 0x450a6b
test edi, edi
je 0x450a68
cmp word [edi], si
je 0x450a68
nop dword [eax]
inc esi
cmp word [edi + esi*2], 0
jne 0x450a60
mov dword [ebp - 0x1c], esi
cmp esi, 0x104
jge 0x450aa5
xor esi, esi
mov ebx, edi
push 0x20a
mov dword [ebp - 0x1c], esi
call fcn.0046b90c
mov edi, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], edi
mov word [edi + 0x208], ax
mov word [edi], ax
test ebx, ebx
je 0x450aa5
push ebx
call fcn.0046b303
add esp, 4
xor eax, eax
push edi
push eax
push eax
push 0x10
push eax
mov word [edi], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov byte [ebp - 0x18], 0
test esi, esi
jne 0x450ace
cmp word [edi], si
je 0x450acb
inc esi
cmp word [edi + esi*2], 0
jne 0x450ac3
mov dword [ebp - 0x1c], esi
xor eax, eax
inc eax
cmp word [eax*2 + str.Clear_Disk_Info.lnk], 0
jne 0x450ad0
add esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
movzx ecx, word [edi]
add esp, 4
mov dword [ebp - 0x24], eax
mov edx, eax
mov ebx, ecx
test cx, cx
je 0x450b21
mov ebx, edi
sub ebx, eax
nop dword [eax]
mov word [edx], cx
add edx, 2
movzx eax, word [edx + ebx]
mov ecx, eax
test ax, ax
jne 0x450b10
mov ebx, str.Clear_Disk_Info.lnk
mov ecx, 0x5c
sub ebx, edx
nop dword [eax]
mov word [edx], cx
lea edx, [edx + 2]
movzx eax, word [edx + ebx]
mov ecx, eax
test ax, ax
jne 0x450b30
xor eax, eax
push edi
mov word [edx], ax
call fcn.0046b303
mov edi, dword [ebp - 0x24]
add esp, 4
mov ebx, edi
mov dword [ebp - 0x1c], esi
mov edx, 2
mov dword [ebp - 0x20], ebx
mov ecx, edi
mov byte [ebp - 0x18], 1
call fcn.00409210
call fcn.0044e320
call fcn.00426200
mov dword [ebp - 0x14], 0
push str.HKCUSoftwareClearDiskInfo
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.00404610
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x450b9f
cmp eax, 0xffffffff
je 0x450b9f
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x14], 0
push str.HKLMSOFTWAREMicrosoftWindowsCurrentVersionUninstallClear_Disk_Info
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00404610
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x450bce
cmp eax, 0xffffffff
je 0x450bce
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x18], 0
test esi, esi
jne 0x450beb
cmp word [edi], si
je 0x450be8
nop dword [eax + eax]
inc esi
cmp word [edi + esi*2], 0
jne 0x450be0
mov dword [ebp - 0x1c], esi
cmp esi, 0x104
jge 0x450c1f
xor esi, esi
push 0x20a
mov dword [ebp - 0x1c], esi
call fcn.0046b90c
mov ebx, eax
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], ebx
mov word [ebx + 0x208], ax
push edi
mov word [ebx], ax
call fcn.0046b303
add esp, 4
xor eax, eax
push ebx
push eax
push eax
push 0x25
push eax
mov word [ebx], ax
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov byte [ebp - 0x18], 0
test esi, esi
jne 0x450c4b
cmp word [ebx], si
je 0x450c48
nop dword [eax]
inc esi
cmp word [ebx + esi*2], 0
jne 0x450c40
mov dword [ebp - 0x1c], esi
xor eax, eax
nop dword [eax]
inc eax
cmp word [eax*2 + str.cmd.exe], 0
jne 0x450c50
add eax, esi
xor ecx, ecx
mov dword [ebp - 0x24], eax
mov edx, 2
inc eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
mov edi, eax
add esp, 4
movzx eax, word [ebx]
mov ecx, edi
mov edx, eax
test ax, ax
je 0x450ca1
mov esi, ebx
sub esi, edi
nop dword [eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [ecx + esi]
mov edx, eax
test ax, ax
jne 0x450c90
mov esi, str.cmd.exe
mov edx, 0x5c
sub esi, ecx
nop dword [eax]
mov word [ecx], dx
lea ecx, [ecx + 2]
movzx eax, word [ecx + esi]
mov edx, eax
test ax, ax
jne 0x450cb0
xor eax, eax
push ebx
mov word [ecx], ax
call fcn.0046b303
mov eax, dword [ebp - 0x24]
xorps xmm0, xmm0
mov ecx, dword [ebp - 0x28]
add esp, 4
mov dword [ebp - 0x20], edi
xor esi, esi
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 1
movq qword [ebp - 0x40], xmm0
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x2c], 1
mov dword [ebp - 0x24], ecx
nop word [eax + eax]
inc esi
cmp word [esi*2 + str.__c_for__L__i_in__1__1__300__do_rd__s__q__], 0
jne 0x450d00
xor eax, eax
cmp word [ecx], ax
je 0x450d1d
inc eax
cmp word [ecx + eax*2], 0
jne 0x450d13
add esi, eax
xor eax, eax
nop
inc eax
cmp word [eax*2 + 0x49ffb8], 0
jne 0x450d20
add esi, eax
xor ecx, ecx
mov edx, 2
lea eax, [esi + 1]
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0046b90c
mov ebx, str.__c_for__L__i_in__1__1__300__do_rd__s__q__
mov dword [ebp - 0x14], eax
add esp, 4
mov ecx, eax
mov edx, 0x20
sub ebx, eax
nop dword [eax + eax]
mov word [ecx], dx
add ecx, 2
movzx eax, word [ebx + ecx]
mov edx, eax
test ax, ax
jne 0x450d60
mov eax, dword [ebp - 0x28]
mov ebx, 0x49ffb8
movzx eax, word [eax]
mov edx, eax
test ax, ax
je 0x450d9c
mov ebx, dword [ebp - 0x24]
mov word [ecx], ax
lea ebx, [ebx + 2]
movzx eax, word [ebx]
add ecx, 2
test ax, ax
jne 0x450d86
mov ebx, 0x49ffb8
mov eax, 0x22
mov word [ecx], ax
lea ebx, [ebx + 2]
movzx eax, word [ebx]
add ecx, 2
test ax, ax
jne 0x450da1
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov word [ecx], ax
mov dword [ebp - 0x40], ebx
mov dword [ebp - 0x3c], esi
push ecx
push eax
mov byte [ebp - 4], 4
mov edx, ebx
push eax
mov ecx, edi
mov byte [ebp - 0x38], 1
mov byte [ebp - 0x18], 1
call fcn.0040b800
mov esi, eax
test esi, esi
je 0x450df1
cmp esi, 0xffffffff
je 0x450df1
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
xor esi, esi
call fcn.0046b303
add esp, 4
test edi, edi
je 0x450e09
push edi
call fcn.0046b303
add esp, 4
push dword [ebp - 0x28]
call fcn.0046b303
add esp, 4
mov eax, esi
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.0046b2f5
mov esp, ebp
pop ebp
ret
cmp ax, word [ebx]
je 0x450e74
xor edx, edx
cmp dx, ax
jne 0x450e43
mov dword [ebp - 0x14], edx
jmp 0x450e52
push ecx
call fcn.0046f530
movzx eax, ax
add esp, 4
mov dword [ebp - 0x14], eax
movzx eax, word [ebx]
xor edx, edx
mov ecx, eax
cmp dx, ax
jne 0x450e62
xor eax, eax
jmp 0x450e6e
push ecx
call fcn.0046f530
add esp, 4
movzx eax, ax
cmp word [ebp - 0x14], ax
jne 0x450e7f
mov eax, dword [ebp - 0x24]
add ebx, 2
jmp 0x450a33
or esi, 0xffffffff
jmp 0x450dfc