Function at 0x403080
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x429aa1
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.00406d60
lea ecx, [esp + 0x14]
mov dword [esp + 0xe44], 0
call fcn.00407c20
lea ecx, [esp + 0x1c]
mov byte [esp + 0xe44], 1
call fcn.004088e0
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.004072d0
mov edx, dword [ebp + 8]
mov edi, 0x42bdd2
mov esi, edx
mov ecx, 1
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4033ca
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 0x403161
mov edx, eax
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403170
lea edi, [esp + 0x238]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403181
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.00408a90
test eax, eax
lea ecx, [esp + 0x1c]
jne 0x4033ce
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.004089a0
push edi
push 0x80000002
lea ecx, [esp + 0x24]
call fcn.00408a90
test eax, eax
jne 0x4033ca
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.004089a0
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.004089a0
lea eax, [esp + 0x10]
push eax
push ebx
push str.Installed_From
lea ecx, [esp + 0x28]
mov dword [esp + 0x1c], esi
call fcn.004089a0
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.004089a0
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.004089a0
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.004089a0
lea edx, [esp + 0x28]
mov eax, edi
sub edx, edi
jmp 0x4032b0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4032b0
lea edi, [esp + 0x28]
dec edi
nop
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4032c0
mov cx, word [0x42c01c]
mov word [edi], cx
lea edi, [esp + 0x28]
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x4032d7
mov edx, dword [0x42c018]
lea eax, [esp + 0x28]
push eax
push 0x80000002
lea ecx, [esp + 0x24]
mov dword [edi], edx
call fcn.00408a90
test eax, eax
jne 0x403315
lea ecx, [ebx + 0x270c]
push ecx
push str.Language
lea ecx, [esp + 0x24]
call fcn.00408a00
jmp 0x40331f
mov dword [ebx + 0x270c], 1
lea eax, [ebx + 0xc00]
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403327
lea edi, [esp + 0x638]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x403338
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.00408a90
test eax, eax
jne 0x4033ca
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.004089a0
add ebx, 0x2400
push ebx
lea ecx, [esp + 0x1c]
call fcn.00406890
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.00408a30
lea ecx, [esp + 0x14]
mov byte [esp + 0xe44], 0
call fcn.004029f0
lea ecx, [esp + 0x18]
mov dword [esp + 0xe44], 0xffffffff
call fcn.004029f0
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