Function at 0x44cdf0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5d4507
mov eax, dword fs:[0]
push eax
sub esp, 0x6a0
mov eax, dword [0x65a000]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x694], eax
mov dword [ebp - 4], 0
xor eax, eax
xor edi, edi
mov dword [ebp - 0x630], edi
mov dword [ebp - 0x658], 7
mov dword [ebp - 0x65c], edi
mov word [ebp - 0x66c], ax
mov dword [ebp - 0x640], 7
mov dword [ebp - 0x644], eax
mov word [ebp - 0x654], ax
mov dword [ebp - 0x63c], eax
mov dword [ebp - 0x638], eax
mov dword [ebp - 0x634], eax
push 0x1fe
push eax
mov word [ebp - 0x614], ax
lea eax, [ebp - 0x612]
push eax
call fcn.005a7690
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.005a7690
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.005a7690
xorps xmm0, xmm0
add esp, 0xc
mov dword [ebp - 0x67c], edi
movq qword [ebp - 0x678], xmm0
mov dword [ebp - 0x670], edi
mov dword [ebp - 0x690], edi
mov dword [ebp - 0x68c], edi
mov dword [ebp - 0x688], edi
xor eax, eax
mov dword [ebp - 0x618], 7
mov dword [ebp - 0x61c], edi
mov word [ebp - 0x62c], ax
xor ecx, ecx
mov eax, 0x10000
mov edx, 2
mul edx
seto cl
mov byte [ebp - 4], 4
neg ecx
or ecx, eax
push ecx
call fcn.00481662
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x44cf49
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__TCHAR_create_error
call fcn.00415fc0
jmp 0x44d35a
push 0x20000
push 0
push ebx
call fcn.005a7690
add esp, 0xc
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
lea eax, [ebp + 0xc]
jne 0x44cfa3
cmp dword [ebp + 0x20], 8
cmovae eax, dword [ebp + 0xc]
push eax
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__PathFileExists___Failed____DrvInfpath_:_s
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x14
push 0x6fb428
call fcn.00415fc0
jmp 0x44d351
cmp dword [ebp + 0x20], 8
lea ecx, [ebp - 0x630]
cmovae eax, dword [ebp + 0xc]
push ecx
push 2
push 0
push eax
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [ebp - 0x680], eax
cmp eax, 0xffffffff
jne 0x44d002
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupOpenInfFile___Failed____DrvInfpath_:_s
push 0xffffffffffffffff
push 0x1000
push 0x6fb428
call fcn.005a4e29
add esp, 0x14
push 0x6fb428
call fcn.00415fc0
mov eax, dword [ebp - 0x680]
jmp 0x44d34a
mov esi, dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
lea ecx, [ebp - 0x67c]
push ecx
push str.PROVIDER
push str.VERSION
push eax
call esi
test eax, eax
jne 0x44d02a
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupFindFirstLine__VERSION__PROVIDER____Failed
jmp 0x44d33b
push 0
push 0x10000
push ebx
push 1
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x44d04f
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupGetStringField___Failed__1_
jmp 0x44d33b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x614]
push 0x100
push eax
call fcn.005a54f5
add esp, 0x10
lea eax, [ebp - 0x67c]
push eax
lea eax, [ebp - 0x614]
push eax
push str.MANUFACTURER
push dword [ebp - 0x680]
call esi
test eax, eax
jne 0x44d09b
lea eax, [ebp - 0x614]
push eax
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupFindFirstLine__MANUFACTURER___s___Failed
call fcn.00416140
jmp 0x44d340
push 0
push 0x10000
push ebx
push 1
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
jne 0x44d0c0
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupGetStringField___Failed__2_
jmp 0x44d33b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x414]
push 0x100
push eax
call fcn.005a54f5
add esp, 0x10
mov esi, 2
lea esp, [esp]
push 0
push 0x10000
push ebx
push esi
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
mov edi, eax
test edi, edi
je 0x44d12d
push ebx
lea ecx, [ebp - 0x6ac]
call fcn.004051f0
lea eax, [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 5
call fcn.0044eec0
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 4
call fcn.00405300
inc esi
test edi, edi
jne 0x44d0e0
sub esp, 0xc
lea eax, [ebp - 0x690]
mov ecx, esp
push eax
call fcn.004149b0
lea eax, [ebp - 0x6ac]
push eax
call fcn.0044d4b0
push eax
lea ecx, [ebp - 0x62c]
call fcn.004052c0
lea ecx, [ebp - 0x6ac]
call fcn.00405300
cmp dword [ebp - 0x61c], edi
jne 0x44d192
lea eax, [ebp - 0x414]
push eax
push 0x621fe0
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.005a4e29
add esp, 0x14
jmp 0x44d1c9
cmp dword [ebp - 0x618], 8
lea eax, [ebp - 0x62c]
cmovae eax, dword [ebp - 0x62c]
push eax
lea eax, [ebp - 0x414]
push eax
push str._s._s
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push 0x100
push eax
call fcn.005a4e29
add esp, 0x18
lea eax, [ebp - 0x67c]
push eax
push 0
lea eax, [ebp - 0x214]
push eax
push dword [ebp - 0x680]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineW]
test eax, eax
jne 0x44d201
lea eax, [ebp - 0x214]
push eax
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupFindFirstLine___s__NULL__Failed
call fcn.00416140
xor edi, edi
jmp 0x44d340
xor edi, edi
push 0
push 0x10000
push ebx
push 0
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldW]
test eax, eax
je 0x44d336
push ebx
lea ecx, [ebp - 0x66c]
call fcn.00405330
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x654]
call fcn.00405440
push dword [ebp - 0x684]
mov edx, dword [ebp - 0x638]
push ecx
mov ecx, dword [ebp - 0x63c]
call fcn.00414760
mov eax, dword [ebp - 0x63c]
add esp, 8
mov dword [ebp - 0x638], eax
push 0
push 0x10000
push ebx
push 2
lea eax, [ebp - 0x67c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetMultiSzFieldW]
test eax, eax
je 0x44d32f
cmp word [ebx], 0
mov esi, ebx
je 0x44d300
nop
push 0xa
push esi
push str.CANON_BJNP
call fcn.005a6767
add esp, 0xc
test eax, eax
je 0x44d2e1
push esi
lea ecx, [ebp - 0x6ac]
call fcn.004051f0
lea eax, [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 6
call fcn.0044eec0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x698], 8
jb 0x44d2e1
push dword [ebp - 0x6ac]
call fcn.0048166b
add esp, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x44d2e6
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x44d290
mov ecx, dword [ebp - 0x694]
lea eax, [ebp - 0x66c]
push eax
mov edi, 1
call fcn.0044f170
lea eax, [ebp - 0x67c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x44d203
jmp 0x44d340
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupGetMultiSzField___Failed
jmp 0x44d33b
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupGetStringField___Failed__3_
call fcn.00415fc0
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x44d351
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
push ebx
call fcn.0048166b
add esp, 4
cmp dword [ebp - 0x618], 8
jb 0x44d371
push dword [ebp - 0x62c]
call fcn.0048166b
add esp, 4
mov esi, dword [ebp - 0x690]
xor eax, eax
mov dword [ebp - 0x618], 7
mov dword [ebp - 0x61c], 0
mov word [ebp - 0x62c], ax
test esi, esi
je 0x44d3b5
push dword [ebp - 0x684]
mov edx, dword [ebp - 0x68c]
push ecx
mov ecx, esi
call fcn.00414760
push esi
call fcn.0048166b
add esp, 0xc
lea ecx, [ebp - 0x66c]
call fcn.0044d420
cmp dword [ebp + 0x20], 8
jb 0x44d3d1
push dword [ebp + 0xc]
call fcn.0048166b
add esp, 4
xor eax, eax
cmp dword [ebp + 0x38], 8
mov dword [ebp + 0x20], 7
mov dword [ebp + 0x1c], 0
mov word [ebp + 0xc], ax
jb 0x44d3f6
push dword [ebp + 0x24]
call fcn.0048166b
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.005a4646
mov esp, ebp
pop ebp
ret 0x34