Function at 0x412a40
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x421686
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x220
push ebx
push ebp
mov ebp, ecx
push esi
push edi
lea ecx, [esp + 0x14]
mov dword [esp + 0x20], ebp
call fcn.0041ee30
mov edi, 0x42ad60
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x12c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x238], 0
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [esp + 0x12c]
test al, al
jne 0x412ac8
lea ecx, [esp + 0x14]
mov dword [esp + 0x238], 0xffffffff
call fcn.0041ef60
xor eax, eax
jmp 0x412d5a
lea edi, [esp + 0x12c]
or ecx, 0xffffffff
xor eax, eax
mov ebx, dword [sym.imp.USER32.dll_CharPrevA]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x12c]
mov cl, byte [esp + ecx + 0x12c]
cmp cl, 0x5c
je 0x412b02
lea ecx, [esp + 0x12c]
push eax
push ecx
call ebx
cmp byte [eax], 0x5c
jne 0x412af2
push eax
call dword [sym.imp.USER32.dll_CharNextA]
mov dword [esp + 0x24], eax
mov edi, 0x42a100
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov eax, ecx
mov esi, edi
mov edi, edx
add ebp, 0x140
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea esi, [esp + 0x28]
mov eax, ebp
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x412b6f
test cl, cl
je 0x412b6b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x412b6f
add eax, 2
add esi, 2
test cl, cl
jne 0x412b4b
xor eax, eax
jmp 0x412b74
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x412b84
push 0x104
push ebp
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0x20]
not ecx
dec ecx
lea eax, [ecx + eax + 0x140]
push eax
push ebp
call ebx
cmp byte [eax], 0x5c
je 0x412bce
mov edi, 0x4250bc
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x24]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x28]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x240]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
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 + 0x28]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + ecx + 0x28]
lea ecx, [esp + 0x28]
push eax
push ecx
call ebx
cmp byte [eax], 0x5c
je 0x412c6d
or ebx, 0xffffffff
mov edi, 0x4250bc
mov ecx, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x28]
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x412c70
or ebx, 0xffffffff
mov edi, 0x42ad60
mov ecx, ebx
xor eax, eax
lea edx, [esp + 0x28]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
mov ecx, ebx
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x28]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x18]
call fcn.0041eff0
mov edi, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
lea esi, [edi + 0x264]
mov ecx, esi
call fcn.0041d9e0
test al, al
je 0x412cec
mov ecx, edi
call fcn.00412890
mov ecx, edi
call fcn.004129b0
push ebp
lea ecx, [esp + 0x18]
call fcn.0041eff0
lea edx, [esp + 0x14]
mov ecx, esi
push edx
call fcn.0041dd10
test al, al
jne 0x412d00
lea ecx, [esp + 0x14]
mov dword [esp + 0x238], ebx
call fcn.0041ef60
xor eax, eax
jmp 0x412d5a
lea ecx, [esp + 0x10]
call fcn.0040b130
mov edi, ebp
mov ecx, ebx
xor eax, eax
mov byte [esp + 0x238], 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push ebp
push 1
push str.ACME_STF
push str.SoftwareMicrosoftVisualStudio6.0Setup_
push eax
lea ecx, [esp + 0x28]
call fcn.0040b220
lea ecx, [esp + 0x10]
mov byte [esp + 0x238], 0
call fcn.0040b140
lea ecx, [esp + 0x14]
mov dword [esp + 0x238], ebx
call fcn.0041ef60
mov eax, 1
mov ecx, dword [esp + 0x230]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x22c
ret 4