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

Disassembly:
mov edx, dword [ecx + 8]
xor eax, eax
test edx, edx
jne 0x404470
mov edx, dword [ecx + 0xc]
test edx, edx
je 0x404475
jmp 0x404480
ret
push 0xffffffffffffffff
push 0x42c4f6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x520
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x43cbe8
lea ecx, [esp + 0x14]
call fcn.00420e11
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d]
mov byte [esp + 0x1c], bl
push str.SETUPAPI
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov dword [esp + 0x53c], ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
cmp esi, ebx
mov dword [esp + 0x14], esi
jne 0x404560
cmp dword [0x43ccb4], ebx
je 0x4049eb
push 0x7d1
lea ecx, [esp + 0x14]
call fcn.0042189d
mov eax, dword [0x43ccb0]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
lea eax, [esp + 0x20]
push 0x104
push eax
push ebx
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x1c], bl
jne 0x40454e
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.00427e64
jmp 0x4049eb
push str.SetupCopyOEMInfA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esp + 0x18], eax
jne 0x4045f8
cmp dword [0x43ccb4], ebx
je 0x4045f2
push 0x7d1
lea ecx, [esp + 0x14]
call fcn.0042189d
mov eax, dword [0x43ccb0]
lea edx, [esp + 0x1c]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push ebx
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x1c], bl
jne 0x4045e5
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.00427e64
push esi
jmp 0x4049e5
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x225]
mov byte [esp + 0x224], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x121]
mov byte [esp + 0x120], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x42d]
mov byte [esp + 0x42c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [esp + 0x224]
push 0x104
push edx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
or ecx, 0xffffffff
lea edi, [esp + 0x224]
xor eax, eax
mov byte [esp + 0x225], bl
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x120]
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x120]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.:Program_Files
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4380c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x124]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.PciPorts.inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x104
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x438]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
push ebx
push 1
lea ecx, [esp + 0x138]
push ebx
push ecx
call dword [esp + 0x38]
test eax, eax
jne 0x404833
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [0x438c50]
mov dword [esp + 0x18], edx
mov eax, dword [0x43ccb4]
mov byte [esp + 0x538], 1
cmp eax, ebx
je 0x4047fd
push 0x7d1
lea ecx, [esp + 0x14]
call fcn.0042189d
mov eax, dword [0x43ccb0]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
lea eax, [esp + 0x20]
push 0x104
push eax
push ebx
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x1c], bl
jne 0x4047f0
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.00427e64
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x18]
mov byte [esp + 0x538], bl
call fcn.00420da3
lea ecx, [esp + 0x10]
mov dword [esp + 0x538], 0xffffffff
call fcn.00420da3
xor eax, eax
jmp 0x404b1f
or ecx, 0xffffffff
mov edi, 0x43cbec
xor eax, eax
lea edx, [esp + 0x42c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x224]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [esp + 0x120]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
mov edi, str.:Program_Files
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x4380c4
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x120]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x120]
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
mov edi, str.PciMf.inf
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x434]
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
push eax
push ebx
push 1
lea ecx, [esp + 0x138]
push ebx
push ecx
call dword [esp + 0x38]
test eax, eax
jne 0x404a06
cmp dword [0x43ccb4], ebx
je 0x4049e0
push 0x7d1
lea ecx, [esp + 0x14]
call fcn.0042189d
mov eax, dword [0x43ccb0]
lea edx, [esp + 0x1c]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push ebx
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
cmp byte [esp + 0x1c], bl
jne 0x4049d3
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x20]
push 0x10
push ecx
call fcn.00427e64
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x10]
mov dword [esp + 0x538], 0xffffffff
call fcn.00420da3
xor eax, eax
jmp 0x404b1f
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 0x120]
push 0x5c
push ecx
call fcn.0041202a
mov byte [eax], bl
mov edi, str.M65Lang.ini
or ecx, 0xffffffff
xor eax, eax
add esp, 8
lea edx, [esp + 0x120]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov byte [esp + 0x328], bl
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x104
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, 0x40
lea edi, [esp + 0x32d]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x438300
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x328]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push ebx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea edx, [esp + 0x32c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.M65Lang.ini
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edi, edx
mov edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 0x32c]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x128]
push ecx
mov ecx, ebp
call fcn.00404330
test eax, eax
mov dword [esp + 0x538], 0xffffffff
lea ecx, [esp + 0x10]
jne 0x404b15
call fcn.00420da3
xor eax, eax
jmp 0x404b1f
call fcn.00420da3
mov eax, 1
mov ecx, dword [esp + 0x530]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x52c
ret