Function at 0x4036e0
Capabilities:
Get common file path
Read .ini file

Disassembly:
mov eax, 0x1720
call fcn.00407a90
push ebx
push ebp
push esi
push edi
mov ebp, ecx
call fcn.00401060
mov ecx, ebp
mov esi, eax
mov dword [esp + 0x14], 0
call fcn.004010a0
push 0
mov ecx, esi
call fcn.00404a80
mov ecx, esi
call fcn.00404960
lea ebx, [esi + 0x10]
mov edi, eax
push ebx
push edi
call fcn.00406ab0
add esp, 8
cmp eax, 1
jne 0x403ab5
mov ecx, esi
call fcn.00404a60
test eax, eax
je 0x403ab5
mov ecx, esi
call fcn.00404910
mov ecx, dword [0x40f2f4]
mov dword [esp + 0x10], eax
add eax, 4
push ecx
push eax
call fcn.00406ab0
add esp, 8
test eax, eax
jne 0x40386a
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push str._u._u
push edi
call fcn.00407a52
add esp, 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
push str._u._u
push ebx
call fcn.00407a52
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov ebx, dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea edx, [esp + 0x128]
push eax
push ecx
push str._u._u
push edx
call ebx
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x20]
add esp, 0x10
lea edx, [esp + 0x24]
push eax
push ecx
push str._u._u
push edx
call ebx
lea eax, [esp + 0x34]
lea ecx, [esp + 0x138]
push eax
push ecx
call fcn.00406ab0
add esp, 0x18
test eax, eax
je 0x403ab5
mov edx, dword [str.Setup.INI]
mov ecx, esi
push edx
call fcn.004049a0
push eax
lea eax, [esp + 0x234]
push 0x4111b4
push eax
call ebx
mov eax, dword [str.SuppressWin2k]
add esp, 0x10
lea ecx, [esp + 0x22c]
lea edx, [esp + 0x730]
push ecx
mov ecx, dword [str.Startup]
push 0x400
push edx
push 0x413da0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x730]
cmp al, 0x79
je 0x403ab5
cmp al, 0x59
je 0x403ab5
push edi
push 0x4b7
mov dword [0x414870], 0x4b7
call fcn.004060e0
add esp, 8
jmp 0x403ab5
mov ebx, dword [esp + 0x10]
cmp dword [ebx], 2
jne 0x4038a0
call fcn.00406de0
test eax, eax
jne 0x4038a0
push 0x4b2
mov dword [0x414870], 0x4b2
call fcn.004060e0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
mov ecx, 0xff
xor eax, eax
lea edi, [esp + 0x331]
mov byte [esp + 0x330], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x330]
push edx
push 0x400
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
test eax, eax
je 0x4038f0
lea eax, [esp + 0x330]
mov ecx, ebp
push eax
call fcn.00404120
test eax, eax
jne 0x4038f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
lea ecx, [esp + 0x330]
push 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x403925
lea edx, [esp + 0x330]
mov ecx, ebp
push edx
call fcn.00404120
test eax, eax
jne 0x403925
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
mov eax, dword [ebx]
dec eax
je 0x403951
dec eax
jne 0x403989
mov eax, dword [str.INSTMSIW.EXE]
mov ecx, esi
push eax
call fcn.00404fd0
test eax, eax
jne 0x403949
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
mov ecx, dword [str.INSTMSIW.EXE]
jmp 0x403973
mov eax, dword [str.INSTMSIA.EXE]
mov ecx, esi
push eax
call fcn.00404fd0
test eax, eax
jne 0x40396d
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
mov ecx, dword [str.INSTMSIA.EXE]
push ecx
mov ecx, esi
call fcn.004049a0
lea edx, [esp + 0xb34]
push eax
push edx
call fcn.004067d0
lea eax, [esp + 0xb30]
push eax
call fcn.00406950
test eax, eax
jne 0x4039c6
lea ecx, [esp + 0xb30]
mov dword [0x414870], 0x482
push ecx
push 0x482
call fcn.004060e0
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea edx, [esp + 0xb30]
push edx
lea eax, [esp + 0xf34]
push str.__s___q
push eax
call edi
add esp, 0xc
lea ecx, [esp + 0xf30]
push 1
push ecx
call fcn.00406b70
test eax, eax
je 0x403ab5
cmp eax, 0xbc2
je 0x403a26
push 0
push eax
mov dword [0x414870], 0x484
call fcn.00406070
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
mov eax, dword [0x414868]
lea edx, [esp + 0x730]
push 0x400
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0x24]
lea edx, [esp + 0x1330]
push ecx
lea eax, [esp + 0x734]
push edx
push eax
call fcn.00406710
mov ecx, dword [str.Setup.INI]
lea edx, [esp + 0x1330]
push ecx
push edx
lea eax, [esp + 0x2c]
push 0x4111b4
push eax
call edi
mov eax, dword [str.SuppressReboot]
add esp, 0x10
lea ecx, [esp + 0x24]
lea edx, [esp + 0x730]
push ecx
mov ecx, dword [str.Startup]
push 0x400
push edx
push 0x413da0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x730]
cmp al, 0x79
je 0x403ab5
cmp al, 0x59
mov edi, 1
jne 0x403ab9
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.00404a80
push edi
mov ecx, ebp
call fcn.00403ae0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret