Function at 0x41200e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x9a0
mov eax, 0x5a8163
call fcn.00588aeb
mov dword [ebp - 0x960], ecx
mov ebx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
lea ecx, [ebp - 0x98c]
mov dword [ebp - 0x9a0], ebx
mov dword [ebp - 0x96c], edi
call fcn.00472e6b
push 7
xor ecx, ecx
pop edx
xor eax, eax
mov dword [ebp - 4], ecx
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x21c], ecx
mov word [ebp - 0x22c], ax
mov dword [ebp - 0x278], edx
mov dword [ebp - 0x27c], ecx
mov word [ebp - 0x28c], ax
mov dword [ebp - 0x230], edx
mov dword [ebp - 0x234], ecx
mov word [ebp - 0x244], ax
mov esi, ecx
lea ecx, [ebp - 0x95c]
mov byte [ebp - 4], 3
mov dword [ebp - 0x964], esi
call sym.SETUP.exe_public:_void___thiscall_CDeviceInf::constructor_void_
push 0x5bf954
push str.CInitInfoStorage::GetPreInstalledInf
push 5
mov byte [ebp - 4], 4
call fcn.00423f75
xor eax, eax
add esp, 0xc
cmp word [ebx], ax
je 0x4120c0
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28c]
call fcn.00403cef
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x412105
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x412105
lea eax, [ebp - 0x28c]
push 0x5c1a08
push eax
mov dword [ebp - 0x970], 1
call fcn.0046f03c
pop ecx
pop ecx
xor ecx, ecx
jmp 0x41210d
xor ecx, ecx
mov dword [ebp - 0x970], ecx
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
cmovae eax, dword [ebp - 0x28c]
push ecx
push eax
lea ecx, [ebp - 0x98c]
call fcn.00472f87
test eax, eax
je 0x41272a
xor esi, esi
xor eax, eax
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], esi
mov word [ebp - 0x274], ax
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 5
call sym.SETUP.exe_public:_void___thiscall_CDeviceInfSection::constructor_void_
lea ecx, [ebp - 0x98c]
mov byte [ebp - 4], 6
call fcn.0047312d
test eax, eax
je 0x41221e
lea eax, [ebp - 0x968]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004734bc
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 7
cmp word [esi], ax
je 0x41219d
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x274]
call fcn.00403cef
mov ecx, dword [ebp - 0x968]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.0041c730
lea eax, [ebp - 0x274]
push 0x5bf920
push eax
call fcn.0046f03c
cmp dword [ebp - 0x260], 8
mov esi, dword [ebp - 0x264]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x960]
lea edi, [ebp - 0x274]
cmovae edi, dword [ebp - 0x274]
call fcn.00412fee
movzx eax, ax
push eax
lea eax, [ebp - 0x5b4]
push eax
mov eax, dword [ebp - 0x960]
add eax, 4
push eax
lea eax, [esi + 1]
push eax
push edi
call fcn.00411652
mov edi, dword [ebp - 0x96c]
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0x98c]
call fcn.00472f3b
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
cmovae eax, dword [ebp - 0x28c]
push esi
push eax
lea ecx, [ebp - 0x98c]
call fcn.00472f87
lea ecx, [ebp - 0x98c]
call fcn.0047312d
lea ecx, [ebp - 0x98c]
mov dword [ebp - 0x994], eax
call fcn.004734e3
test eax, eax
jne 0x4126eb
mov eax, dword [ebp - 0x98c]
push 0x10
lea ecx, [ebp - 0x98c]
call dword [eax + 0x38]
test eax, eax
je 0x412413
xor eax, eax
mov dword [ebp - 0x248], 7
mov dword [ebp - 0x24c], esi
mov word [ebp - 0x25c], ax
mov byte [ebp - 4], 8
cmp word [ebx], si
jne 0x4122ad
mov eax, esi
jmp 0x4122b4
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x25c]
call fcn.00403cef
lea eax, [ebp - 0x96c]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004731f7
push dword [eax]
lea eax, [ebp - 0x25c]
push eax
mov byte [ebp - 4], 9
call fcn.0046f03c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x96c]
mov byte [ebp - 4], 8
lea ecx, [ecx - 0x10]
call fcn.0041c730
lea ecx, [ebp - 0x5b4]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x4123b6
lea ecx, [ebp - 0x5b4]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x412372
lea eax, [ebp - 0x968]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004731f7
push dword [eax]
lea ecx, [ebp - 0x5b4]
push esi
mov byte [ebp - 4], 0xa
call sym.SETUP.exe_public:_wchar_t_const____thiscall_CDeviceInfSection::GetValue_unsigned_long_int_
push eax
call fcn.0058b527
pop ecx
pop ecx
mov ecx, dword [ebp - 0x968]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
mov byte [ebp - 4], 8
call fcn.0041c730
test bl, bl
je 0x412391
lea ecx, [ebp - 0x5b4]
inc esi
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp esi, eax
jb 0x41231b
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 6
call fcn.00403a7f
mov ebx, dword [ebp - 0x9a0]
jmp 0x4126eb
cmp dword [ebp - 0x248], 8
mov ecx, dword [ebp - 0x960]
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
push edi
push eax
call fcn.0041200e
xor esi, esi
jmp 0x4123d7
cmp dword [ebp - 0x248], 8
mov ecx, dword [ebp - 0x960]
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
push edi
push eax
call fcn.0041200e
mov dword [ebp - 0x964], eax
test eax, eax
je 0x412374
push str.Found_target_inf._n
push str.CInitInfoStorage::GetPreInstalledInf
push 4
call fcn.00423f75
add esp, 0xc
lea ecx, [ebp - 0x98c]
call fcn.00472f3b
push esi
push 1
lea ecx, [ebp - 0x25c]
call fcn.00403a7f
jmp 0x412703
lea eax, [ebp - 0x9a8]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004731f7
push 0x101
lea ecx, [ebp - 0x214]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.0058bead
mov ecx, dword [ebp - 0x9a8]
add esp, 0x24
lea ecx, [ecx - 0x10]
call fcn.0041c730
lea eax, [ebp - 0x214]
push str..inf
push eax
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
jne 0x4126eb
lea eax, [ebp - 0x9a4]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004731f7
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 0xb
cmp word [esi], ax
je 0x412490
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x22c]
call fcn.00403cef
mov ecx, dword [ebp - 0x9a4]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.0041c730
cmp dword [ebp - 0x218], 8
mov eax, dword [ebp - 0x21c]
lea ecx, [ebp - 0x22c]
cmovae ecx, dword [ebp - 0x22c]
push fcn.005896c4
lea eax, [ecx + eax*2]
lea edx, [ebp - 0x22c]
cmovae edx, dword [ebp - 0x22c]
push edx
push eax
lea ecx, [ebp - 0x22c]
cmovae ecx, dword [ebp - 0x22c]
push ecx
lea eax, [ebp - 0x9ac]
push eax
call fcn.00405b31
add esp, 0x14
lea eax, [ebp - 0x998]
push eax
lea ecx, [ebp - 0x98c]
call fcn.00473244
push dword [eax]
mov esi, str.CInitInfoStorage::GetPreInstalledInf
push str.infFile____1_s___n
push esi
push 4
mov byte [ebp - 4], 0xc
call fcn.00423f75
mov ecx, dword [ebp - 0x998]
add esp, 0x10
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 6
call fcn.0041c730
lea eax, [ebp - 0x99c]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004734bc
push dword [eax]
mov byte [ebp - 4], 0xd
push str.infPath____1_s___n
push esi
push 4
call fcn.00423f75
mov ecx, dword [ebp - 0x99c]
add esp, 0x10
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 6
call fcn.0041c730
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push eax
push str.FileName_LOWER_____1_s___n
push esi
push 4
call fcn.00423f75
add esp, 0x10
cmp dword [ebp - 0x218], 8
lea esi, [ebp - 0x22c]
cmovae esi, dword [ebp - 0x22c]
call fcn.00473832
mov ecx, dword [eax + 4]
push esi
add ecx, 0xcc
call fcn.0041a5d3
test eax, eax
je 0x4125e2
push str.The_specified_inf_is_registered_on_NotCopyInf._Dont_retrieve_it._n
push str.CInitInfoStorage::GetPreInstalledInf
push 4
call fcn.00423f75
add esp, 0xc
xor esi, esi
jmp 0x4126eb
xor esi, esi
push esi
push 0x5bef10
lea ecx, [ebp - 0x244]
call fcn.00403cef
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41262d
push 0x2e
pop eax
cmp ax, word [ebx]
je 0x41262d
push 0x5c
pop eax
cmp ax, word [ebx + 2]
je 0x41262d
push 0x5c0d18
call fcn.00588144
pop ecx
push eax
push 0x5c0d18
lea ecx, [ebp - 0x244]
call fcn.00403cef
cmp word [ebx], si
jne 0x412636
mov eax, esi
jmp 0x41263d
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x244]
call fcn.00403b92
cmp dword [ebp - 0x970], esi
je 0x41268a
lea eax, [ebp - 0x990]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004731f7
push dword [eax]
lea eax, [ebp - 0x244]
push eax
mov byte [ebp - 4], 0xe
call fcn.0046f03c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x990]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.0041c730
cmp dword [ebp - 0x230], 8
mov eax, dword [ebp - 0x234]
push 1
push 1
inc eax
lea ecx, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x244]
push eax
push ecx
lea ecx, [ebp - 0x95c]
call sym.SETUP.exe_public:_int___thiscall_CDeviceInf::Init_wchar_t_const___unsigned_int__int__int_
test eax, eax
je 0x4126eb
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x4126c8
mov ecx, dword [ecx]
push esi
push esi
inc eax
push eax
push ecx
lea ecx, [ebp - 0x95c]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInf::HasSuitableDriver_wchar_t_const___unsigned_int__wchar_t_const___unsigned_int_
test eax, eax
jne 0x412796
lea ecx, [ebp - 0x95c]
call sym.SETUP.exe_public:_void___thiscall_CDeviceInf::Clear_void_
cmp dword [ebp - 0x994], 0
jne 0x41224a
lea ecx, [ebp - 0x98c]
call fcn.00472f3b
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 5
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInfSection::destructor_void_
push esi
push 1
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.00403a7f
mov esi, dword [ebp - 0x964]
push 0x5bf970
push str.CInitInfoStorage::GetPreInstalledInf
push 5
call fcn.00423f75
add esp, 0xc
lea ecx, [ebp - 0x95c]
mov byte [ebp - 4], 3
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInf::destructor_void_
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x244]
call fcn.00403a7f
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x28c]
call fcn.00403a7f
xor eax, eax
push eax
push 1
lea ecx, [ebp - 0x22c]
call fcn.00403a7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98c]
call fcn.00472e9b
mov eax, esi
call fcn.00588a9a
ret 8
push str.TargetInf_has_found._n
mov ebx, str.CInitInfoStorage::GetPreInstalledInf
push ebx
push 4
call fcn.00423f75
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
push str.InfFile___1_s_._n
push ebx
push 4
call fcn.00423f75
lea ecx, [edi + 0x28]
lea eax, [ebp - 0x244]
add esp, 0x1c
cmp ecx, eax
je 0x4127e3
push 0xffffffffffffffff
push esi
push eax
call fcn.00403c35
xor esi, esi
lea ecx, [ebp - 0x98c]
inc esi
call fcn.00472f3b
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 5
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInfSection::destructor_void_
xor ecx, ecx
push ecx
push esi
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 4
call fcn.00403a7f
jmp 0x41272a