Function at 0x408bb0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x42cb46
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xbd8
mov eax, dword [str.MCS9000MFPCI_COM]
mov ecx, dword [0x438bec]
mov edx, dword [0x438bf0]
mov dword [esp + 0x8c], eax
mov eax, dword [0x438bf4]
mov dword [esp + 0x90], ecx
mov cx, word [0x438bf8]
mov dword [esp + 0x94], edx
mov edx, dword [str.MCS9000MFPCI_LPT]
mov dword [esp + 0x98], eax
mov eax, dword [0x438bd8]
push ebx
mov word [esp + 0xa0], cx
mov ecx, dword [0x438bdc]
mov dword [esp + 0x7c], edx
mov edx, dword [0x438be0]
mov dword [esp + 0x80], eax
mov ax, word [0x438be4]
push ebp
push esi
push edi
mov dword [esp + 0x90], ecx
mov dword [esp + 0x94], edx
mov word [esp + 0x98], ax
mov dword [esp + 0x28], 3
mov edx, dword [0x4312bc]
mov ecx, dword [0x4312b8]
mov eax, dword [0x4312c0]
mov dword [esp + 0x34], edx
push 8
mov dword [esp + 0x34], ecx
mov ecx, dword [0x4312c4]
push 0xffffffffffffffff
lea edx, [esp + 0x38]
push 0
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x408e71
lea eax, [esp + 0xb0]
mov dword [esp + 0x14], 0
push eax
push 0
push ebx
mov dword [esp + 0xbc], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x408e6a
lea ecx, [esp + 0x18]
lea edx, [esp + 0x4dc]
push ecx
push 0x200
push edx
push 0
lea eax, [esp + 0xc0]
push 1
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
mov dword [esp + 0x2c], eax
je 0x408e6a
lea ecx, [esp + 0x4dc]
push ecx
call fcn.00412beb
mov edx, dword [esp + 0xbfc]
add esp, 4
cmp dword [edx], 0
je 0x408e34
mov ebp, edx
mov edi, str.pci_
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0xcc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x24], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x24]
push 0x15
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, dword [edx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0xd0]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
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 + 0xd0]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x4e0]
push ecx
push edx
call fcn.004127f9
add esp, 0xc
test eax, eax
je 0x408dac
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
mov edx, ebp
jne 0x408d18
jmp 0x408e34
xor eax, eax
lea ecx, [esp + 0x40]
mov dword [esp + 0x40], eax
push 0x14
mov dword [esp + 0x48], eax
lea edx, [esp + 0xb4]
mov dword [esp + 0x4c], eax
push ecx
mov dword [esp + 0x54], eax
push edx
mov dword [esp + 0x5c], eax
mov eax, 2
push ebx
mov dword [esp + 0x50], 8
mov dword [esp + 0x54], 0x12
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], eax
mov dword [esp + 0x60], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
test eax, eax
jne 0x408e07
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00409b10
test eax, eax
je 0x408e23
lea eax, [esp + 0xb0]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiChangeState]
mov dword [esp + 0x2c], eax
lea ecx, [esp + 0xb0]
push ecx
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
inc ecx
test eax, eax
mov dword [esp + 0x14], ecx
je 0x408e6a
lea edx, [esp + 0xb0]
mov eax, ecx
push edx
push eax
push ebx
mov dword [esp + 0xbc], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x408cc5
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x28]
dec eax
mov dword [esp + 0x28], eax
jne 0x408c56
mov dword [esp + 0x24], 3
mov edx, dword [0x4312ac]
mov ecx, dword [0x4312a8]
mov eax, dword [0x4312b0]
mov dword [esp + 0x34], edx
push 8
xor esi, esi
mov dword [esp + 0x34], ecx
mov ecx, dword [0x4312b4]
push 0xffffffffffffffff
lea edx, [esp + 0x38]
push esi
push edx
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x20], ebp
je 0x409716
lea eax, [esp + 0x6c]
mov dword [esp + 0x28], esi
push eax
push esi
push ebp
mov dword [esp + 0x20], esi
mov dword [esp + 0x78], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x40970f
lea ecx, [esp + 0x68]
mov esi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
push ecx
lea edx, [esp + 0x4e0]
push 0x200
push edx
push 0
lea eax, [esp + 0x7c]
push 1
push eax
push ebp
call esi
test eax, eax
je 0x40970f
lea ecx, [esp + 0x68]
lea edx, [esp + 0x9e8]
push ecx
push 0x200
push edx
push 0
lea eax, [esp + 0x7c]
push 1
push eax
push ebp
call esi
test eax, eax
mov dword [esp + 0x2c], eax
je 0x40970f
lea ecx, [esp + 0x4dc]
push ecx
call fcn.00412beb
lea edx, [esp + 0x9ec]
push edx
call fcn.00412beb
lea eax, [esp + 0xa4]
push eax
call fcn.00412beb
lea ecx, [esp + 0x94]
push ecx
call fcn.00412beb
lea edi, [esp + 0xac]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4ec]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0xac]
push ecx
push edx
push eax
call fcn.004127f9
add esp, 0x1c
test eax, eax
jne 0x4091b1
mov ecx, dword [0x438c50]
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], ecx
mov edi, dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
lea edx, [esp + 0x1c]
push edx
push ebx
lea eax, [esp + 0x74]
push ebx
push eax
push ebp
mov dword [esp + 0xc04], ebx
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x409555
mov eax, dword [esp + 0x1c]
cmp eax, ebx
je 0x409555
push eax
call fcn.00412ab1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40960f
mov ecx, dword [esp + 0x1c]
push 0
push ecx
lea edx, [esp + 0x74]
push ebx
push edx
push ebp
call edi
test eax, eax
je 0x4090d9
mov edx, dword [esp + 0xbf8]
cmp dword [edx], 0
je 0x409194
mov ebp, edx
mov edi, str.mfpci
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x7e0]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
push 0x18
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, dword [edx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x7e4]
not ecx
sub edi, ecx
mov eax, esi
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x7e4]
push ecx
push ebx
call fcn.004127f9
add esp, 0xc
test eax, eax
je 0x4090c8
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
mov edx, ebp
jne 0x409037
mov ebp, dword [esp + 0x20]
jmp 0x409194
mov ebp, dword [esp + 0x20]
mov dword [esp + 0x14], 1
jmp 0x409194
call esi
push eax
lea edx, [esp + 0x14]
push str.SetupDiGetDeviceInstanceId::__d
push edx
call fcn.004200fb
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.004078d0
add esp, 4
lea ecx, [esp + 0x10]
push 0x7d1
call fcn.0042189d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x2d5]
mov byte [esp + 0x2d4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x43ccb0]
lea edx, [esp + 0x2d4]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push 0
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x2d4]
test al, al
jne 0x409183
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x2d4]
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 0
lea ecx, [esp + 0x2d8]
push 0
push ecx
call fcn.00427e64
push ebx
call fcn.004129c8
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0xbf0], 0xffffffff
call fcn.00420da3
lea edi, [esp + 0x88]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4dc]
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea eax, [esp + 0x88]
push ecx
push edx
push eax
call fcn.004127f9
add esp, 0xc
test eax, eax
jne 0x4093eb
mov ecx, dword [0x438c50]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0xbf0], 1
push edx
push eax
push eax
lea eax, [esp + 0x78]
push eax
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0x7a
jne 0x409640
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x409640
push eax
call fcn.00412ab1
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x409623
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x20]
push 0
push ecx
lea edx, [esp + 0x74]
push ebx
push edx
push eax
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceInstanceIdA]
test eax, eax
je 0x40930b
mov edx, dword [esp + 0xbf8]
cmp dword [edx], 0
je 0x4093ca
mov ebp, edx
mov edi, str.mfpci
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x6dc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x18], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x18]
push 0x18
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, dword [edx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
lea esi, [esp + 0x6e0]
not ecx
sub edi, ecx
mov eax, esi
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x6e0]
push ecx
push ebx
call fcn.004127f9
add esp, 0xc
test eax, eax
je 0x4092fe
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
mov edx, ebp
jne 0x409271
jmp 0x4093ca
mov dword [esp + 0x14], 1
jmp 0x4093ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea edx, [esp + 0x14]
push str.SetupDiGetDeviceInstanceId::__d
push edx
call fcn.004200fb
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.004078d0
add esp, 4
lea ecx, [esp + 0x10]
push 0x7d1
call fcn.0042189d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x1d1]
mov byte [esp + 0x1d0], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x43ccb0]
lea edx, [esp + 0x1d0]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push 0
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0x1d0]
test al, al
jne 0x4093b9
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x1d0]
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 0
lea ecx, [esp + 0x1d4]
push 0
push ecx
call fcn.00427e64
push ebx
call fcn.004129c8
add esp, 4
lea ecx, [esp + 0x10]
mov dword [esp + 0xbf0], 0xffffffff
call fcn.00420da3
mov ebp, dword [esp + 0x20]
mov edx, dword [esp + 0xbf8]
cmp dword [edx], 0
je 0x409486
mov ebp, edx
mov edi, str.pci_
or ecx, 0xffffffff
xor eax, eax
lea ebx, [esp + 0x8e4]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x15
mov eax, ecx
mov esi, edi
mov edi, ebx
lea ebx, [esp + 0x8e8]
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, dword [edx]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
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 + 0x9ec]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8ec]
push ecx
call fcn.004127f9
add esp, 0xc
test eax, eax
je 0x409493
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
mov edx, ebp
jne 0x4093fd
mov ebp, dword [esp + 0x20]
cmp dword [esp + 0x14], 1
jne 0x409512
jmp 0x409497
mov ebp, dword [esp + 0x20]
xor edx, edx
mov eax, 2
mov dword [esp + 0x54], edx
push 0x14
mov dword [esp + 0x5c], edx
lea ecx, [esp + 0x70]
mov dword [esp + 0x60], edx
mov dword [esp + 0x60], eax
mov dword [esp + 0x64], edx
mov dword [esp + 0x64], eax
lea eax, [esp + 0x58]
mov dword [esp + 0x68], edx
push eax
push ecx
push ebp
mov dword [esp + 0x64], 8
mov dword [esp + 0x68], 0x12
mov dword [esp + 0x74], edx
call dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
test eax, eax
jne 0x4094eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00409b10
test eax, eax
je 0x409504
lea edx, [esp + 0x6c]
push edx
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiChangeState]
mov dword [esp + 0x2c], eax
lea eax, [esp + 0x6c]
push eax
push ebp
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov ecx, dword [esp + 0x28]
mov eax, dword [esp + 0x2c]
inc ecx
test eax, eax
mov dword [esp + 0x28], ecx
je 0x40970f
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x6c]
push ecx
push edx
push ebp
mov dword [esp + 0x20], 0
mov dword [esp + 0x78], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x408ef5
jmp 0x40970f
call esi
push eax
lea eax, [esp + 0x14]
push str.SetupDiGetDeviceInstanceId:__d
push eax
call fcn.004200fb
mov ecx, dword [esp + 0x1c]
add esp, 0xc
push ecx
call fcn.004078d0
add esp, 4
lea ecx, [esp + 0x10]
push 0x7d1
call fcn.0042189d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x3d9]
mov byte [esp + 0x3d8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x43ccb0]
lea edx, [esp + 0x3d8]
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]
mov al, byte [esp + 0x3d8]
test al, al
jne 0x409600
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x3d8]
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
xor ebx, ebx
rep movsb byte es:[edi], byte [esi]
push ebx
lea ecx, [esp + 0x3dc]
push ebx
push ecx
call fcn.00427e64
mov dword [esp + 0xbf0], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x40970a
lea ecx, [esp + 0x10]
mov dword [esp + 0xbf0], 0xffffffff
call fcn.00420da3
mov ebp, dword [esp + 0x20]
jmp 0x40970f
call esi
push eax
lea edx, [esp + 0x14]
push str.SetupDiGetDeviceInstanceId:__d
push edx
call fcn.004200fb
mov eax, dword [esp + 0x1c]
add esp, 0xc
push eax
call fcn.004078d0
add esp, 4
lea ecx, [esp + 0x10]
push 0x7d1
call fcn.0042189d
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xcd]
mov byte [esp + 0xcc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [0x43ccb0]
lea edx, [esp + 0xcc]
mov ecx, dword [eax + 0x1d4]
add eax, 0xd0
push eax
push 0x104
push edx
push 0
push str.IDS_SETUP_ERRMSG_SWINTERNAL
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov al, byte [esp + 0xcc]
test al, al
jne 0x4096ea
mov edi, dword [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xcc]
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 0
lea ecx, [esp + 0xd0]
push 0
push ecx
call fcn.00427e64
mov dword [esp + 0xbf0], 0xffffffff
lea ecx, [esp + 0x10]
call fcn.00420da3
push ebp
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x24]
dec eax
mov dword [esp + 0x24], eax
jne 0x408e88
mov ecx, dword [esp + 0xbe8]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0xbe4
ret 4