Function at 0x45b910
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ea5a7
mov eax, dword fs:[0]
push eax
sub esp, 0x6a0
mov eax, dword [0x677000]
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.005bb1c0
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call fcn.005bb1c0
add esp, 0xc
xor eax, eax
push 0x1fe
push eax
mov word [ebp - 0x214], ax
lea eax, [ebp - 0x212]
push eax
call fcn.005bb1c0
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.00495002
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x45ba69
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__TCHAR_create_error
call fcn.00418730
jmp 0x45be7a
push 0x20000
push 0
push ebx
call fcn.005bb1c0
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 0x45bac3
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 0x74e818
call fcn.005b8769
add esp, 0x14
push 0x74e818
call fcn.00418730
jmp 0x45be71
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 0x45bb22
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 0x74e818
call fcn.005b8769
add esp, 0x14
push 0x74e818
call fcn.00418730
mov eax, dword [ebp - 0x680]
jmp 0x45be6a
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 0x45bb4a
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupFindFirstLine__VERSION__PROVIDER____Failed
jmp 0x45be5b
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 0x45bb6f
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupGetStringField___Failed__1_
jmp 0x45be5b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x614]
push pe_nt_image_headers32
push eax
call fcn.005b9367
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 0x45bbbb
lea eax, [ebp - 0x614]
push eax
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupFindFirstLine__MANUFACTURER___s___Failed
call fcn.004188b0
jmp 0x45be60
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 0x45bbe0
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupGetStringField___Failed__2_
jmp 0x45be5b
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x414]
push pe_nt_image_headers32
push eax
call fcn.005b9367
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 0x45bc4d
push ebx
lea ecx, [ebp - 0x6ac]
call fcn.00405d00
lea eax, [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x690]
mov byte [ebp - 4], 5
call fcn.0045d5c0
lea ecx, [ebp - 0x6ac]
mov byte [ebp - 4], 4
call fcn.00405e10
inc esi
test edi, edi
jne 0x45bc00
sub esp, 0xc
lea eax, [ebp - 0x690]
mov ecx, esp
push eax
call fcn.00417120
lea eax, [ebp - 0x6ac]
push eax
call fcn.0045bfd0
push eax
lea ecx, [ebp - 0x62c]
call fcn.00405dd0
lea ecx, [ebp - 0x6ac]
call fcn.00405e10
cmp dword [ebp - 0x61c], edi
jne 0x45bcb2
lea eax, [ebp - 0x414]
push eax
push 0x63b034
push 0xffffffffffffffff
lea eax, [ebp - 0x214]
push pe_nt_image_headers32
push eax
call fcn.005b8769
add esp, 0x14
jmp 0x45bce9
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 pe_nt_image_headers32
push eax
call fcn.005b8769
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 0x45bd21
lea eax, [ebp - 0x214]
push eax
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupFindFirstLine___s__NULL__Failed
call fcn.004188b0
xor edi, edi
jmp 0x45be60
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 0x45be56
push ebx
lea ecx, [ebp - 0x66c]
call fcn.00405e40
push 0xffffffffffffffff
push 0
lea eax, [ebp + 0x24]
push eax
lea ecx, [ebp - 0x654]
call fcn.00405f70
push dword [ebp - 0x684]
mov edx, dword [ebp - 0x638]
push ecx
mov ecx, dword [ebp - 0x63c]
call fcn.00416ed0
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 0x45be4f
cmp word [ebx], 0
mov esi, ebx
je 0x45be20
nop
push 0xa
push esi
push str.CANON_BJNP
call fcn.005ba40d
add esp, 0xc
test eax, eax
je 0x45be01
push esi
lea ecx, [ebp - 0x6ac]
call fcn.00405d00
lea eax, [ebp - 0x6ac]
push eax
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 6
call fcn.0045d5c0
mov byte [ebp - 4], 4
cmp dword [ebp - 0x698], 8
jb 0x45be01
push dword [ebp - 0x6ac]
call fcn.0049500b
add esp, 4
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45be06
sub eax, edx
sar eax, 1
lea esi, [esi + eax*2]
add esi, 2
cmp word [esi], cx
jne 0x45bdb0
mov ecx, dword [ebp - 0x694]
lea eax, [ebp - 0x66c]
push eax
mov edi, 1
call fcn.0045d870
lea eax, [ebp - 0x67c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x45bd23
jmp 0x45be60
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupGetMultiSzField___Failed
jmp 0x45be5b
push str.CDlgWaitConnectUSB::GetHardwareIDFromINF__SetupGetStringField___Failed__3_
call fcn.00418730
mov eax, dword [ebp - 0x680]
test eax, eax
je 0x45be71
push eax
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
push ebx
call fcn.0049500b
add esp, 4
cmp dword [ebp - 0x618], 8
jb 0x45be91
push dword [ebp - 0x62c]
call fcn.0049500b
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 0x45bed5
push dword [ebp - 0x684]
mov edx, dword [ebp - 0x68c]
push ecx
mov ecx, esi
call fcn.00416ed0
push esi
call fcn.0049500b
add esp, 0xc
lea ecx, [ebp - 0x66c]
call fcn.0045bf40
cmp dword [ebp + 0x20], 8
jb 0x45bef1
push dword [ebp + 0xc]
call fcn.0049500b
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 0x45bf16
push dword [ebp + 0x24]
call fcn.0049500b
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.005b7f8f
mov esp, ebp
pop ebp
ret 0x34