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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x518
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
mov ebx, dword [eax + 0x478]
test ebx, ebx
jg 0x409f55
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor edx, edx
push edi
test ebx, ebx
jle 0x40a114
mov edi, dword [eax + 0x78]
add edi, 4
mov eax, dword [edi]
lea ecx, [edx + 1]
test eax, eax
lea edi, [edi + 0x10]
cmove ecx, edx
mov edx, ecx
sub ebx, 1
jne 0x409f66
test edx, edx
jle 0x40a114
push ebx
push ebx
push ebx
push str.install_drivrs
mov ecx, 0x434b58
call fcn.00401900
mov ebx, dword [sym.imp.USER32.dll_SetDlgItemTextA]
test eax, eax
je 0x409fac
push eax
push 0x402
push dword [esi + 0x138]
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x1f4
call edi
call fcn.0040d240
test eax, eax
je 0x40a120
mov eax, dword [esi + 4]
xor ebx, ebx
mov dword [esi + 0x25c], 0
cmp dword [eax + 0x478], ebx
jle 0x40a114
xor edi, edi
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x78]
cmp dword [eax + edi + 4], 0
je 0x40a101
mov eax, dword [eax + edi + 8]
test eax, eax
je 0x40a00e
push eax
push 0x403
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esi + 0x264]
push 0
push dword [esi + 0x264]
push 0x402
push 0x401
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, esi
call fcn.00408490
test eax, eax
jne 0x40a48b
mov eax, dword [esi + 4]
push dword [eax + 0x468]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b43
push 0x42a618
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x78]
push dword [eax + edi + 0xc]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b9d
add esp, 0x24
lea eax, [ebp - 0x108]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32drivers
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [esi + 4]
add esp, 0xc
mov ecx, esi
push str..sys
push dword [eax + 0x468]
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x138]
call fcn.004095a0
test eax, eax
je 0x40a48b
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00409c50
test eax, eax
je 0x40a114
mov eax, dword [esi + 4]
inc ebx
add edi, 0x10
cmp ebx, dword [eax + 0x478]
jl 0x409fe3
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push str.copy_files
mov ecx, 0x434b58
call fcn.00401900
test eax, eax
je 0x40a147
push eax
push 0x403
push dword [esi + 0x138]
call ebx
push 0x1f4
call edi
mov ecx, esi
call fcn.00408490
test eax, eax
jne 0x40a48b
mov eax, dword [esi + 4]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax + 0x478], edi
jle 0x40a114
xor ebx, ebx
nop
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x78]
cmp dword [eax + ebx + 4], 0
je 0x40a469
mov eax, dword [eax + ebx + 8]
test eax, eax
je 0x40a19b
push eax
push 0x403
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
inc dword [esi + 0x264]
push 0
push dword [esi + 0x264]
push 0x402
push 0x401
push dword [esi + 0x138]
call dword [sym.imp.USER32.dll_SendDlgItemMessageA]
mov ecx, esi
call fcn.00408490
test eax, eax
jne 0x40a48b
mov eax, dword [esi + 4]
push dword [eax + 0x468]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00415b43
push 0x42a618
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x78]
push dword [eax + ebx + 0xc]
lea eax, [ebp - 0x414]
push 0x104
push eax
call fcn.00415b9d
add esp, 0x24
lea eax, [ebp - 0x414]
mov ecx, esi
push eax
call fcn.00409dd0
test eax, eax
je 0x40a48b
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.inf
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
mov ecx, dword [esi + 4]
add esp, 0xc
mov eax, dword [ecx + 0x78]
push dword [eax + ebx + 0xc]
lea eax, [ebp - 0x108]
push dword [ecx + 0x468]
mov ecx, esi
push eax
push dword [esi + 0x138]
call fcn.004095a0
test eax, eax
je 0x40a48b
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str._system32drivers
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [esi + 4]
add esp, 0xc
mov ecx, esi
push str..sys
push dword [eax + 0x468]
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x138]
call fcn.004095a0
test eax, eax
je 0x40a48b
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.optionsinstall
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [esi + 4]
add esp, 0xc
mov ecx, esi
push str..sys
push dword [eax + 0x468]
lea eax, [ebp - 0x108]
push eax
push dword [esi + 0x138]
call fcn.004095a0
test eax, eax
je 0x40a48b
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b43
push 0x42a618
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b9d
mov eax, dword [esi + 4]
mov eax, dword [eax + 0x78]
push dword [eax + ebx + 0xc]
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.00415b9d
add esp, 0x24
lea eax, [ebp - 0x20c]
push eax
push 0x104
lea eax, [ebp - 0x310]
push eax
push 0x42a6d0
push 0x42ae6c
push str.SourceDisksNames
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [ebp - 0x310], 0
je 0x40a45f
lea eax, [ebp - 0x310]
push 0x2c
push eax
call fcn.00413dc0
mov edi, eax
add esp, 8
test edi, edi
jne 0x40a3f1
lea ecx, [ebp - 0x310]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40a3e0
sub ecx, edx
lea edi, [ebp - 0x310]
add edi, ecx
push str.__0000_0000_
push 0xe
push edi
call fcn.00415b43
add esp, 0xc
lea eax, [ebp - 0x518]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push str.optionsinstall
lea eax, [ebp - 0x518]
push 0x104
push eax
call fcn.00415b9d
lea eax, [ebp - 0x518]
push eax
push 0x104
push edi
call fcn.00415b9d
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
push 0x42ae6c
push str.SourceDisksNames
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
mov edi, dword [ebp - 4]
mov dword [esi + 0x25c], 1
mov eax, dword [esi + 4]
inc edi
add ebx, 0x10
mov dword [ebp - 4], edi
cmp edi, dword [eax + 0x478]
jl 0x40a170
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret