Function at 0x417af0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x444901
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xe30
push ebx
push esi
mov ebx, ecx
push edi
lea ecx, [esp + 0x18]
call fcn.00413b40
lea ecx, [esp + 0x14]
mov dword [esp + 0xe44], 0
call fcn.00414930
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe44], 1
call fcn.00417330
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionApp_Paths_
lea edi, [esp + 0x238]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0xf2
lea edi, [esp + 0x26d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0xd
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionUninstall_
lea edi, [esp + 0x638]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
xor eax, eax
mov ecx, 0xf2
lea edi, [esp + 0x66d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor eax, eax
mov al, byte [ebx + 0x2710]
lea ecx, [esp + 0x14]
mov byte [esp + 0xe44], 2
push eax
call fcn.00415b60
mov edx, dword [ebp + 8]
mov edi, 0x446a11
mov esi, edx
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x417e3a
lea eax, [ebx + 0x400]
mov esi, eax
mov ecx, edx
sub esi, edx
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x417bd1
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417be0
lea edi, [esp + 0x238]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417bf1
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x238]
push ecx
push 0x80000002
lea ecx, [esp + 0x24]
call fcn.00417520
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x417e3e
lea edx, [esp + 0x10]
push edx
lea edi, [ebx + 0x1400]
push edi
mov esi, 0x400
push str.Game_Registry
mov dword [esp + 0x1c], esi
call fcn.00417430
push edi
push 0x80000002
lea ecx, [esp + 0x24]
call fcn.00417520
test eax, eax
jne 0x417e3a
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x800]
push ecx
push str.Install_Dir
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.00417430
lea edx, [esp + 0x10]
push edx
lea eax, [ebx + 0xc00]
push eax
push str.Product_GUID
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.00417430
lea eax, [esp + 0x10]
push eax
push ebx
push str.Installed_From
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.00417430
lea ecx, [esp + 0x10]
push ecx
lea edx, [ebx + 0x1c00]
push edx
push str.DisplayName
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.00417430
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x2608]
push ecx
push 0x447d08
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0x104
call fcn.00417430
lea edx, [esp + 0x10]
push edx
lea eax, [ebx + 0x1800]
push eax
push str.Folder
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.00417430
lea edx, [esp + 0x28]
mov eax, edi
sub edx, edi
jmp 0x417d20
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x417d20
lea edi, [esp + 0x28]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x417d30
mov cx, word [0x447218]
mov word [edi], cx
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x417d47
mov edx, dword [0x448e40]
lea eax, [esp + 0x28]
push eax
push 0x80000002
lea ecx, [esp + 0x24]
mov dword [edi], edx
call fcn.00417520
test eax, eax
jne 0x417d85
lea ecx, [ebx + 0x270c]
push ecx
push 0x447d08
lea ecx, [esp + 0x24]
call fcn.00417490
jmp 0x417d8f
mov dword [ebx + 0x270c], 1
lea eax, [ebx + 0xc00]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x417d97
lea edi, [esp + 0x638]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x417da8
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea edx, [esp + 0x638]
push edx
rep movsb byte es:[edi], byte [esi]
push 0x80000002
lea ecx, [esp + 0x24]
call fcn.00417520
test eax, eax
jne 0x417e3a
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x1000]
push ecx
push str.LogFile
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0x400
call fcn.00417430
add ebx, 0x2400
push ebx
lea ecx, [esp + 0x1c]
call fcn.00413530
lea edx, [esp + 0x130]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push 0x400
lea eax, [esp + 0xa3c]
push eax
lea ecx, [esp + 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe44], 1
call fcn.004174c0
lea ecx, [esp + 0x14]
mov byte [esp + 0xe44], 0
call fcn.00415b50
lea ecx, [esp + 0x18]
mov dword [esp + 0xe44], 0xffffffff
call fcn.00415b50
mov ecx, dword [esp + 0xe3c]
pop edi
pop esi
xor al, al
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4