Function at 0x401580
Capabilities:
Create process on windows
Get common file path
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x422679
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x178
push ebx
push ebp
push esi
mov esi, ecx
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push edi
mov eax, dword [esi + 0xc4]
push eax
push 0
push str.UseShared
push str.Installation_Information
call ebx
mov edi, eax
mov eax, dword [0x42d46c]
mov dword [esp + 0x20], eax
mov ebp, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov dword [esp + 0x190], 0
test edi, edi
je 0x401613
mov eax, dword [esi + 0xc4]
lea ecx, [esp + 0x20]
push eax
push 0x103
push 0x104
call fcn.004185aa
push eax
push 0x42f4ac
push str.DataTreePath
push str.Installation_Information
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x24]
call fcn.004185f9
mov ecx, dword [0x42d46c]
mov dword [esp + 0x10], ecx
test edi, edi
mov byte [esp + 0x190], 1
je 0x401637
lea edx, [esp + 0x20]
lea ecx, [esp + 0x10]
push edx
call fcn.0041842e
mov eax, dword [esp + 0x10]
push 0x42f4ac
push eax
call fcn.0040a4b9
add esp, 8
test eax, eax
jne 0x40167d
lea ecx, [esp + 0x1c]
push ecx
call fcn.004023c0
add esp, 4
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x194], 2
call fcn.0041842e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 1
call fcn.00418339
push str.IMAGE
push 0x104
lea ecx, [esp + 0x18]
call fcn.004185aa
push eax
call section..text
add esp, 8
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.004185f9
push str.client.exe
push 0x104
lea ecx, [esp + 0x18]
call fcn.004185aa
push eax
call section..text
add esp, 8
lea ecx, [esp + 0x10]
push 0xffffffffffffffff
call fcn.004185f9
mov edx, dword [0x42d46c]
mov dword [esp + 0x18], edx
test edi, edi
mov byte [esp + 0x190], 3
je 0x4016ef
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
call fcn.0041842e
mov ecx, dword [esp + 0x18]
push 0x42f4ac
push ecx
call fcn.0040a4b9
add esp, 8
test eax, eax
jne 0x401735
lea edx, [esp + 0x1c]
push edx
call fcn.004023c0
add esp, 4
push eax
lea ecx, [esp + 0x1c]
mov byte [esp + 0x194], 4
call fcn.0041842e
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], 3
call fcn.00418339
push str.IMAGE
push 0x104
lea ecx, [esp + 0x20]
call fcn.004185aa
push eax
call section..text
add esp, 8
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.004185f9
mov eax, dword [0x42d46c]
mov dword [esp + 0x2c], eax
mov eax, dword [esi + 0xc4]
lea ecx, [esp + 0x2c]
push eax
push 0x103
push 0x104
mov byte [esp + 0x19c], 5
call fcn.004185aa
push eax
push str.acad.msi
push str.MSIDatabase
push str.Deployment_Information
call ebp
push 0xffffffffffffffff
lea ecx, [esp + 0x30]
call fcn.004185f9
mov ecx, dword [esp + 0x2c]
push ecx
push 0x104
lea ecx, [esp + 0x20]
call fcn.004185aa
push eax
call section..text
add esp, 8
lea ecx, [esp + 0x18]
push 0xffffffffffffffff
call fcn.004185f9
mov eax, dword [esi + 0xc4]
push eax
push 0
push str.ClientLog
push str.Installation_Information
call ebx
mov edx, dword [0x42d46c]
mov edi, eax
mov dword [esp + 0x24], edx
mov eax, dword [esi + 0xc0]
mov byte [esp + 0x190], 6
test eax, eax
je 0x401805
push str._qb_
jmp 0x40180a
push 0x42d26c
lea ecx, [esp + 0x28]
call fcn.0041847e
mov eax, dword [0x42d46c]
mov dword [esp + 0x28], eax
mov ebx, 7
test edi, edi
mov byte [esp + 0x190], bl
je 0x4018c7
mov dword [esp + 0x14], eax
push 0x103
push 0x104
lea ecx, [esp + 0x1c]
mov byte [esp + 0x198], 8
call fcn.004185aa
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0x18]
call fcn.004185f9
push str.AcadDeploy.log
push 0x104
lea ecx, [esp + 0x1c]
call fcn.004185aa
push eax
call section..text
add esp, 8
lea ecx, [esp + 0x14]
push 0xffffffffffffffff
call fcn.004185f9
mov ecx, dword [esp + 0x14]
mov eax, dword [esi + 0xc4]
mov edx, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x2c]
push edx
push eax
push ecx
lea edx, [esp + 0x3c]
push str._s____s__i___s__REBOOT_Suppress__ACADALTINF__s___Lv___s_
push edx
call fcn.00416e1d
add esp, 0x1c
lea ecx, [esp + 0x14]
mov byte [esp + 0x190], bl
call fcn.00418339
jmp 0x4018f0
mov eax, dword [esi + 0xc4]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x10]
push eax
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
push edx
lea eax, [esp + 0x3c]
push str._s____s__i___s__REBOOT_Suppress__ACADALTINF__s_
push eax
call fcn.00416e1d
add esp, 0x1c
lea ecx, [esp + 0x40]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
lea edx, [esp + 0x30]
lea eax, [esp + 0x40]
push edx
push eax
push 0
push 0
push 0x10
push 1
push 0
push 0
push 0x410
lea ecx, [esp + 0x4c]
call fcn.004185aa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
push 0xffffffffffffffff
lea ecx, [esp + 0x2c]
mov edi, eax
call fcn.004185f9
test edi, edi
je 0x40194b
mov ecx, dword [esp + 0x30]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
jmp 0x4019ea
lea edx, [esp + 0x84]
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004021b0
mov eax, dword [0x42d46c]
add esp, 0xc
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
push ebx
lea ecx, [esp + 0x20]
mov byte [esp + 0x194], 0xa
call fcn.004192cb
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x84]
push eax
push ecx
lea eax, [esp + 0x1c]
push edx
push eax
call fcn.00416e1d
add esp, 0x10
lea ecx, [esp + 0x14]
push ecx
mov ecx, esi
call fcn.00401bf0
mov eax, dword [esi + 0xc0]
test eax, eax
jne 0x4019c9
mov edx, dword [esp + 0x14]
push 0
push 0x10
push edx
call fcn.0041e43c
lea ecx, [esp + 0x14]
mov byte [esp + 0x190], 9
call fcn.00418339
lea ecx, [esp + 0x1c]
mov byte [esp + 0x190], bl
call fcn.00418339
lea ecx, [esp + 0x28]
mov byte [esp + 0x190], 6
call fcn.00418339
lea ecx, [esp + 0x24]
mov byte [esp + 0x190], 5
call fcn.00418339
lea ecx, [esp + 0x2c]
mov byte [esp + 0x190], 3
call fcn.00418339
lea ecx, [esp + 0x18]
mov byte [esp + 0x190], 1
call fcn.00418339
lea ecx, [esp + 0x10]
mov byte [esp + 0x190], 0
call fcn.00418339
lea ecx, [esp + 0x20]
mov dword [esp + 0x190], 0xffffffff
call fcn.00418339
mov ecx, dword [esp + 0x188]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x184
ret 4