Function at 0x437040
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x491706
push eax
mov dword fs:[0], esp
sub esp, 0x808
push ebx
push esi
push edi
call fcn.0044bde0
xor ebx, ebx
test eax, eax
je 0x437101
push ebp
push ebx
lea eax, [esp + 0x320]
push str.CInstallWA1_::_CleanUpSourcePath_n
push eax
call fcn.00471c30
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.0044bd70
mov ecx, eax
call fcn.0044be10
lea eax, [esp + 0x11c]
push eax
call fcn.0044bd70
mov ecx, eax
call fcn.0044c180
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.00457c00
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.00458470
lea edx, [esp + 0x14]
lea ecx, [esp + 0xc]
push edx
call fcn.004822f6
push 0x5c
lea ecx, [esp + 0x10]
mov dword [esp + 0x820], ebx
call fcn.00482703
mov esi, dword [esp + 0x824]
cmp eax, 0xffffffff
je 0x4371c3
push eax
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
call fcn.004811c6
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x820], 1
call fcn.00482375
lea ecx, [esp + 0x10]
mov byte [esp + 0x81c], bl
call fcn.00482288
mov ecx, dword [esp + 0xc]
push ecx
push str._SYSTEMDRIVE_
mov ecx, esi
call fcn.00480f00
lea edx, [esp + 0x14]
mov ecx, esi
push edx
push str._HOMEDRIVE_
call fcn.00480f00
lea eax, [esp + 0x14]
mov ecx, esi
push eax
push str._SYSTEMROOT_
call fcn.00480f00
lea ecx, [esp + 0x14]
push ecx
push str._WINDIR_
mov ecx, esi
call fcn.00480f00
lea edx, [esp + 0x418]
mov ecx, esi
push edx
push str._PROGRAMFILES_
call fcn.00480f00
mov eax, dword [esi]
push 0x5c
mov ecx, esi
mov edi, dword [eax - 8]
call fcn.0048123e
dec edi
cmp eax, edi
jne 0x437235
push 0x5c
mov ecx, esi
call fcn.0048123e
cmp eax, 0xffffffff
je 0x437235
push 1
push eax
mov ecx, esi
call fcn.00480e6b
call fcn.0044bde0
test eax, eax
je 0x4372d4
push ebx
lea ecx, [esp + 0x520]
push str.CInstallWA1_::_CleanUpSourcePath_n
push ecx
call fcn.00471c30
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.0044bd70
mov ecx, eax
call fcn.0044c180
call fcn.0044bd70
mov ecx, eax
call fcn.0044be20
lea ecx, [esp + 0xc]
mov dword [esp + 0x81c], 0xffffffff
call fcn.00482288
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x814
ret 4