Function at 0x4042b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x42793b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x37c
push ebx
push ebp
push esi
push edi
push 0x4375a8
lea ecx, [esp + 0x64]
call fcn.0041c0b1
mov eax, dword [str.MFPCI9710_COM]
mov ecx, dword [0x43352c]
mov edx, dword [0x433530]
mov dword [esp + 0x68], eax
mov ax, word [0x433534]
mov dword [esp + 0x6c], ecx
mov cl, byte [0x433536]
mov dword [esp + 0x70], edx
mov edx, dword [str.MFPCI9710_ECP]
mov word [esp + 0x74], ax
mov eax, dword [0x43351c]
mov byte [esp + 0x76], cl
mov ecx, dword [0x433520]
mov dword [esp + 0x78], edx
mov dx, word [0x433524]
mov dword [esp + 0x7c], eax
mov al, byte [0x433526]
mov dword [esp + 0x394], 0
mov dword [esp + 0x80], ecx
mov word [esp + 0x84], dx
mov byte [esp + 0x86], al
mov dword [esp + 0x10], 3
mov edx, dword [0x42c18c]
mov ecx, dword [0x42c188]
mov eax, dword [0x42c190]
mov dword [esp + 0x38], edx
push 8
mov dword [esp + 0x38], ecx
mov ecx, dword [0x42c194]
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push 0
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov edi, eax
cmp edi, 0xffffffff
je 0x404545
mov ebp, dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
lea eax, [esp + 0x44]
push eax
push 0
push edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x50], 0x1c
call ebp
test eax, eax
je 0x404527
lea ecx, [esp + 0x30]
lea edx, [esp + 0x88]
push ecx
push 0x200
push edx
push 0
lea eax, [esp + 0x54]
push 1
push eax
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
mov ebx, eax
test ebx, ebx
je 0x404527
lea ecx, [esp + 0x88]
push ecx
call fcn.0040dc39
lea edx, [esp + 0x6c]
push edx
call fcn.0040dc39
lea eax, [esp + 0x80]
push eax
call fcn.0040dc39
mov esi, dword [esp + 0x3a8]
add esp, 0xc
cmp dword [esi], 0
je 0x404501
lea ecx, [esp + 0x88]
push 0xe
push ecx
push str.MFPCI9710_COM
call fcn.0040dad8
add esp, 0xc
test eax, eax
je 0x404488
lea edx, [esp + 0x88]
push 0xe
push edx
push str.MFPCI9710_ECP
call fcn.0040dad8
add esp, 0xc
test eax, eax
je 0x404488
lea eax, [esp + 0x88]
push 0x13
push eax
push str.MFPCI9710_UNUSABLE
call fcn.0040dad8
add esp, 0xc
test eax, eax
je 0x404488
mov eax, dword [esi + 4]
add esi, 4
test eax, eax
jne 0x40442b
jmp 0x404501
xor ecx, ecx
mov eax, 2
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
mov dword [esp + 0x1c], ecx
push 0x14
mov dword [esp + 0x24], ecx
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], ecx
mov dword [esp + 0x28], eax
lea eax, [esp + 0x48]
push edx
push eax
mov dword [esp + 0x34], ecx
push edi
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0x12
mov dword [esp + 0x38], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
test eax, eax
jne 0x4044dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00404ef0
test eax, eax
je 0x4044f3
lea ecx, [esp + 0x44]
push ecx
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiChangeState]
mov ebx, eax
lea edx, [esp + 0x44]
push edx
push edi
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov ecx, dword [esp + 0x14]
inc ecx
test ebx, ebx
mov dword [esp + 0x14], ecx
je 0x404527
lea eax, [esp + 0x44]
mov dword [esp + 0x44], 0x1c
push eax
push ecx
push edi
call ebp
test eax, eax
jne 0x4043c8
push edi
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor ecx, ecx
mov eax, 4
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x10]
dec eax
mov dword [esp + 0x10], eax
jne 0x40435d
mov dword [esp + 0x2c], 3
mov eax, dword [0x42c17c]
mov edx, dword [0x42c178]
mov ecx, dword [0x42c180]
mov dword [esp + 0x38], eax
push 8
mov dword [esp + 0x38], edx
mov edx, dword [0x42c184]
push 0xffffffffffffffff
lea eax, [esp + 0x3c]
push 0
push eax
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], edx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x404775
lea ecx, [esp + 0x44]
mov dword [esp + 0x10], 0
push ecx
push 0
push ebx
mov dword [esp + 0x50], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x404755
lea edx, [esp + 0x64]
lea eax, [esp + 0x88]
push edx
push 0x200
push eax
push 0
lea ecx, [esp + 0x54]
push 1
push ecx
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x404755
lea edx, [esp + 0x88]
push edx
call fcn.0040dc39
mov edx, dword [esp + 0x3a0]
add esp, 4
cmp dword [edx], 0
je 0x404725
mov ebp, edx
mov edi, str.pci_
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x288]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x30], esi
mov eax, ecx
mov esi, edi
mov edi, dword [esp + 0x30]
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 + 0x28c]
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
lea edx, [esp + 0x28c]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8c]
push ecx
push edx
call fcn.0040dad8
add esp, 0xc
test eax, eax
je 0x4046a6
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
mov edx, ebp
jne 0x404615
jmp 0x404725
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
push 0x14
mov dword [esp + 0x20], eax
lea edx, [esp + 0x48]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
push edx
mov dword [esp + 0x34], eax
mov eax, 2
push ebx
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0x12
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
test eax, eax
jne 0x4046fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00404ef0
test eax, eax
je 0x404717
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiChangeState]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ecx
test eax, eax
mov dword [esp + 0x10], ecx
je 0x404755
lea edx, [esp + 0x44]
mov eax, ecx
push edx
push eax
push ebx
mov dword [esp + 0x50], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4045c5
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
xor ecx, ecx
mov eax, 4
mov edi, ebx
mov ecx, 0x80
xor eax, eax
lea edi, [esp + 0x88]
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x40455c
mov dword [esp + 0x2c], 3
mov edx, dword [0x42c16c]
mov ecx, dword [0x42c168]
mov eax, dword [0x42c170]
mov dword [esp + 0x38], edx
push 8
mov dword [esp + 0x38], ecx
mov ecx, dword [0x42c174]
push 0xffffffffffffffff
lea edx, [esp + 0x3c]
push 0
push edx
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], ecx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetClassDevsA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40494d
lea eax, [esp + 0x44]
mov dword [esp + 0x10], 0
push eax
push 0
push ebx
mov dword [esp + 0x50], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
je 0x404946
lea ecx, [esp + 0x64]
lea edx, [esp + 0x88]
push ecx
push 0x200
push edx
push 0
lea eax, [esp + 0x54]
push 1
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiGetDeviceRegistryPropertyA]
test eax, eax
mov dword [esp + 0x14], eax
je 0x404946
lea ecx, [esp + 0x88]
push ecx
call fcn.0040dc39
mov ebp, dword [esp + 0x3a0]
add esp, 4
cmp dword [ebp], 0
je 0x404916
mov edi, str.MFPCI9710_BRIDGE
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x288]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x11
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x28c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x8c]
push ecx
push edx
call fcn.0040dad8
add esp, 0xc
test eax, eax
je 0x404897
mov eax, dword [ebp + 4]
add ebp, 4
test eax, eax
jne 0x404844
jmp 0x404916
xor eax, eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], eax
push 0x14
mov dword [esp + 0x20], eax
lea edx, [esp + 0x48]
mov dword [esp + 0x24], eax
push ecx
mov dword [esp + 0x2c], eax
push edx
mov dword [esp + 0x34], eax
mov eax, 2
push ebx
mov dword [esp + 0x28], 8
mov dword [esp + 0x2c], 0x12
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], 0
call dword [sym.imp.SETUPAPI.dll_SetupDiSetClassInstallParamsA]
test eax, eax
jne 0x4048ef
call dword [sym.imp.KERNEL32.dll_GetLastError]
call fcn.00404ef0
test eax, eax
je 0x404908
lea eax, [esp + 0x44]
push eax
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiChangeState]
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x44]
push ecx
push ebx
push 5
call dword [sym.imp.SETUPAPI.dll_SetupDiCallClassInstaller]
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
inc ecx
test eax, eax
mov dword [esp + 0x10], ecx
je 0x404946
lea edx, [esp + 0x44]
mov eax, ecx
push edx
push eax
push ebx
mov dword [esp + 0x50], 0x1c
call dword [sym.imp.SETUPAPI.dll_SetupDiEnumDeviceInfo]
test eax, eax
jne 0x4047f5
push ebx
call dword [sym.imp.SETUPAPI.dll_SetupDiDestroyDeviceInfoList]
mov eax, dword [esp + 0x2c]
dec eax
mov dword [esp + 0x2c], eax
jne 0x40478c
lea ecx, [esp + 0x60]
mov dword [esp + 0x394], 0xffffffff
call fcn.0041c043
mov ecx, dword [esp + 0x38c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x388
ret 4