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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
push ebx
push esi
push edi
push 0x1003
push 0xfa00
call fcn.00403dd7
push 1
mov esi, 0x311
pop edi
mov dword [0x40f190], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
push esi
push edi
mov dword [0x413108], eax
mov dword [0x413100], eax
mov dword [0x4130cc], ebx
mov dword [0x412b30], edi
mov dword [0x40f188], ebx
mov dword [0x412b28], ebx
mov dword [0x412fa8], ebx
mov dword [0x4130d8], ebx
mov dword [0x40f18c], edi
mov dword [0x412b48], edi
mov dword [0x412b4c], edi
mov dword [0x412b44], ebx
call fcn.00403d6e
push esi
push edi
mov dword [0x412f90], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x412f9c], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x4130f4], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x412f84], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x412f98], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x4130dc], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x412fa4], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x412f8c], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x4130d4], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x4130c8], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x4130e8], eax
call fcn.00403d6e
push 0x107
push edi
mov dword [0x4130e0], eax
call fcn.00403d6e
push 0x107
push edi
mov dword [0x4130e4], eax
call fcn.00403d6e
mov dword [0x4130ec], eax
push 0x107
push edi
call fcn.00403d6e
push esi
push edi
mov dword [0x4130d0], eax
call fcn.00403d6e
push esi
push edi
mov dword [0x4130c4], eax
call fcn.00403d6e
mov ecx, dword [0x412f90]
mov dword [0x412f88], eax
cmp ecx, ebx
je 0x404de2
cmp dword [0x412f9c], ebx
je 0x404de2
cmp dword [0x4130f4], ebx
je 0x404de2
cmp dword [0x412f84], ebx
je 0x404de2
cmp dword [0x412f98], ebx
je 0x404de2
cmp dword [0x4130dc], ebx
je 0x404de2
cmp dword [0x412fa4], ebx
je 0x404de2
cmp dword [0x412f8c], ebx
je 0x404de2
cmp dword [0x4130d4], ebx
je 0x404de2
cmp dword [0x4130c8], ebx
je 0x404de2
cmp dword [0x4130e8], ebx
je 0x404de2
cmp dword [0x4130e0], ebx
je 0x404de2
cmp dword [0x4130e4], ebx
je 0x404de2
cmp dword [0x4130ec], ebx
je 0x404de2
cmp dword [0x4130c4], ebx
je 0x404de2
cmp eax, ebx
je 0x404de2
cmp dword [0x4130d0], ebx
je 0x404de2
mov byte [ecx], bl
mov eax, dword [0x412f9c]
push str._ISDEL.EXE
mov byte [eax], bl
mov eax, dword [0x4130f4]
mov byte [eax], bl
mov eax, dword [0x412f84]
mov byte [eax], bl
mov eax, dword [0x412f98]
mov byte [eax], bl
mov eax, dword [0x4130dc]
mov byte [eax], bl
mov eax, dword [0x412fa4]
mov byte [eax], bl
mov eax, dword [0x412f8c]
mov byte [eax], bl
mov eax, dword [0x4130d4]
mov byte [eax], bl
mov eax, dword [0x4130c8]
mov byte [eax], bl
mov eax, dword [0x4130e8]
mov byte [eax], bl
mov eax, dword [0x4130e0]
mov byte [eax], bl
mov eax, dword [0x4130e4]
mov byte [eax], bl
mov eax, dword [0x4130ec]
mov byte [eax], bl
mov eax, dword [0x4130d0]
mov byte [eax], bl
mov eax, dword [0x4130c4]
mov byte [eax], bl
mov eax, dword [0x412f88]
mov byte [eax], bl
push dword [0x4130e8]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, 0x105
lea eax, [ebp - 0x318]
push esi
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push dword [0x4130f4]
lea eax, [ebp - 0x318]
push eax
call fcn.00406e1d
push edi
push dword [0x4130f4]
call fcn.00406dde
push dword [0x4130f4]
push dword [0x412f98]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SETUP.INS
push dword [0x4130f4]
call edi
push dword [0x412f98]
push dword [0x412f84]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push str.LAYOUT.BIN
push dword [0x412f84]
call edi
lea eax, [ebp - 0x420]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
lea eax, [ebp - 0x420]
push str._delis32.ini
push eax
push dword [0x4130d4]
call fcn.00406e97
push dword [0x4130d4]
call fcn.00406d45
mov edi, dword [sym.imp.USER32.dll_RegisterWindowMessageA]
push str.ISDEL_MSG_DELENABLE32
neg eax
sbb eax, eax
inc eax
mov dword [0x40f18c], eax
call edi
mov dword [0x412b68], eax
push str.ISDEL_MSG_DELEXISTS32
call edi
push str.ISDEL_MSG_DELDONE32
mov dword [0x412b6c], eax
call edi
push str.ISMSG16_TERMINATE
mov dword [0x412b70], eax
call edi
push str.ISMSG32_TERMINATE
mov dword [0x412b74], eax
call edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push ebx
push ebx
mov dword [0x412b78], eax
push dword [0x412b74]
push 0xffffffffffffffff
call edi
push ebx
push ebx
push dword [0x412b78]
push 0xffffffffffffffff
call edi
push str.setup.ini
lea eax, [ebp - 0x108]
push dword [0x412f98]
push eax
call fcn.00406e97
lea eax, [ebp - 0x108]
push eax
call fcn.00406d45
test eax, eax
je 0x404c23
cmp dword [0x413104], ebx
jne 0x404c23
lea eax, [ebp - 0x108]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push esi
push dword [0x4130e8]
push str._ISDEL.EXE
push str.IsdelName
push str.Startup
call edi
lea eax, [ebp - 0x108]
push eax
push esi
push dword [0x4130e0]
push 0x412744
push str.AppName
push str.Startup
call edi
lea eax, [ebp - 0x108]
push eax
push ebx
push str.FreeDiskSpace
push str.Startup
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov dword [0x412b7c], eax
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push esi
push eax
push 0x412744
push str.Type
push 0x40f1fc
call edi
lea eax, [ebp - 0x210]
push 0x40f1f8
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
jne 0x404c02
lea eax, [ebp - 0x108]
mov dword [0x412b50], 1
push eax
push esi
push dword [0x4130e4]
push dword [0x4130e0]
push str.FileName
push 0x40f1fc
call edi
lea eax, [ebp - 0x108]
push eax
push esi
push dword [0x4130ec]
push 0x412744
push str.SerialNo
push 0x40f1fc
call edi
lea eax, [ebp - 0x108]
push eax
push esi
push dword [0x4130d0]
push 0x412744
push str.Locale
push 0x40f1fc
call edi
lea eax, [ebp - 0x108]
push eax
push esi
push dword [0x4130c4]
push 0x412744
push str.CmdLine
push str.Startup
call edi
jmp 0x404c4e
lea eax, [ebp - 0x108]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push eax
push esi
push dword [0x4130c4]
push 0x412744
push str.CmdLine
push str.Startup
call edi
mov dword [0x412b4c], ebx
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x210]
push esi
push eax
push 0x40f1cc
push str.EnableLangDlg
push str.Startup
call edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea eax, [ebp - 0x210]
push 0x40f1b8
push eax
call esi
test eax, eax
je 0x404c9c
lea eax, [ebp - 0x210]
push 0x40f1b4
push eax
call esi
test eax, eax
je 0x404c9c
xor edi, edi
jmp 0x404c9f
push 1
pop edi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x40f17c
push dword [0x4130c4]
call esi
push dword [ebp + 0xc]
push dword [0x4130c4]
call esi
push dword [0x4130c4]
call fcn.0040536f
test eax, eax
pop ecx
je 0x404de2
xor eax, eax
cmp dword [0x412b34], ebx
sete al
and edi, eax
je 0x404ce9
push dword [ebp + 8]
call fcn.00406cad
pop ecx
push edi
push 0x412f94
push 0x4130f0
push 0x1b59
push 0xbba
push dword [ebp + 8]
call fcn.00401d98
cmp edi, ebx
mov esi, eax
je 0x404d15
push dword [ebp + 8]
call fcn.00406cad
pop ecx
cmp esi, ebx
je 0x404d5b
cmp esi, 0xffffffff
je 0x404d53
cmp esi, 0xfffffffa
je 0x404d46
cmp esi, 0xfffffffb
je 0x404d39
cmp esi, 0xfffffffd
je 0x404d31
xor esi, esi
jmp 0x404d53
push ebx
push 0x1b9e
jmp 0x404d4c
push dword [0x4130f0]
push 0x1b9f
jmp 0x404d4c
push ebx
push 0x1ba0
call fcn.00405c0b
pop ecx
pop ecx
cmp esi, ebx
jne 0x404de2
push dword [0x412f98]
push dword [0x412f88]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 1
pop edi
push edi
push dword [0x412f88]
call fcn.00406dde
cmp dword [0x412f94], edi
jbe 0x404dd9
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.SETUPDIR
push dword [0x412f88]
call esi
push edi
push dword [0x412f88]
call fcn.00406dde
push dword [0x4130f0]
lea eax, [ebp - 0x528]
push str._04x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x528]
push eax
push dword [0x412f88]
call esi
push edi
push dword [0x412f88]
call fcn.00406dde
call fcn.004052d0
mov eax, edi
jmp 0x404de4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret