Function at 0x403000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x42b5b1
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.004070c0
lea ecx, [esp + 0x14]
mov dword [esp + 0xe44], 0
call fcn.00407ae0
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe44], 1
call fcn.00408cf0
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.00407650
mov edx, dword [ebp + 8]
mov edi, 0x42ddd2
mov esi, edx
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40334a
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 0x4030e1
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4030f0
lea edi, [esp + 0x238]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403101
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.00408ea0
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x40334e
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.00408db0
push edi
push 0x80000002
lea ecx, [esp + 0x24]
call fcn.00408ea0
test eax, eax
jne 0x40334a
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.00408db0
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.00408db0
lea eax, [esp + 0x10]
push eax
push ebx
push str.Installed_From
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.00408db0
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.00408db0
lea eax, [esp + 0x10]
push eax
lea ecx, [ebx + 0x2608]
push ecx
push str.Language
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], 0x104
call fcn.00408db0
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.00408db0
lea edx, [esp + 0x28]
mov eax, edi
sub edx, edi
jmp 0x403230
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403230
lea edi, [esp + 0x28]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403240
mov cx, word [0x42e028]
mov word [edi], cx
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x403257
mov edx, dword [0x42e024]
lea eax, [esp + 0x28]
push eax
push 0x80000002
lea ecx, [esp + 0x24]
mov dword [edi], edx
call fcn.00408ea0
test eax, eax
jne 0x403295
lea ecx, [ebx + 0x270c]
push ecx
push str.Language
lea ecx, [esp + 0x24]
call fcn.00408e10
jmp 0x40329f
mov dword [ebx + 0x270c], 1
lea eax, [ebx + 0xc00]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4032a7
lea edi, [esp + 0x638]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4032b8
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.00408ea0
test eax, eax
jne 0x40334a
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.00408db0
add ebx, 0x2400
push ebx
lea ecx, [esp + 0x1c]
call fcn.00406bf0
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.00408e40
lea ecx, [esp + 0x14]
mov byte [esp + 0xe44], 0
call fcn.004067d0
lea ecx, [esp + 0x18]
mov dword [esp + 0xe44], 0xffffffff
call fcn.004067d0
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