Function at 0x405038
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x534
push edi
mov dword [ebp - 0x534], ecx
mov byte [ebp - 0x10c], 0
mov ecx, 0x40
xor eax, eax
lea edi, [ebp - 0x10b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x10c]
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
movsx eax, byte [edx]
test eax, eax
je 0x40509a
mov ecx, dword [ebp - 4]
mov byte [ecx], 0
push str.Install.dat
lea edx, [ebp - 0x10c]
push edx
call sub.MSVCRT.dll_strcat
add esp, 8
mov byte [ebp - 0x50c], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x50b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, dword [ebp - 0x534]
call fcn.00405a9d
mov dword [ebp - 8], eax
mov ax, word [0x412bfc]
mov word [ebp - 0x52c], ax
mov ecx, 7
xor eax, eax
lea edi, [ebp - 0x52a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 8]
push ecx
push 0x410bd0
lea edx, [ebp - 0x52c]
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
mov ecx, dword [ebp - 0x534]
call fcn.00405409
mov dword [ebp - 0x530], eax
cmp dword [ebp - 0x530], 3
je 0x405145
cmp dword [ebp - 0x530], 6
je 0x405145
cmp dword [ebp - 0x530], 4
je 0x405145
cmp dword [ebp - 0x530], 8
jne 0x405248
cmp dword [ebp + 8], 0
jne 0x40517a
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410bd4
lea edx, [ebp - 0x52c]
push edx
push 0x410be0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405243
cmp dword [ebp + 8], 1
jne 0x4051af
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410bf4
lea edx, [ebp - 0x52c]
push edx
push str.INSTALLBUTTONINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405243
cmp dword [ebp + 8], 2
jne 0x4051e1
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410c18
lea edx, [ebp - 0x52c]
push edx
push str.INSTALLTITLEINFO1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405243
cmp dword [ebp + 8], 3
jne 0x405213
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410c38
lea edx, [ebp - 0x52c]
push edx
push str.WIN2KINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x405243
cmp dword [ebp + 8], 4
jne 0x405243
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410c58
lea edx, [ebp - 0x52c]
push edx
push str.WIN2KINFOBUTTON
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4053d8
cmp dword [ebp - 0x530], 5
je 0x405270
cmp dword [ebp - 0x530], 7
je 0x405270
cmp dword [ebp - 0x530], 9
je 0x405270
cmp dword [ebp - 0x530], 0xa
jne 0x4053d8
cmp dword [ebp + 8], 0
jne 0x4052a5
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410c70
lea edx, [ebp - 0x52c]
push edx
push str.INSTALLTITLEINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4053d8
cmp dword [ebp + 8], 1
jne 0x4052da
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410c90
lea edx, [ebp - 0x52c]
push edx
push str.VISTAINSTALLBUTTONINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4053d8
cmp dword [ebp + 8], 2
jne 0x40530f
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410cb8
lea edx, [ebp - 0x52c]
push edx
push str.VISTAINSTALLTITLEINFO1
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4053d8
cmp dword [ebp + 8], 3
jne 0x405344
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410cdc
lea edx, [ebp - 0x52c]
push edx
push str.VISTAINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4053d8
cmp dword [ebp + 8], 4
jne 0x405376
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push str.Windows
lea edx, [ebp - 0x52c]
push edx
push str.VISTAINSTALLTITLEINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4053d8
cmp dword [ebp + 8], 5
jne 0x4053a8
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410d1c
lea edx, [ebp - 0x52c]
push edx
push str.VISTAINSTALLBUTTONINFO2
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
jmp 0x4053d8
cmp dword [ebp + 8], 6
jne 0x4053d8
lea eax, [ebp - 0x10c]
push eax
push 0x104
lea ecx, [ebp - 0x50c]
push ecx
push 0x410d50
lea edx, [ebp - 0x52c]
push edx
push str.VISTANOSHOWTHISINFO
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [ebp - 0x50c]
push eax
call sub.MSVCRT.dll_strlen
add esp, 4
mov byte [ebp + eax - 0x50c], 0
lea ecx, [ebp - 0x50c]
push ecx
mov edx, dword [ebp + 0xc]
push edx
call sub.MSVCRT.dll_strcpy
add esp, 8
pop edi
mov esp, ebp
pop ebp
ret 8