Function at 0x408575
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x4227ba
call fcn.00418354
mov eax, 0x1844
call fcn.00418450
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x10], edi
call fcn.00401046
xor ebx, ebx
mov ecx, edi
mov esi, eax
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], ebx
call fcn.0040105f
push ebx
mov ecx, esi
call fcn.0040fa9e
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 0x28], ebx
call fcn.004083b6
test eax, eax
je 0x408a96
cmp dword [ebp - 0x28], ebx
mov dword [ebp - 0x38], ebx
jne 0x4086df
lea eax, [esi + 0xac]
mov ecx, edi
push eax
call fcn.0040a024
cmp eax, ebx
jne 0x4086cf
mov ecx, esi
call fcn.0040fa84
test eax, eax
je 0x4086d5
push 1
mov ecx, esi
pop edi
mov dword [ebp - 0x38], edi
call fcn.0040f921
mov eax, dword [eax]
dec eax
je 0x408650
dec eax
jne 0x4086a1
cmp dword [esi + 0x18f8], ebx
je 0x40863a
lea eax, [esi + 0x18fc]
push eax
lea eax, [ebp - 0x1450]
push eax
call fcn.00417dd0
pop ecx
mov dword [ebp - 0x18], edi
pop ecx
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x1450]
push dword [ebp - 0x18]
push eax
mov eax, dword [str.INSTMSIW.EXE]
jmp 0x408684
cmp dword [esi + 0x14f4], ebx
je 0x408670
lea eax, [esi + 0x14f8]
push eax
lea eax, [ebp - 0x1450]
push eax
call fcn.00417dd0
pop ecx
mov dword [ebp - 0x18], edi
pop ecx
lea eax, [ebp - 0x20]
push edi
push eax
lea eax, [ebp - 0x1450]
push dword [ebp - 0x18]
push eax
mov eax, dword [str.INSTMSIA.EXE]
mov ecx, dword [ebp - 0x10]
push eax
push eax
call fcn.0040a600
test eax, eax
jne 0x4086a1
mov dword [0x430b2c], 0x482
jmp 0x408a91
lea eax, [ebp - 0x1450]
push eax
call fcn.004126ca
test eax, eax
jne 0x4086e2
lea ecx, [ebp - 0x1450]
mov eax, 0x482
push ecx
push eax
mov dword [0x430b2c], eax
call fcn.00411d66
pop ecx
pop ecx
jmp 0x408a96
jg 0x408a96
cmp dword [ebp - 0x28], ebx
jne 0x4086df
mov dword [ebp - 0x18], ebx
jmp 0x4086e5
push 1
pop edi
mov dword [ebp - 0x18], edi
and byte [ebp - 0x1050], 0
mov ebx, 0xff
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x104f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor edi, edi
xor eax, eax
cmp dword [esi + 0x1cfc], edi
je 0x408724
lea eax, [esi + 0x1d00]
push eax
lea eax, [ebp - 0x1050]
push eax
call fcn.00417dd0
pop ecx
pop ecx
push 1
pop eax
xor ecx, ecx
cmp dword [ebp - 0x18], edi
lea edx, [ebp - 0x30]
sete cl
mov dword [ebp - 0x3c], ecx
lea ecx, [esi + 0x8ac]
push dword [ebp - 0x3c]
mov dword [ebp - 0x34], ecx
push edx
push eax
lea eax, [ebp - 0x1050]
push eax
push ecx
push ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040a600
test eax, eax
je 0x408a91
cmp dword [ebp - 0x30], 2
mov dword [ebp - 0x2c], edi
jne 0x40876e
cmp dword [ebp - 0x18], edi
je 0x40876e
mov dword [ebp - 0x2c], 1
and byte [ebp - 0x850], 0
mov dword [ebp - 0x24], edi
mov ecx, ebx
xor eax, eax
lea edi, [ebp - 0x84f]
push 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 0x10]
xor ebx, ebx
stosb byte es:[edi], al
pop edi
push edi
call fcn.0040a357
test eax, eax
je 0x4087f5
xor eax, eax
cmp dword [esi + 0x2100], eax
je 0x4087ba
lea eax, [esi + 0x2104]
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.00417dd0
pop ecx
mov eax, edi
pop ecx
push dword [ebp - 0x3c]
lea ecx, [ebp - 0x20]
push ecx
push eax
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x850]
push eax
push dword [0x42460c]
push str.ISScript9.Msi
call fcn.0040a600
test eax, eax
je 0x408a91
cmp dword [ebp - 0x20], 2
mov dword [ebp - 0x24], edi
jne 0x4087f5
cmp dword [ebp - 0x18], 0
je 0x4087f5
mov ebx, edi
cmp dword [ebp - 0x38], 0
je 0x408819
cmp dword [ebp - 0x14], 0
je 0x408806
cmp dword [ebp - 0x1c], edi
je 0x408819
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x1450]
push eax
call fcn.0040a21b
cmp dword [ebp - 0x1c], 0
je 0x40885f
cmp dword [ebp - 0x14], 0
jne 0x40885f
push 0x42fc58
lea eax, [ebp - 0x50]
push 0x400
push eax
push 0x42db80
push dword [0x4245d0]
push dword [0x4245cc]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x50], 0x79
je 0x40885b
cmp byte [ebp - 0x50], 0x59
je 0x40885b
mov dword [ebp - 0x14], edi
jmp 0x40885f
and dword [ebp - 0x14], 0
cmp dword [ebp - 0x1c], 2
jne 0x408897
cmp dword [ebp - 0x14], 0
jne 0x408897
push edi
mov ecx, esi
call fcn.00410819
lea eax, [esi + 0x10b4]
push str._ISSCHEDULEREBOOT1
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push str.ISSCHEDULEREBOOT1
push 0x4291b0
mov ecx, esi
call fcn.00410826
cmp dword [ebp - 0x24], 0
je 0x408a0c
cmp dword [ebp - 0x14], 0
je 0x4088b0
cmp dword [ebp - 0x1c], edi
je 0x408a0c
lea eax, [ebp - 0x850]
push 0x42db84
push eax
lea ecx, [ebp - 0xc50]
call fcn.00403f05
and dword [ebp - 4], 0
lea eax, [ebp - 0x850]
push eax
lea ecx, [ebp - 0xc50]
call fcn.00403f7f
test eax, eax
je 0x4088fa
call fcn.00406634
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc50]
call fcn.00403f69
jmp 0x408a96
test ebx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpA]
je 0x408967
and byte [ebp - 0x450], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x44f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 0x10]
stosb byte es:[edi], al
lea eax, [ebp - 0x450]
push eax
push str.ISScript9.Msi
call fcn.0040aad0
test eax, eax
je 0x4088e6
lea eax, [ebp - 0x450]
push 0x42db80
push eax
call ebx
test eax, eax
je 0x408967
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x450]
push 1
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.0040ab68
test eax, eax
je 0x4088e1
cmp dword [ebp - 0x2c], 0
je 0x4089d2
and byte [ebp - 0x450], 0
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0x44f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ecx, dword [ebp - 0x10]
stosb byte es:[edi], al
lea eax, [ebp - 0x450]
push eax
push dword [ebp - 0x34]
call fcn.0040aad0
test eax, eax
je 0x4088e6
lea eax, [ebp - 0x450]
push 0x42db80
push eax
call ebx
test eax, eax
je 0x4089d2
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x450]
push 1
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.0040ab68
test eax, eax
je 0x4088e1
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x850]
push eax
call fcn.0040a52b
test eax, eax
je 0x4088e6
cmp dword [ebp - 0x24], 0
je 0x4089fa
mov dword [ebp - 0x14], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xc50]
call fcn.00403f69
push 1
pop edi
push dword [ebp - 0x14]
mov ecx, esi
call fcn.0040fa9e
cmp dword [ebp - 0x30], 3
je 0x408a75
cmp dword [ebp - 0x14], 0
jne 0x408a9a
lea eax, [ebp - 0x1050]
push 0x42db84
push eax
lea ecx, [ebp - 0x1850]
call fcn.00403f05
lea eax, [ebp - 0x1050]
lea ecx, [ebp - 0x1850]
push eax
mov dword [ebp - 4], edi
call fcn.00403f7f
test eax, eax
je 0x408a66
call fcn.00406634
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1850]
jmp 0x4088f0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1850]
call fcn.00403f69
cmp dword [ebp - 0x14], 0
jne 0x408a9a
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1050]
push eax
push dword [ebp - 0x34]
call fcn.0040adee
test eax, eax
jne 0x408a9a
call fcn.00406634
xor eax, eax
jmp 0x408aaf
push dword [ebp - 0x14]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp - 0x1050]
push dword [ebp - 0x20]
push eax
call fcn.00408abe
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret