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

Disassembly:
push 0x9a0
mov eax, 0x5af18a
call fcn.0058f792
mov dword [ebp - 0x960], ecx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x98c]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x9a0], ebx
mov dword [ebp - 0x96c], edi
call fcn.0047409e
push 7
xor ecx, ecx
xor eax, eax
pop edx
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
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x95c]
mov dword [ebp - 0x964], esi
call sym.SETUP.exe_public:_void___thiscall_CDeviceInf::constructor_void_
push 0x5c59f8
push str.CInitInfoStorage::GetPreInstalledInf
push 5
mov byte [ebp - 4], 4
call fcn.00424dad
xor eax, eax
add esp, 0xc
cmp word [ebx], ax
je 0x413051
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x28c]
call fcn.00404be0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x413096
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
test al, 0x10
je 0x413096
lea eax, [ebp - 0x28c]
mov dword [ebp - 0x970], 1
push 0x5c7af8
push eax
call fcn.0047026a
pop ecx
pop ecx
xor ecx, ecx
jmp 0x41309e
xor ecx, ecx
mov dword [ebp - 0x970], ecx
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
push ecx
cmovae eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x98c]
push eax
call fcn.004741ba
test eax, eax
je 0x4136bb
xor esi, esi
mov dword [ebp - 0x260], 7
xor eax, eax
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.00474362
test eax, eax
je 0x4131af
lea eax, [ebp - 0x968]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004746f7
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 7
cmp word [esi], ax
je 0x41312e
push esi
call fcn.0058edd4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x274]
call fcn.00404be0
mov ecx, dword [ebp - 0x968]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
lea eax, [ebp - 0x274]
push 0x5c59c4
push eax
call fcn.0047026a
cmp dword [ebp - 0x260], 8
lea edi, [ebp - 0x274]
mov esi, dword [ebp - 0x264]
cmovae edi, dword [ebp - 0x274]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x960]
call fcn.00413f8c
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.004125dd
mov edi, dword [ebp - 0x96c]
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0x98c]
call fcn.0047416e
cmp dword [ebp - 0x278], 8
lea eax, [ebp - 0x28c]
push esi
cmovae eax, dword [ebp - 0x28c]
lea ecx, [ebp - 0x98c]
push eax
call fcn.004741ba
lea ecx, [ebp - 0x98c]
call fcn.00474362
lea ecx, [ebp - 0x98c]
mov dword [ebp - 0x994], eax
call fcn.00474720
test eax, eax
jne 0x41367c
mov eax, dword [ebp - 0x98c]
lea ecx, [ebp - 0x98c]
push 0x10
call dword [eax + 0x38]
test eax, eax
je 0x4133a4
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 0x41323e
mov eax, esi
jmp 0x413245
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x25c]
call fcn.00404be0
lea eax, [ebp - 0x96c]
push eax
lea ecx, [ebp - 0x98c]
call fcn.0047442e
push dword [eax]
lea eax, [ebp - 0x25c]
mov byte [ebp - 4], 9
push eax
call fcn.0047026a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x96c]
mov byte [ebp - 4], 8
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
lea ecx, [ebp - 0x5b4]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x413347
lea ecx, [ebp - 0x5b4]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x413303
lea eax, [ebp - 0x968]
push eax
lea ecx, [ebp - 0x98c]
call fcn.0047442e
push dword [eax]
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 0xa
push esi
call sym.SETUP.exe_public:_wchar_t_const____thiscall_CDeviceInfSection::GetValue_unsigned_long_int_
push eax
call fcn.005921d4
pop ecx
pop ecx
mov ecx, dword [ebp - 0x968]
test eax, eax
mov byte [ebp - 4], 8
setne bl
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
test bl, bl
je 0x413322
lea ecx, [ebp - 0x5b4]
inc esi
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp esi, eax
jb 0x4132ac
xor esi, esi
push esi
push 1
lea ecx, [ebp - 0x25c]
mov byte [ebp - 4], 6
call fcn.00404970
mov ebx, dword [ebp - 0x9a0]
jmp 0x41367c
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x960]
cmovae eax, dword [ebp - 0x25c]
push edi
push eax
call fcn.00412f9f
xor esi, esi
jmp 0x413368
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
mov ecx, dword [ebp - 0x960]
cmovae eax, dword [ebp - 0x25c]
push edi
push eax
call fcn.00412f9f
mov dword [ebp - 0x964], eax
test eax, eax
je 0x413305
push str.Found_target_inf._n
push str.CInitInfoStorage::GetPreInstalledInf
push 4
call fcn.00424dad
add esp, 0xc
lea ecx, [ebp - 0x98c]
call fcn.0047416e
push esi
push 1
lea ecx, [ebp - 0x25c]
call fcn.00404970
jmp 0x413694
lea eax, [ebp - 0x9a8]
push eax
lea ecx, [ebp - 0x98c]
call fcn.0047442e
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.00592b69
mov ecx, dword [ebp - 0x9a8]
add esp, 0x24
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
lea eax, [ebp - 0x214]
push str..inf
push eax
call fcn.005921d4
pop ecx
pop ecx
test eax, eax
jne 0x41367c
lea eax, [ebp - 0x9a4]
push eax
lea ecx, [ebp - 0x98c]
call fcn.0047442e
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 0xb
cmp word [esi], ax
je 0x413421
push esi
call fcn.0058edd4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x22c]
call fcn.00404be0
mov ecx, dword [ebp - 0x9a4]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
cmp dword [ebp - 0x218], 8
lea ecx, [ebp - 0x22c]
mov eax, dword [ebp - 0x21c]
lea edx, [ebp - 0x22c]
cmovae ecx, dword [ebp - 0x22c]
cmovae edx, dword [ebp - 0x22c]
push fcn.00590371
push edx
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x22c]
cmovae ecx, dword [ebp - 0x22c]
lea eax, [ebp - 0x9ac]
push ecx
push eax
call fcn.004069eb
add esp, 0x14
lea eax, [ebp - 0x998]
lea ecx, [ebp - 0x98c]
push eax
call fcn.0047447b
push dword [eax]
mov esi, str.CInitInfoStorage::GetPreInstalledInf
mov byte [ebp - 4], 0xc
push str.infFile____1_s___n
push esi
push 4
call fcn.00424dad
mov ecx, dword [ebp - 0x998]
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
lea eax, [ebp - 0x99c]
push eax
lea ecx, [ebp - 0x98c]
call fcn.004746f7
push dword [eax]
mov byte [ebp - 4], 0xd
push str.infPath____1_s___n
push esi
push 4
call fcn.00424dad
mov ecx, dword [ebp - 0x99c]
add esp, 0x10
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
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.00424dad
add esp, 0x10
lea esi, [ebp - 0x22c]
cmp dword [ebp - 0x218], 8
cmovae esi, dword [ebp - 0x22c]
call fcn.00474a71
push esi
mov ecx, dword [eax + 4]
add ecx, 0xcc
call fcn.0041b5a2
test eax, eax
je 0x413573
push str.The_specified_inf_is_registered_on_NotCopyInf._Dont_retrieve_it._n
push str.CInitInfoStorage::GetPreInstalledInf
push 4
call fcn.00424dad
add esp, 0xc
xor esi, esi
jmp 0x41367c
xor esi, esi
lea ecx, [ebp - 0x244]
push esi
push 0x5c4f10
call fcn.00404be0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4135be
push 0x2e
pop eax
cmp ax, word [ebx]
je 0x4135be
push 0x5c
pop eax
cmp ax, word [ebx + 2]
je 0x4135be
push 0x5c6e08
call fcn.0058edd4
pop ecx
push eax
push 0x5c6e08
lea ecx, [ebp - 0x244]
call fcn.00404be0
cmp word [ebx], si
jne 0x4135c7
mov eax, esi
jmp 0x4135ce
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x244]
call fcn.00404a83
cmp dword [ebp - 0x970], esi
je 0x41361b
lea eax, [ebp - 0x990]
push eax
lea ecx, [ebp - 0x98c]
call fcn.0047442e
push dword [eax]
lea eax, [ebp - 0x244]
mov byte [ebp - 4], 0xe
push eax
call fcn.0047026a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x990]
mov byte [ebp - 4], 6
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x244]
mov eax, dword [ebp - 0x234]
cmovae ecx, dword [ebp - 0x244]
inc eax
push 1
push 1
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 0x41367c
mov eax, dword [edi + 0x20]
lea ecx, [edi + 0x10]
cmp dword [ecx + 0x14], 8
jb 0x413659
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 0x413727
lea ecx, [ebp - 0x95c]
call sym.SETUP.exe_public:_void___thiscall_CDeviceInf::Clear_void_
cmp dword [ebp - 0x994], 0
jne 0x4131db
lea ecx, [ebp - 0x98c]
call fcn.0047416e
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.00404970
mov esi, dword [ebp - 0x964]
push 0x5c5a14
push str.CInitInfoStorage::GetPreInstalledInf
push 5
call fcn.00424dad
add esp, 0xc
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x95c]
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInf::destructor_void_
xor eax, eax
lea ecx, [ebp - 0x244]
push eax
push 1
call fcn.00404970
xor eax, eax
lea ecx, [ebp - 0x28c]
push eax
push 1
call fcn.00404970
xor eax, eax
lea ecx, [ebp - 0x22c]
push eax
push 1
call fcn.00404970
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x98c]
call fcn.004740ce
mov eax, esi
call fcn.0058f741
ret 8
push str.TargetInf_has_found._n
mov ebx, str.CInitInfoStorage::GetPreInstalledInf
push ebx
push 4
call fcn.00424dad
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.00424dad
lea ecx, [edi + 0x28]
add esp, 0x1c
lea eax, [ebp - 0x244]
cmp ecx, eax
je 0x413774
push 0xffffffffffffffff
push esi
push eax
call fcn.00404b26
xor esi, esi
lea ecx, [ebp - 0x98c]
inc esi
call fcn.0047416e
lea ecx, [ebp - 0x5b4]
mov byte [ebp - 4], 5
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInfSection::destructor_void_
xor ecx, ecx
mov byte [ebp - 4], 4
push ecx
push esi
lea ecx, [ebp - 0x274]
call fcn.00404970
jmp 0x4136bb