Function at 0x457a50
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5b9976
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x6319d0]
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, dword [ebp + 8]
call fcn.0046d4f0
test eax, eax
je 0x457b03
push 0
push str.CInstallWA1_::_CleanUpSourcePath_n
push 0x683eb0
call fcn.00599ee3
mov eax, dword [str.ENTRY:]
mov ecx, dword [0x5ccf7c]
mov dword [0x683db0], eax
mov eax, 0x683eb0
add esp, 0xc
mov dword [0x683db4], ecx
mov esi, eax
jmp 0x457ac0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x457ac0
mov edi, 0x683db0
sub eax, esi
dec edi
nop
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x457ad0
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d500
push 0x683db0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
push 0x104
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 1
push reloc.OLEAUT32.dll_SysReAllocString
xor esi, esi
push str.SoftwareMicrosoftWindowsCurrentVersion
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x21c], esi
call fcn.0047c120
lea eax, [ebp - 0x420]
push eax
lea ecx, [ebp - 0x218]
push ecx
push str.ProgramFilesDir
lea edx, [ebp - 0x410]
push edx
lea ecx, [ebp - 0x414]
mov dword [ebp - 0x420], 0x104
call fcn.0047b3d0
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x418]
call fcn.00403380
mov ecx, dword [ebp - 0x418]
mov dword [ebp - 4], esi
cmp dword [ecx - 0xc], esi
jle 0x457bf9
push 0x5c
push ecx
call fcn.0059c2c0
add esp, 8
cmp eax, esi
je 0x457bf9
sub eax, dword [ebp - 0x418]
cmp eax, 0xffffffff
je 0x457bf9
push eax
lea ecx, [ebp - 0x41c]
push ecx
lea ecx, [ebp - 0x418]
call fcn.004024f0
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 1
call fcn.00402af0
mov eax, dword [ebp - 0x41c]
add eax, 0xfffffff0
mov byte [ebp - 4], 0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457be6
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0x418]
push ecx
push str._SYSTEMDRIVE_
mov ecx, ebx
call fcn.00408720
lea edx, [ebp - 0x114]
push edx
push str._HOMEDRIVE_
mov ecx, ebx
call fcn.00408720
lea eax, [ebp - 0x114]
push eax
push str._SYSTEMROOT_
mov ecx, ebx
call fcn.00408720
lea ecx, [ebp - 0x114]
push ecx
push str._WINDIR_
mov ecx, ebx
call fcn.00408720
lea edx, [ebp - 0x218]
push edx
push str._PROGRAMFILES_
mov ecx, ebx
call fcn.00408720
mov eax, dword [ebx]
push 0x5c
push eax
call fcn.0059aa24
add esp, 8
cmp eax, esi
jne 0x457c5b
or eax, 0xffffffff
jmp 0x457c5d
sub eax, dword [ebx]
mov ecx, dword [ebx]
mov edx, dword [ecx - 0xc]
dec edx
cmp eax, edx
jne 0x457c87
push 0x5c
push ecx
call fcn.0059aa24
add esp, 8
cmp eax, esi
je 0x457c87
sub eax, dword [ebx]
cmp eax, 0xffffffff
je 0x457c87
push 1
push eax
mov ecx, ebx
call fcn.00407710
call fcn.0046d4f0
test eax, eax
je 0x457d04
push esi
push str.CInstallWA1_::_CleanUpSourcePath_n
push 0x683cb0
call fcn.00599ee3
mov eax, dword [str.EXIT:]
mov ecx, dword [0x5ccefc]
mov dword [0x683bb0], eax
mov eax, 0x683cb0
mov dword [0x683bb4], ecx
add esp, 0xc
mov ecx, eax
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x457cc0
mov edi, 0x683bb0
sub eax, ecx
mov esi, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x457cd1
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
push 0x683bb0
rep movsb byte es:[edi], byte [esi]
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d9d0
call fcn.0046d6a0
mov ecx, eax
call fcn.0046d510
mov eax, dword [ebp - 0x418]
add eax, 0xfffffff0
mov dword [ebp - 4], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x457d2d
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
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.00599ed4
mov esp, ebp
pop ebp
ret 4