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

Disassembly:
push 0xffffffffffffffff
mov eax, dword fs:[0]
push 0x4235bc
push eax
mov eax, 0x1968
mov dword fs:[0], esp
call fcn.0041a8f0
push ebx
push ebp
push esi
push edi
push str..INF
lea ecx, [esp + 0x2c]
call fcn.00413e2e
lea eax, [esp + 0x28]
lea ecx, [esp + 0x10]
push eax
xor ebp, ebp
push ecx
mov ecx, 0x4324a0
mov dword [esp + 0x1988], ebp
call fcn.004140d9
push 1
push str.UPDDPNP
mov ecx, eax
mov byte [esp + 0x1988], 1
call fcn.00413ead
push eax
push 0x42a8fc
push 0x432ab8
call fcn.00412db6
add esp, 0x14
lea ecx, [esp + 0x10]
mov byte [esp + 0x1980], 0
call fcn.00413e8c
lea ecx, [esp + 0x28]
mov dword [esp + 0x1980], 0xffffffff
call fcn.00413e8c
lea edx, [esp + 0x78]
push 0x100
push edx
push str.Installing_Bundle
push 0x4257d4
push 0x80000002
call fcn.0040ae30
mov al, byte [0x432408]
mov ecx, 0x3ff
mov byte [esp + 0x98c], al
xor eax, eax
lea edi, [esp + 0x98d]
push 0x1000
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x990]
stosw word es:[edi], ax
push ecx
push str.Bundles
push 0x4257d4
push 0x80000002
stosb byte es:[edi], al
call fcn.0040ae30
mov dword [esp + 0x40], ebp
mov dword [esp + 0x4c], ebp
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
add esp, 0x20
mov ebx, 2
mov ecx, esp
mov dword [esp + 0x18], esp
push 0x42a8f0
mov dword [esp + 0x198c], ebx
call fcn.00413e2e
sub esp, 8
lea edx, [esp + 0x988]
mov ecx, esp
mov dword [esp + 0x38], esp
push edx
mov byte [esp + 0x1994], 3
call fcn.00413e2e
lea eax, [esp + 0x28]
mov byte [esp + 0x1990], bl
push eax
call fcn.00415816
mov eax, dword [esp + 0x30]
add esp, 0x14
xor ebx, ebx
cmp eax, ebp
jle 0x4055ed
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x78]
push ecx
lea ecx, [edx + ebx*8]
call fcn.004141db
test eax, eax
je 0x4055e0
mov edi, 0x4257d4
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x178]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [esp + 0x178]
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, 0x42a310
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 eax, dword [esp + 0x18]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [eax + ebx*8]
call fcn.00413ead
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x178]
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 + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x17c]
push str.Number_Of_Devices
push ecx
push 0x80000002
call fcn.0040adc0
mov eax, dword [esp + 0x20]
add esp, 0x10
xor edx, edx
cmp eax, ebp
jbe 0x4055e0
lea edi, [esp + 0x178]
or ecx, 0xffffffff
xor eax, eax
lea ebp, [esp + 0x578]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, ebp
lea ebp, [edx + 1]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
push ebp
and ecx, 3
push 0x42a8d8
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x30]
push ecx
call fcn.00419bfc
lea edi, [esp + 0x34]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x584]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40
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 + 0x48]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x58c]
push str.PNP_Id
push ecx
push 0x80000002
call fcn.0040ae30
lea edi, [esp + 0x58]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x20
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4055d0
lea edx, [esp + 0x38]
push 0x42a8c8
push edx
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4055ba
lea eax, [esp + 0x38]
push str.PNP0F0B
push eax
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4055ba
lea ecx, [esp + 0x38]
push str.PNP0F0E
push ecx
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4055ba
lea edx, [esp + 0x38]
push str.PNP0F12
push edx
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4055ba
lea eax, [esp + 0x38]
push 0x42a8a8
push eax
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4055ba
lea ecx, [esp + 0x38]
push str.IBM3780
push ecx
call fcn.0041a878
add esp, 8
test eax, eax
je 0x4055d0
mov eax, dword [0x432bd0]
mov dword [0x432bcc], 1
or al, 0x10
mov dword [0x432bd0], eax
mov eax, dword [esp + 0x10]
mov edx, ebp
cmp edx, eax
jb 0x405493
xor ebp, ebp
mov eax, dword [esp + 0x1c]
inc ebx
cmp ebx, eax
jl 0x4053b9
push ebp
call fcn.00410e77
and eax, 0xff
mov esi, ebp
je 0x405708
lea edx, [esp + 0x38]
push 0x40
push edx
push str.PnP_Id
push eax
call fcn.00410fa4
lea edi, [esp + 0x38]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x4056f6
lea eax, [esp + 0x38]
push 0x42a8c8
push eax
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4056aa
lea ecx, [esp + 0x38]
push str.PNP0F0B
push ecx
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4056aa
lea edx, [esp + 0x38]
push str.PNP0F0E
push edx
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4056aa
lea eax, [esp + 0x38]
push str.PNP0F12
push eax
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4056aa
lea ecx, [esp + 0x38]
push 0x42a8a8
push ecx
call fcn.0041a878
add esp, 8
test eax, eax
jne 0x4056aa
lea edx, [esp + 0x38]
push str.IBM3780
push edx
call fcn.0041a878
add esp, 8
test eax, eax
je 0x4056c0
mov eax, dword [0x432bd0]
mov dword [0x432bcc], 1
or al, 0x10
mov dword [0x432bd0], eax
push 4
lea eax, [esp + 0x3c]
push str.UPD
push eax
call fcn.00422e00
add esp, 0xc
test eax, eax
jne 0x4056f6
lea ecx, [esp + 0x38]
push 1
push ecx
push str.UPDDV3MO.INF
push 0x42a8fc
push 0x432ab8
call fcn.00412db6
add esp, 0x14
inc esi
push esi
call fcn.00410e77
and eax, 0xff
jne 0x405600
call fcn.00413a19
test eax, eax
jne 0x405772
push ebp
xor bl, bl
call fcn.00410e77
xor esi, esi
mov byte [esp + 0x10], al
test al, al
je 0x405766
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x38]
push 0x28
push edx
push str.PNP_ID
push eax
call fcn.00410fa4
push 3
lea ecx, [esp + 0x3c]
push 0x42a874
push ecx
call fcn.0041a840
add esp, 0xc
test eax, eax
je 0x405753
mov bl, 1
inc esi
push esi
call fcn.00410e77
test al, al
mov byte [esp + 0x10], al
jne 0x405723
test bl, bl
jne 0x405788
call fcn.0040e950
call fcn.0040b4e0
jmp 0x405788
mov eax, dword [0x432bd0]
mov dword [0x432bcc], 1
or al, 0x20
mov dword [0x432bd0], eax
mov esi, dword [esp + 0x18]
mov dword [esp + 0x1980], 0xffffffff
cmp esi, ebp
je 0x4057bf
mov eax, dword [esp + 0x1c]
cmp eax, ebp
je 0x4057b6
lea edi, [eax]
mov ecx, esi
call fcn.00413e8c
add esi, 8
dec edi
jne 0x4057a5
mov esi, dword [esp + 0x18]
push esi
call fcn.00419f48
add esp, 4
mov ecx, dword [esp + 0x1978]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x1974
ret