Function at 0x401480
Capabilities:
Get common file path

Disassembly:
mov ecx, dword [0x407bac]
sub esp, 0x638
lea eax, [esp + 0x38]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push esi
push edi
push 0x100
push eax
push ecx
call ebp
lea edx, [esp + 0x48]
push 0x407030
push edx
call fcn.00401960
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4014f0
lea eax, [esp + 0x48]
lea ecx, [esp + 0x248]
push eax
push str.Cannot_open__s.
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0x254]
push edx
call fcn.00401150
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x638
ret
push 2
push 0
push ebx
call fcn.00401e98
add esp, 0xc
push 0
push ebx
call fcn.00401d40
add esp, 4
sub eax, 0x38
push eax
push ebx
call fcn.00401e98
push ebx
push 0x38
push 1
push 0x407b70
call fcn.00401c58
add esp, 0x1c
mov ecx, 8
mov edi, str.SaxSetup
mov esi, 0x407ba0
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x40153e
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x401562
push str.Setup.exe_is_damaged.
call fcn.00401150
push ebx
call fcn.00401a1f
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x638
ret
mov ecx, dword [0x407bac]
lea eax, [esp + 0x148]
push 0x100
push eax
push ecx
call ebp
push 0x100
lea edx, [esp + 0x14c]
push 0x407a64
push edx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov eax, dword [0x407b70]
push 0
push eax
push ebx
mov dword [0x407bb4], 1
call fcn.00401e98
add esp, 0xc
push 0x407bb8
push 0x100
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push 0x407bb8
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov edi, eax
xor esi, esi
add edi, 0x407bb8
xor ebp, ebp
test esi, esi
jne 0x40164d
mov eax, dword [0x407bb4]
test eax, eax
mov eax, str._setup_d.exe
jne 0x4015e9
mov eax, str._setup_d.dll
push ebp
push eax
push edi
call dword [sym.imp.USER32.dll_wsprintfA]
push 0x407030
push 0x407bb8
call fcn.00401960
add esp, 0x14
test eax, eax
je 0x401615
push eax
call fcn.00401a1f
add esp, 4
xor esi, esi
jmp 0x401629
push 0x4070c4
push 0x407bb8
call fcn.00401960
add esp, 8
mov esi, eax
inc ebp
cmp ebp, 0x64
jl 0x4015d2
test esi, esi
jne 0x40164d
push str.Cannot_create_temporary_setup_file.
call fcn.00401150
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x638
ret
push ebx
call fcn.00401000
mov edi, eax
push esi
push edi
call fcn.00401850
push 0
push edi
call fcn.00401030
mov edx, dword [0x407104]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0x24]
rep stosd dword es:[edi], eax
mov ecx, dword [str.SaxSetup]
lea eax, [esp + 0x38]
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], edx
mov edx, dword [0x407b84]
lea ecx, [esp + 0x34]
push eax
mov eax, dword [0x407b80]
push ecx
push edx
push eax
push esi
push ebx
call fcn.00401780
add esp, 0x2c
test eax, eax
je 0x40174c
mov eax, dword [0x407b8c]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x28]
push ecx
mov ecx, dword [0x407b88]
push edx
push eax
push ecx
push esi
push ebx
call fcn.00401780
add esp, 0x18
test eax, eax
je 0x40174c
mov ecx, dword [0x407b94]
lea edx, [esp + 0x34]
lea eax, [esp + 0x30]
push edx
mov edx, dword [0x407b90]
push eax
push ecx
push edx
push esi
push ebx
call fcn.00401780
add esp, 0x18
test eax, eax
je 0x40174c
mov edx, dword [0x407b9c]
lea eax, [esp + 0x3c]
lea ecx, [esp + 0x38]
push eax
mov eax, dword [0x407b98]
push ecx
push edx
push eax
push esi
push ebx
call fcn.00401780
add esp, 0x18
test eax, eax
je 0x40174c
push esi
push 0x38
lea ecx, [esp + 0x18]
push 1
push ecx
call fcn.00401b4e
push esi
call fcn.00401a1f
push ebx
call fcn.00401a1f
add esp, 0x18
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x638
ret
push ebx
call fcn.00401a1f
push esi
call fcn.00401a1f
push str.Cannot_copy_setup_information_r_nto_temporary_file.
call fcn.00401150
add esp, 0xc
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x638
ret