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

Disassembly:
push 0x5d8
mov eax, 0x5af2f6
call fcn.0058f792
mov edi, ecx
mov dword [ebp - 0x5a0], edi
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x5cc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x5b0], ebx
mov dword [ebp - 0x5a4], eax
call fcn.0047409e
push 7
xor esi, esi
xor eax, eax
pop ecx
mov dword [ebp - 4], esi
mov dword [ebp - 0x230], ecx
mov dword [ebp - 0x234], esi
mov word [ebp - 0x244], ax
mov dword [ebp - 0x248], ecx
mov dword [ebp - 0x24c], esi
mov word [ebp - 0x25c], ax
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x21c], esi
mov word [ebp - 0x22c], ax
push 0x5c59f8
push str.CInitInfoStorage::GetSourceDriverVersion
push 5
mov byte [ebp - 4], 3
call fcn.00424dad
add esp, 0xc
cmp word [ebx], si
jne 0x414a96
mov eax, esi
jmp 0x414a9d
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x25c]
call fcn.00404be0
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call esi
cmp eax, 0xffffffff
je 0x414ae0
push ebx
call esi
test al, 0x10
je 0x414ae0
lea eax, [ebp - 0x25c]
mov dword [ebp - 0x5ac], 1
push 0x5c7af8
push eax
call fcn.0047026a
pop ecx
pop ecx
xor esi, esi
jmp 0x414ae8
xor esi, esi
mov dword [ebp - 0x5ac], esi
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
push esi
cmovae eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x5cc]
push eax
call fcn.004741ba
test eax, eax
je 0x414e32
xor eax, eax
mov dword [ebp - 0x260], 7
mov dword [ebp - 0x264], esi
mov word [ebp - 0x274], ax
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 4
call sym.SETUP.exe_public:_void___thiscall_CDeviceInfSection::constructor_void_
lea ecx, [ebp - 0x5cc]
mov byte [ebp - 4], 5
call fcn.00474362
test eax, eax
je 0x414ca7
lea eax, [ebp - 0x5a8]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004746f7
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 6
cmp word [esi], ax
je 0x414b76
push esi
call fcn.0058edd4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x274]
call fcn.00404be0
mov ecx, dword [ebp - 0x5a8]
mov byte [ebp - 4], 5
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 - 0x5a0]
call fcn.00413f8c
movzx eax, ax
push eax
lea eax, [ebp - 0x59c]
push eax
mov eax, dword [ebp - 0x5a0]
add eax, 4
push eax
lea eax, [esi + 1]
push eax
push edi
call fcn.004125dd
xor esi, esi
add esp, 0x14
cmp dword [ebp - 0x5a4], esi
je 0x414ca1
lea ecx, [ebp - 0x59c]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x414c9f
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor eax, eax
cmp word [ebx], ax
je 0x414c24
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00404be0
push esi
lea ecx, [ebp - 0x59c]
call sym.SETUP.exe_public:_wchar_t_const____thiscall_CDeviceInfSection::GetValue_unsigned_long_int_
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.0047026a
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
pop ecx
cmovae eax, dword [ebp - 0x22c]
pop ecx
push eax
call edi
cmp eax, 0xffffffff
je 0x414d19
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push eax
call edi
test al, 0x10
je 0x414d19
lea ecx, [ebp - 0x59c]
inc esi
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp esi, eax
jb 0x414c16
xor esi, esi
mov edi, dword [ebp - 0x5a0]
lea ecx, [ebp - 0x5cc]
call fcn.0047416e
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
push esi
cmovae eax, dword [ebp - 0x25c]
lea ecx, [ebp - 0x5cc]
push eax
call fcn.004741ba
lea ecx, [ebp - 0x5cc]
call fcn.00474362
lea ecx, [ebp - 0x5cc]
mov dword [ebp - 0x5d4], eax
call fcn.00474720
test eax, eax
jne 0x414df9
mov edx, dword [ebp - 0x5cc]
lea ecx, [ebp - 0x5cc]
push 0x10
call dword [edx + 0x38]
test eax, eax
je 0x414ed3
cmp word [ebx], si
jne 0x414d28
mov eax, esi
jmp 0x414d2f
mov eax, dword [ebp - 0x5a4]
xor esi, esi
mov dword [eax], esi
jmp 0x414ca1
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00404be0
lea eax, [ebp - 0x5a8]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.0047442e
push dword [eax]
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 7
push eax
call fcn.0047026a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5a8]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
lea ecx, [ebp - 0x59c]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x414eb1
lea ecx, [ebp - 0x59c]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x414df7
lea eax, [ebp - 0x5a4]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.0047442e
push dword [eax]
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 8
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 - 0x5a4]
test eax, eax
mov byte [ebp - 4], 5
setne bl
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
test bl, bl
je 0x414e87
lea ecx, [ebp - 0x59c]
inc esi
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp esi, eax
jb 0x414d96
mov ebx, dword [ebp - 0x5b0]
xor esi, esi
cmp dword [ebp - 0x5d4], 0
jne 0x414cd3
lea ecx, [ebp - 0x5cc]
call fcn.0047416e
lea ecx, [ebp - 0x59c]
mov byte [ebp - 4], 4
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInfSection::destructor_void_
push esi
push 1
lea ecx, [ebp - 0x274]
mov byte [ebp - 4], 3
call fcn.00404970
push 0x5c5a14
push str.CInitInfoStorage::GetSourceDriverVersion
push 5
call fcn.00424dad
add esp, 0xc
lea ecx, [ebp - 0x22c]
push esi
push 1
call fcn.00404970
push esi
push 1
lea ecx, [ebp - 0x25c]
call fcn.00404970
push esi
push 1
lea ecx, [ebp - 0x244]
call fcn.00404970
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5cc]
call fcn.004740ce
call fcn.0058f741
ret 8
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
mov ecx, edi
cmovae eax, dword [ebp - 0x22c]
xor esi, esi
push esi
push eax
call fcn.004149fe
mov ebx, dword [ebp - 0x5b0]
jmp 0x414df9
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push esi
cmovae eax, dword [ebp - 0x22c]
mov ecx, edi
push eax
call fcn.004149fe
jmp 0x414df9
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x5cc]
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 - 0x5a0]
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 0x414df9
lea eax, [ebp - 0x5d8]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.0047442e
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 9
cmp word [esi], ax
je 0x414f50
push esi
call fcn.0058edd4
pop ecx
push eax
push esi
lea ecx, [ebp - 0x244]
call fcn.00404be0
mov ecx, dword [ebp - 0x5d8]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
cmp dword [ebp - 0x230], 8
lea ecx, [ebp - 0x244]
mov eax, dword [ebp - 0x234]
lea edx, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x244]
cmovae edx, dword [ebp - 0x244]
push fcn.00590371
push edx
lea eax, [ecx + eax*2]
push eax
lea ecx, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x244]
lea eax, [ebp - 0x5e4]
push ecx
push eax
call fcn.004069eb
add esp, 0x14
lea eax, [ebp - 0x5e0]
lea ecx, [ebp - 0x5cc]
push eax
call fcn.0047447b
push dword [eax]
mov esi, str.CInitInfoStorage::GetSourceDriverVersion
mov byte [ebp - 4], 0xa
push str.infFile____1_s___n
push esi
push 4
call fcn.00424dad
mov ecx, dword [ebp - 0x5e0]
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
lea eax, [ebp - 0x5dc]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004746f7
push dword [eax]
mov byte [ebp - 4], 0xb
push str.infPath____1_s___n
push esi
push 4
call fcn.00424dad
mov ecx, dword [ebp - 0x5dc]
add esp, 0x10
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
cmp dword [ebp - 0x230], 8
lea eax, [ebp - 0x244]
cmovae eax, dword [ebp - 0x244]
push eax
push str.FileName_LOWER_____1_s___n
push esi
push 4
call fcn.00424dad
add esp, 0x10
lea esi, [ebp - 0x244]
cmp dword [ebp - 0x230], 8
cmovae esi, dword [ebp - 0x244]
call fcn.00474a71
push esi
mov ecx, dword [eax + 4]
add ecx, 0xcc
call fcn.0041b5a2
test eax, eax
je 0x4150a0
push str.The_specified_inf_is_registered_on_NotCopyInf._Dont_retrieve_it._n
push str.CInitInfoStorage::GetSourceDriverVersion
push 4
call fcn.00424dad
add esp, 0xc
jmp 0x414df7
xor esi, esi
lea ecx, [ebp - 0x22c]
push esi
push 0x5c4f10
call fcn.00404be0
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x4150eb
push 0x2e
pop eax
cmp ax, word [ebx]
je 0x4150eb
push 0x5c
pop eax
cmp ax, word [ebx + 2]
je 0x4150eb
push 0x5c6e08
call fcn.0058edd4
pop ecx
push eax
push 0x5c6e08
lea ecx, [ebp - 0x22c]
call fcn.00404be0
cmp word [ebx], si
jne 0x4150f4
mov eax, esi
jmp 0x4150fb
push ebx
call fcn.0058edd4
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00404a83
cmp dword [ebp - 0x5ac], esi
je 0x415148
lea eax, [ebp - 0x5d0]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.0047442e
push dword [eax]
lea eax, [ebp - 0x22c]
mov byte [ebp - 4], 0xc
push eax
call fcn.0047026a
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5d0]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041d6f2
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push esi
cmovae eax, dword [ebp - 0x22c]
push eax
call fcn.0042cf7f
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
pop ecx
cmovae eax, dword [ebp - 0x22c]
pop ecx
push eax
mov ecx, edi
call fcn.0040c945
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
push 1
cmovae eax, dword [ebp - 0x22c]
push eax
call fcn.0042cf7f
pop ecx
pop ecx
jmp 0x414df9