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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov dword [ebp - 0x20], str._Install_
mov dword [ebp - 0x1c], str._Windows_
mov dword [ebp - 0x18], str._System_
mov dword [ebp - 0x14], str._SystemX86_
mov dword [ebp - 0x10], str._ProgramFiles_
mov dword [ebp - 0xc], str._ProgramFilesX86_
mov dword [ebp - 8], str._AppData_
mov dword [ebp - 0x44], 0x43980a
mov dword [ebp - 0x24], 7
mov dword [ebp - 0x4c], 0
jmp 0x419f97
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x24]
jae 0x419fcf
push 0x105
call fcn.0042d4d8
add esp, 4
mov dword [ebp - 0x54], eax
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x54]
mov dword [ebp + edx*4 - 0x40], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ebp + ecx*4 - 0x40], 0
jne 0x419fcd
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp - 0x44]
mov dword [ebp + edx*4 - 0x40], eax
jmp 0x419f8e
mov ecx, dword [ebp - 0x40]
cmp ecx, dword [ebp - 0x44]
je 0x41a033
push 0x452550
call fcn.0042ad30
add esp, 4
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0x104
jbe 0x419ff7
mov dword [ebp - 0x50], 0x104
mov edx, dword [ebp - 0x50]
push edx
push 0x452550
mov eax, dword [ebp - 0x40]
push eax
call fcn.0042ac00
add esp, 0xc
cmp dword [ebp - 0x50], 0
jbe 0x41a02a
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x50]
movsx edx, byte [ecx - 1]
cmp edx, 0x5c
jne 0x41a02a
mov eax, dword [ebp - 0x50]
sub eax, 1
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x40]
add ecx, dword [ebp - 0x50]
mov byte [ecx], 0
mov edx, dword [ebp - 0x3c]
cmp edx, dword [ebp - 0x44]
je 0x41a051
push 0x105
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWindowsDirectoryA]
mov ecx, dword [ebp - 0x3c]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x38]
cmp edx, dword [ebp - 0x44]
je 0x41a06f
push 0x105
mov eax, dword [ebp - 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov ecx, dword [ebp - 0x38]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x34]
cmp edx, dword [ebp - 0x44]
je 0x41a08d
push 0x105
mov eax, dword [ebp - 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemWow64DirectoryA]
mov ecx, dword [ebp - 0x34]
mov byte [ecx + eax], 0
mov edx, dword [ebp - 0x34]
movsx eax, byte [edx]
test eax, eax
jne 0x41a0a7
mov ecx, dword [ebp - 0x38]
push ecx
mov edx, dword [ebp - 0x34]
push edx
call fcn.0042ae40
add esp, 8
mov eax, dword [ebp - 0x30]
cmp eax, dword [ebp - 0x44]
je 0x41a0cb
mov ecx, dword [ebp - 0x30]
push ecx
push 1
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x41a0cb
mov edx, dword [ebp - 0x30]
mov byte [edx], 0
mov eax, dword [ebp - 0x2c]
cmp eax, dword [ebp - 0x44]
je 0x41a0ef
mov ecx, dword [ebp - 0x2c]
push ecx
push 1
push 0
push 0x2a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x41a0ef
mov edx, dword [ebp - 0x2c]
mov byte [edx], 0
mov eax, dword [ebp - 0x28]
cmp eax, dword [ebp - 0x44]
je 0x41a113
mov ecx, dword [ebp - 0x28]
push ecx
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jge 0x41a113
mov edx, dword [ebp - 0x28]
mov byte [edx], 0
push 0
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x40]
push ecx
lea edx, [ebp - 0x20]
push edx
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
call fcn.00419c20
add esp, 0x20
mov dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
add edx, 1
push edx
call fcn.0042d4d8
add esp, 4
mov dword [ebp - 0x58], eax
mov eax, dword [ebp - 0x58]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x41a183
push 0
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x40]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x48]
push eax
mov ecx, dword [ebp - 4]
push ecx
call fcn.00419c20
add esp, 0x20
mov edx, dword [ebp - 4]
mov byte [edx + eax], 0
mov dword [ebp - 0x4c], 0
jmp 0x41a195
mov eax, dword [ebp - 0x4c]
add eax, 1
mov dword [ebp - 0x4c], eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x24]
jae 0x41a1c1
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + edx*4 - 0x40]
cmp eax, dword [ebp - 0x44]
je 0x41a1bf
mov ecx, dword [ebp - 0x4c]
mov edx, dword [ebp + ecx*4 - 0x40]
mov dword [ebp - 0x5c], edx
mov eax, dword [ebp - 0x5c]
push eax
call fcn.0042c947
add esp, 4
jmp 0x41a18c
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret