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

Disassembly:
mov eax, 0x1720
call fcn.00407ac0
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.00404ab0
mov ecx, esi
call fcn.00404990
lea ebx, [esi + 0x10]
mov edi, eax
push ebx
push edi
call fcn.00406ae0
add esp, 8
cmp eax, 1
jne 0x403ae5
mov ecx, esi
call fcn.00404a90
test eax, eax
je 0x403ae5
mov ecx, esi
call fcn.00404940
mov ecx, dword [0x40f2fc]
mov dword [esp + 0x10], eax
add eax, 4
push ecx
push eax
call fcn.00406ae0
add esp, 8
test eax, eax
jne 0x40389a
lea edx, [esp + 0x1c]
lea eax, [esp + 0x18]
push edx
push eax
push str._u._u
push edi
call fcn.00407a82
add esp, 0x10
lea ecx, [esp + 0x20]
lea edx, [esp + 0x10]
push ecx
push edx
push str._u._u
push ebx
call fcn.00407a82
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.00406ae0
add esp, 0x18
test eax, eax
je 0x403ae5
mov edx, dword [str.Setup.INI]
mov ecx, esi
push edx
call fcn.004049d0
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 0x403ae5
cmp al, 0x59
je 0x403ae5
push edi
push 0x4b7
mov dword [0x414870], 0x4b7
call fcn.00406110
add esp, 8
jmp 0x403ae5
mov ebx, dword [esp + 0x10]
cmp dword [ebx], 2
jne 0x4038d0
call fcn.00406e10
test eax, eax
jne 0x4038d0
push 0x4b2
mov dword [0x414870], 0x4b2
call fcn.00406110
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 0x403920
lea eax, [esp + 0x330]
mov ecx, ebp
push eax
call fcn.00404150
test eax, eax
jne 0x403920
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 0x403955
lea edx, [esp + 0x330]
mov ecx, ebp
push edx
call fcn.00404150
test eax, eax
jne 0x403955
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
mov eax, dword [ebx]
dec eax
je 0x403981
dec eax
jne 0x4039b9
mov eax, dword [str.INSTMSIW.EXE]
mov ecx, esi
push eax
call fcn.00405000
test eax, eax
jne 0x403979
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret
mov ecx, dword [str.INSTMSIW.EXE]
jmp 0x4039a3
mov eax, dword [str.INSTMSIA.EXE]
mov ecx, esi
push eax
call fcn.00405000
test eax, eax
jne 0x40399d
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.004049d0
lea edx, [esp + 0xb34]
push eax
push edx
call fcn.00406800
lea eax, [esp + 0xb30]
push eax
call fcn.00406980
test eax, eax
jne 0x4039f6
lea ecx, [esp + 0xb30]
mov dword [0x414870], 0x482
push ecx
push 0x482
call fcn.00406110
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.00406ba0
test eax, eax
je 0x403ae5
cmp eax, 0xbc2
je 0x403a56
push 0
push eax
mov dword [0x414870], 0x484
call fcn.004060a0
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.00406740
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 0x403ae5
cmp al, 0x59
mov edi, 1
jne 0x403ae9
mov edi, dword [esp + 0x14]
push edi
mov ecx, esi
call fcn.00404ab0
push edi
mov ecx, ebp
call fcn.00403b10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1720
ret