Function at 0x42f340
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x484cf6
push eax
mov dword fs:[0], esp
sub esp, 0x808
push ebx
push esi
push edi
call fcn.00441cf0
xor ebx, ebx
test eax, eax
je 0x42f401
push ebp
push ebx
lea eax, [esp + 0x320]
push str.CInstallWA1_::_CleanUpSourcePath_n
push eax
call fcn.00465850
mov edi, str.ENTRY:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x11c]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x11c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x31c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00441d20
lea eax, [esp + 0x11c]
push eax
call fcn.00441c80
mov ecx, eax
call fcn.00442090
pop ebp
lea ecx, [esp + 0x14]
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x80000002
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [esp + 0x624]
call fcn.0044cdb0
lea edx, [esp + 0x10]
lea eax, [esp + 0x418]
push edx
push eax
lea ecx, [esp + 0x628]
push str.ProgramFilesDir
push ecx
lea ecx, [esp + 0x62c]
mov dword [esp + 0x20], 0x104
call fcn.0044d620
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call fcn.00475f16
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x820], ebx
call fcn.00476323
mov esi, dword [esp + 0x824]
cmp eax, 0xffffffff
je 0x42f4c3
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.00474de6
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x820], 1
call fcn.00475f95
lea ecx, [esp + 0x10]
mov byte [esp + 0x81c], bl
call fcn.00475ea8
mov ecx, dword [esp + 0xc]
push ecx
push str._SYSTEMDRIVE_
mov ecx, esi
call fcn.00474b20
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push str._HOMEDRIVE_
call fcn.00474b20
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push str._SYSTEMROOT_
call fcn.00474b20
lea ecx, [esp + 0x14]
push ecx
push str._WINDIR_
mov ecx, esi
call fcn.00474b20
lea edx, [esp + 0x418]
mov ecx, esi
push edx
push str._PROGRAMFILES_
call fcn.00474b20
mov eax, dword [esi]
push 0x5c
mov ecx, esi
mov edi, dword [eax - 8]
call fcn.00474e5e
dec edi
cmp eax, edi
jne 0x42f535
push 0x5c
mov ecx, esi
call fcn.00474e5e
cmp eax, 0xffffffff
je 0x42f535
push 1
push eax
mov ecx, esi
call fcn.00474a8b
call fcn.00441cf0
test eax, eax
je 0x42f5d4
push ebx
lea ecx, [esp + 0x520]
push str.CInstallWA1_::_CleanUpSourcePath_n
push ecx
call fcn.00465850
mov edi, str.EXIT:
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x218]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x218]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x51c]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x218]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.00441c80
mov ecx, eax
call fcn.00442090
call fcn.00441c80
mov ecx, eax
call fcn.00441d30
lea ecx, [esp + 0xc]
mov dword [esp + 0x81c], 0xffffffff
call fcn.00475ea8
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x814
ret 4