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

Disassembly:
push 0x5d8
mov eax, 0x5a82cf
call fcn.00588aeb
mov edi, ecx
mov dword [ebp - 0x5a0], edi
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x5cc]
mov dword [ebp - 0x5b0], ebx
mov dword [ebp - 0x5a4], eax
call fcn.00472e6b
push 7
xor esi, esi
pop ecx
xor eax, eax
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 0x5bf954
push str.CInitInfoStorage::GetSourceDriverVersion
push 5
mov byte [ebp - 4], 3
call fcn.00423f75
add esp, 0xc
cmp word [ebx], si
jne 0x413af8
mov eax, esi
jmp 0x413aff
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x25c]
call fcn.00403cef
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push ebx
call esi
cmp eax, 0xffffffff
je 0x413b42
push ebx
call esi
test al, 0x10
je 0x413b42
lea eax, [ebp - 0x25c]
push 0x5c1a08
push eax
mov dword [ebp - 0x5ac], 1
call fcn.0046f03c
pop ecx
pop ecx
xor esi, esi
jmp 0x413b4a
xor esi, esi
mov dword [ebp - 0x5ac], esi
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
push esi
push eax
lea ecx, [ebp - 0x5cc]
call fcn.00472f87
test eax, eax
je 0x413e94
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.0047312d
test eax, eax
je 0x413d09
lea eax, [ebp - 0x5a8]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004734bc
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 6
cmp word [esi], ax
je 0x413bd8
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x274]
call fcn.00403cef
mov ecx, dword [ebp - 0x5a8]
mov byte [ebp - 4], 5
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 - 0x5a0]
lea edi, [ebp - 0x274]
cmovae edi, dword [ebp - 0x274]
call fcn.00412fee
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.00411652
xor esi, esi
add esp, 0x14
cmp dword [ebp - 0x5a4], esi
je 0x413d03
lea ecx, [ebp - 0x59c]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x413d01
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor eax, eax
cmp word [ebx], ax
je 0x413c86
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00403cef
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.0046f03c
cmp dword [ebp - 0x218], 8
pop ecx
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
pop ecx
push eax
call edi
cmp eax, 0xffffffff
je 0x413d7b
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push eax
call edi
test al, 0x10
je 0x413d7b
lea ecx, [ebp - 0x59c]
inc esi
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp esi, eax
jb 0x413c78
xor esi, esi
mov edi, dword [ebp - 0x5a0]
lea ecx, [ebp - 0x5cc]
call fcn.00472f3b
cmp dword [ebp - 0x248], 8
lea eax, [ebp - 0x25c]
cmovae eax, dword [ebp - 0x25c]
push esi
push eax
lea ecx, [ebp - 0x5cc]
call fcn.00472f87
lea ecx, [ebp - 0x5cc]
call fcn.0047312d
lea ecx, [ebp - 0x5cc]
mov dword [ebp - 0x5d4], eax
call fcn.004734e3
test eax, eax
jne 0x413e5b
mov edx, dword [ebp - 0x5cc]
push 0x10
lea ecx, [ebp - 0x5cc]
call dword [edx + 0x38]
test eax, eax
je 0x413f35
cmp word [ebx], si
jne 0x413d8a
mov eax, esi
jmp 0x413d91
mov eax, dword [ebp - 0x5a4]
xor esi, esi
mov dword [eax], esi
jmp 0x413d03
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00403cef
lea eax, [ebp - 0x5a8]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004731f7
push dword [eax]
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 7
call fcn.0046f03c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5a8]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041c730
lea ecx, [ebp - 0x59c]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x413f13
lea ecx, [ebp - 0x59c]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x413e59
lea eax, [ebp - 0x5a4]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004731f7
push dword [eax]
lea ecx, [ebp - 0x59c]
push esi
mov byte [ebp - 4], 8
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 - 0x5a4]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
mov byte [ebp - 4], 5
call fcn.0041c730
test bl, bl
je 0x413ee9
lea ecx, [ebp - 0x59c]
inc esi
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp esi, eax
jb 0x413df8
mov ebx, dword [ebp - 0x5b0]
xor esi, esi
cmp dword [ebp - 0x5d4], 0
jne 0x413d35
lea ecx, [ebp - 0x5cc]
call fcn.00472f3b
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.00403a7f
push 0x5bf970
push str.CInitInfoStorage::GetSourceDriverVersion
push 5
call fcn.00423f75
add esp, 0xc
lea ecx, [ebp - 0x22c]
push esi
push 1
call fcn.00403a7f
push esi
push 1
lea ecx, [ebp - 0x25c]
call fcn.00403a7f
push esi
push 1
lea ecx, [ebp - 0x244]
call fcn.00403a7f
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5cc]
call fcn.00472e9b
call fcn.00588a9a
ret 8
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
xor esi, esi
push esi
push eax
mov ecx, edi
call fcn.00413a60
mov ebx, dword [ebp - 0x5b0]
jmp 0x413e5b
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push esi
push eax
mov ecx, edi
call fcn.00413a60
jmp 0x413e5b
lea eax, [ebp - 0x5a0]
push eax
lea ecx, [ebp - 0x5cc]
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 - 0x5a0]
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 0x413e5b
lea eax, [ebp - 0x5d8]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004731f7
mov esi, dword [eax]
xor eax, eax
mov byte [ebp - 4], 9
cmp word [esi], ax
je 0x413fb2
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0x244]
call fcn.00403cef
mov ecx, dword [ebp - 0x5d8]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041c730
cmp dword [ebp - 0x230], 8
mov eax, dword [ebp - 0x234]
lea ecx, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x244]
push fcn.005896c4
lea eax, [ecx + eax*2]
lea edx, [ebp - 0x244]
cmovae edx, dword [ebp - 0x244]
push edx
push eax
lea ecx, [ebp - 0x244]
cmovae ecx, dword [ebp - 0x244]
push ecx
lea eax, [ebp - 0x5e4]
push eax
call fcn.00405b31
add esp, 0x14
lea eax, [ebp - 0x5e0]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.00473244
push dword [eax]
mov esi, str.CInitInfoStorage::GetSourceDriverVersion
push str.infFile____1_s___n
push esi
push 4
mov byte [ebp - 4], 0xa
call fcn.00423f75
mov ecx, dword [ebp - 0x5e0]
add esp, 0x10
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 5
call fcn.0041c730
lea eax, [ebp - 0x5dc]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004734bc
push dword [eax]
mov byte [ebp - 4], 0xb
push str.infPath____1_s___n
push esi
push 4
call fcn.00423f75
mov ecx, dword [ebp - 0x5dc]
add esp, 0x10
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 5
call fcn.0041c730
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.00423f75
add esp, 0x10
cmp dword [ebp - 0x230], 8
lea esi, [ebp - 0x244]
cmovae esi, dword [ebp - 0x244]
call fcn.00473832
mov ecx, dword [eax + 4]
push esi
add ecx, 0xcc
call fcn.0041a5d3
test eax, eax
je 0x414102
push str.The_specified_inf_is_registered_on_NotCopyInf._Dont_retrieve_it._n
push str.CInitInfoStorage::GetSourceDriverVersion
push 4
call fcn.00423f75
add esp, 0xc
jmp 0x413e59
xor esi, esi
push esi
push 0x5bef10
lea ecx, [ebp - 0x22c]
call fcn.00403cef
push ebx
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x41414d
push 0x2e
pop eax
cmp ax, word [ebx]
je 0x41414d
push 0x5c
pop eax
cmp ax, word [ebx + 2]
je 0x41414d
push 0x5c0d18
call fcn.00588144
pop ecx
push eax
push 0x5c0d18
lea ecx, [ebp - 0x22c]
call fcn.00403cef
cmp word [ebx], si
jne 0x414156
mov eax, esi
jmp 0x41415d
push ebx
call fcn.00588144
pop ecx
push eax
push ebx
lea ecx, [ebp - 0x22c]
call fcn.00403b92
cmp dword [ebp - 0x5ac], esi
je 0x4141aa
lea eax, [ebp - 0x5d0]
push eax
lea ecx, [ebp - 0x5cc]
call fcn.004731f7
push dword [eax]
lea eax, [ebp - 0x22c]
push eax
mov byte [ebp - 4], 0xc
call fcn.0046f03c
pop ecx
pop ecx
mov ecx, dword [ebp - 0x5d0]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041c730
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push esi
push eax
call fcn.0042c16a
cmp dword [ebp - 0x218], 8
pop ecx
pop ecx
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push eax
mov ecx, edi
call fcn.0040ba10
cmp dword [ebp - 0x218], 8
lea eax, [ebp - 0x22c]
cmovae eax, dword [ebp - 0x22c]
push 1
push eax
call fcn.0042c16a
pop ecx
pop ecx
jmp 0x413e5b