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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x432953
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x234
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov byte [ebp - 0x13c], 0
push 0x445348
lea ecx, [ebp - 0x13c]
mov byte [ebp - 4], 1
call fcn.0042bc80
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.0042ec56
push str.Setup.iss
lea ecx, [ebp - 0x28]
call sub.MFC42.DLL_CString::operator
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x13b]
push eax
push ecx
call fcn.0042bf50
add esp, 8
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::CString
lea edx, [esi + 0x30]
lea ecx, [ebp - 0x24]
push edx
mov byte [ebp - 4], 3
call fcn.0042ec02
push str._AskDestPath_0
lea ecx, [ebp - 0x24]
call sub.MFC42.DLL_CString::operator
mov eax, dword [esi + 0x2c]
mov edx, dword [ebp - 0x24]
lea ecx, [ebp - 0x13b]
push ecx
push eax
push str.szPath
push edx
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
test eax, eax
jne 0x417674
lea eax, [ebp + 0xb]
push str.Fail_to_set_install_path_to_ISS_file
push eax
call fcn.0042bb40
mov cl, byte [eax]
add esp, 8
lea edx, [ebp - 0x1c]
mov byte [ebp - 0x1c], cl
push 0x43c758
push edx
call sub.MSVCRT.dll__CxxThrowException
lea eax, [ebp - 0x240]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea ecx, [ebp - 0x240]
push ecx
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::CString_1
lea edx, [ebp - 0x2c]
push 1
push edx
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::Right
mov eax, dword [eax]
push 0x444e98
push eax
call dword [sym.imp.MSVCRT.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x2c]
test eax, eax
setne bl
call fcn.0042ebf6
test bl, bl
je 0x4176d6
push 0x444e98
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.Setup.log
lea ecx, [ebp - 0x14]
call sub.MFC42.DLL_CString::operator
push str.__s__f1_
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::CString_1
lea eax, [ebp - 0x13b]
mov bl, 5
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], bl
call sub.MFC42.DLL_CString::operator
push str.___f2_
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator_1
push str.___z__f2_
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea edx, [ebp - 0x14]
lea ecx, [ebp - 0x18]
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x4452f0
lea ecx, [ebp - 0x18]
call sub.MFC42.DLL_CString::operator
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::CString
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 6
call fcn.0042ec56
push 0x445248
lea ecx, [ebp - 0x20]
call sub.MFC42.DLL_CString::operator
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x20]
push 0
push eax
push ecx
call fcn.0042a520
add esp, 0xc
test eax, eax
je 0x41779f
lea edx, [ebp + 0xb]
push str.NSU3_Installer_ExitCode_is_not_ZERO
push edx
call fcn.0042bb40
mov al, byte [eax]
add esp, 8
lea ecx, [ebp - 0x1a]
mov byte [ebp - 0x1a], al
push 0x43c758
push ecx
call sub.MSVCRT.dll__CxxThrowException
mov edx, dword [ebp - 0x14]
lea eax, [ebp - 0x34]
push edx
push 8
push eax
push 0x449060
push str.ResultCode
push str.ResponseResult
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpA]
lea edx, [ebp - 0x34]
push 0x4452ac
push edx
call esi
test eax, eax
jne 0x4177e5
mov eax, dword [ebp + 8]
mov byte [eax], 0
jmp 0x4177fa
lea ecx, [ebp - 0x34]
push str._107
push ecx
call esi
test eax, eax
jne 0x41785d
mov edx, dword [ebp + 8]
mov byte [edx], 1
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], bl
call fcn.0042ebf6
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.0042ebf6
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.0042ebf6
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 2
call fcn.0042ebf6
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.0042ebf6
mov al, byte [ebp - 0x13c]
test al, al
je 0x41784a
lea ecx, [ebp - 0x13c]
call fcn.0042bea0
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x34]
lea ecx, [ebp + 0xb]
push eax
push str.Fail_to_install_NSU3:_ResultCode___s
push ecx
call fcn.0042bb40
mov dl, byte [eax]
add esp, 0xc
lea eax, [ebp - 0x19]
mov byte [ebp - 0x19], dl
push 0x43c758
push eax
call sub.MSVCRT.dll__CxxThrowException
lea ecx, [ebp + 0xb]
push str.Fail_to_exec_NSU3_Installer
push ecx
call fcn.0042bb40
mov dl, byte [eax]
add esp, 8
lea eax, [ebp - 0x1b]
mov byte [ebp - 0x1b], dl
push 0x43c758
push eax
call sub.MSVCRT.dll__CxxThrowException
nop
nop
nop
nop
nop
nop
nop
cmp byte [ecx], 0
je 0x4178ba
jmp fcn.0042bea0
ret