Function at 0x4046b0
Capabilities:
Read .ini file

Disassembly:
sub esp, 0x14c
mov edx, dword [0x410d3c]
mov eax, dword [str.INSTALL_OPTIONS]
mov ecx, dword [0x410d38]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push esi
mov dword [esp + 0x18], edx
push edi
mov dword [esp + 0x14], eax
mov eax, dword [0x410d40]
mov dword [esp + 0x18], ecx
mov cl, byte [0x414498]
lea edx, [esp + 0x5c]
push 0x415080
push edx
mov dword [esp + 0x28], eax
mov byte [esp + 0x1b], cl
call ebp
mov esi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push 0x415080
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
cmp eax, 3
jle 0x404720
lea eax, [esp + 0x5c]
push 0x410350
push eax
call ebx
lea ecx, [esp + 0x5c]
push str.ltsetup.ini
push ecx
call ebx
lea edx, [esp + 0x5c]
push 0x410d30
push edx
call fcn.0040a4a0
xor edi, edi
add esp, 8
cmp eax, edi
jne 0x404776
lea eax, [esp + 0x5c]
push 0x415080
push eax
call ebp
push 0x415080
call esi
cmp eax, 3
jle 0x404768
lea ecx, [esp + 0x5c]
push 0x410350
push ecx
call ebx
lea edx, [esp + 0x5c]
push str.agsetup.ini
push edx
call ebx
jmp 0x40477f
push eax
call fcn.0040a3f0
add esp, 4
lea eax, [esp + 0x24]
push 0x414498
push eax
call ebp
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x28]
push 0x38
lea eax, [esp + 0x1b]
push edx
push eax
lea ecx, [esp + 0x24]
push 0x410d2c
push ecx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x4047cc
cmp al, 0x79
je 0x4047cc
mov dword [0x414478], edi
mov esi, 1
jmp 0x4047f0
mov esi, 1
mov dword [0x414478], esi
call fcn.00409cb0
push edi
push str.Debug
push str.LogFlag__TRUE
push edi
call fcn.00404fa0
add esp, 0x10
lea edx, [esp + 0x24]
push 0x414498
push edx
call ebp
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push eax
push 0x38
lea edx, [esp + 0x1b]
push ecx
push edx
lea eax, [esp + 0x24]
push str.RasInstall
push eax
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404830
cmp al, 0x79
mov dword [0x41440c], edi
jne 0x404836
mov dword [0x41440c], esi
lea ecx, [esp + 0x24]
push 0x414498
push ecx
call ebp
lea edx, [esp + 0x5c]
lea eax, [esp + 0x24]
push edx
push 0x38
lea ecx, [esp + 0x1b]
push eax
push ecx
lea edx, [esp + 0x24]
push str.HardwareDetectNT
push edx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404876
cmp al, 0x79
mov dword [0x414410], edi
jne 0x40487c
mov dword [0x414410], esi
lea eax, [esp + 0x24]
push 0x414498
push eax
call ebp
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
push ecx
push 0x38
lea eax, [esp + 0x1b]
push edx
push eax
lea ecx, [esp + 0x24]
push str.Debug
push ecx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x4048bc
cmp al, 0x79
mov dword [0x414414], edi
jne 0x4048c2
mov dword [0x414414], esi
lea edx, [esp + 0x24]
push 0x414498
push edx
call ebp
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push eax
push 0x38
lea edx, [esp + 0x1b]
push ecx
push edx
lea eax, [esp + 0x24]
push str.WDMDriver
push eax
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404902
cmp al, 0x79
mov dword [0x41441c], edi
jne 0x404908
mov dword [0x41441c], esi
lea ecx, [esp + 0x24]
push 0x414498
push ecx
call ebp
lea edx, [esp + 0x5c]
lea eax, [esp + 0x24]
push edx
push 0x38
lea ecx, [esp + 0x1b]
push eax
push ecx
lea edx, [esp + 0x24]
push str.ReBoot
push edx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404948
cmp al, 0x79
mov dword [0x414420], edi
jne 0x40494e
mov dword [0x414420], esi
lea eax, [esp + 0x24]
push 0x414498
push eax
call ebp
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
push ecx
push 0x38
lea eax, [esp + 0x1b]
push edx
push eax
lea ecx, [esp + 0x24]
push str.CleanUpRegistry
push ecx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x40498e
cmp al, 0x79
mov dword [0x414424], edi
jne 0x404994
mov dword [0x414424], esi
lea edx, [esp + 0x24]
push 0x414498
push edx
call ebp
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push eax
push 0x38
lea edx, [esp + 0x1b]
push ecx
push edx
lea eax, [esp + 0x24]
push str.CopyFilesOnly
push eax
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x4049d4
cmp al, 0x79
mov dword [0x414434], edi
jne 0x4049da
mov dword [0x414434], esi
lea ecx, [esp + 0x24]
push 0x414498
push ecx
call ebp
lea edx, [esp + 0x5c]
lea eax, [esp + 0x24]
push edx
push 0x38
lea ecx, [esp + 0x1b]
push eax
push ecx
lea edx, [esp + 0x24]
push str.Retail
push edx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404a1a
cmp al, 0x79
mov dword [0x41443c], edi
jne 0x404a20
mov dword [0x41443c], esi
lea eax, [esp + 0x24]
push 0x414498
push eax
call ebp
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
push ecx
push 0x38
lea eax, [esp + 0x1b]
push edx
push eax
lea ecx, [esp + 0x24]
push str.SilentInstall
push ecx
mov byte [esp + 0x3c], 0
call ebx
cmp dword [0x4143f8], edi
jne 0x404a68
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404a62
cmp al, 0x79
jne 0x404a68
mov dword [0x4143f8], esi
lea edx, [esp + 0x24]
push 0x414498
push edx
call ebp
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push eax
push 0x38
lea edx, [esp + 0x1b]
push ecx
push edx
lea eax, [esp + 0x24]
push str.CabsFlag
push eax
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404aa8
cmp al, 0x79
mov dword [0x414440], edi
jne 0x404aae
mov dword [0x414440], esi
lea ecx, [esp + 0x24]
push 0x414498
push ecx
call ebp
lea edx, [esp + 0x5c]
lea eax, [esp + 0x24]
push edx
push 0x38
lea ecx, [esp + 0x1b]
push eax
push ecx
lea edx, [esp + 0x24]
push str.CatFlag
push edx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404aee
cmp al, 0x79
mov dword [0x414444], edi
jne 0x404af4
mov dword [0x414444], esi
lea eax, [esp + 0x24]
push 0x414498
push eax
call ebp
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
push ecx
push 0x38
lea eax, [esp + 0x1b]
push edx
push eax
lea ecx, [esp + 0x24]
push str.cabExtract
push ecx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404b36
cmp al, 0x79
je 0x404b36
mov dword [0x414458], edi
jmp 0x404b50
push edi
push str.Debug
push str.CabExtract__TRUE
push edi
mov dword [0x414458], esi
call fcn.00404fa0
add esp, 0x10
lea edx, [esp + 0x24]
push 0x414498
push edx
call ebp
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push eax
push 0x38
lea edx, [esp + 0x1b]
push ecx
push edx
lea eax, [esp + 0x24]
push str.ModemType
push eax
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x31
je 0x404bd7
cmp al, 0x32
jne 0x404ba1
push edi
push str.Debug
mov dword [0x410220], 2
push str.Installing_MDC
jmp 0x404be8
cmp al, 0x33
jne 0x404bbc
push edi
push str.Debug
mov dword [0x410220], 3
push str.Installing_MDC_TOS
jmp 0x404be8
cmp al, 0x34
jne 0x404bd7
push edi
push str.Debug
mov dword [0x410220], 4
push str.Installing_SoftV92
jmp 0x404be8
push edi
push str.Debug
mov dword [0x410220], esi
push str.Installing_MARS
push edi
call fcn.00404fa0
add esp, 0x10
lea ecx, [esp + 0x24]
push 0x414498
push ecx
call ebp
lea edx, [esp + 0x5c]
lea eax, [esp + 0x24]
push edx
push 0x38
lea ecx, [esp + 0x1b]
push eax
push ecx
lea edx, [esp + 0x24]
push str.InstallMOH
push edx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404c33
cmp al, 0x79
je 0x404c33
mov dword [0x414468], edi
jmp 0x404c4d
push edi
push str.Debug
push str.InstallMOH__TRUE
push edi
mov dword [0x414468], esi
call fcn.00404fa0
add esp, 0x10
lea eax, [esp + 0x24]
push 0x414498
push eax
call ebp
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
push ecx
push 0x38
lea eax, [esp + 0x1b]
push edx
push eax
lea ecx, [esp + 0x24]
push str.DeviceDependentInstall
push ecx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404c8f
cmp al, 0x79
je 0x404c8f
mov dword [0x41446c], edi
jmp 0x404ca9
push edi
push str.Debug
push str.DDI__TRUE
push edi
mov dword [0x41446c], esi
call fcn.00404fa0
add esp, 0x10
lea edx, [esp + 0x24]
push 0x414498
push edx
call ebp
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push eax
push 0x38
push ecx
push 0x41449c
lea edx, [esp + 0x24]
push 0x410be0
push edx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
test al, al
je 0x404d37
lea eax, [esp + 0x24]
push edi
push eax
push str.MFG_specified
push edi
call fcn.00404fa0
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x10
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4149e0
mov edx, ecx
mov esi, edi
mov edi, 0x4149e0
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0040a330
add esp, 4
mov dword [0x414470], 1
mov esi, 1
xor edi, edi
jmp 0x404d3d
mov dword [0x414470], edi
lea eax, [esp + 0x24]
push 0x414498
push eax
call ebp
lea ecx, [esp + 0x5c]
lea edx, [esp + 0x24]
push ecx
push 0x38
lea eax, [esp + 0x1b]
push edx
push eax
lea ecx, [esp + 0x24]
push str.InstallMOHOnly
push ecx
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404d7f
cmp al, 0x79
je 0x404d7f
mov dword [0x414474], edi
jmp 0x404d99
push edi
push str.Debug
push str.InstallMOHOnly__TRUE
push edi
mov dword [0x414474], esi
call fcn.00404fa0
add esp, 0x10
lea edx, [esp + 0x24]
push 0x414498
push edx
call ebp
lea eax, [esp + 0x5c]
lea ecx, [esp + 0x24]
push eax
push 0x38
lea edx, [esp + 0x1b]
push ecx
push edx
lea eax, [esp + 0x24]
push str.DoNotRunMOH
push eax
mov byte [esp + 0x3c], 0
call ebx
mov al, byte [esp + 0x24]
cmp al, 0x59
je 0x404de4
cmp al, 0x79
je 0x404de4
mov dword [0x410224], esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret
push edi
push str.Debug
push str.RunMOHFlag__FALSE
push edi
mov dword [0x410224], edi
call fcn.00404fa0
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14c
ret