Function at 0x43cb77
Capabilities:
Check if file exists
Get file attributes
Read .ini file

Disassembly:
push 0xea8
mov eax, 0x5aa462
call fcn.00588aeb
mov dword [ebp - 0xe20], ecx
mov eax, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
xor edi, edi
mov ebx, edi
lea ecx, [ebp - 0xe48]
mov dword [ebp - 0xe1c], eax
mov dword [ebp - 0xe24], ebx
call fcn.00472e6b
mov dword [ebp - 4], edi
call fcn.00472cf7
push eax
lea ecx, [ebp - 0xe08]
call fcn.00405b90
push 7
pop ecx
xor eax, eax
mov dword [ebp - 0xa98], ecx
mov dword [ebp - 0xa9c], edi
mov word [ebp - 0xaac], ax
mov dword [ebp - 0xac8], ecx
mov dword [ebp - 0xacc], edi
mov word [ebp - 0xadc], ax
push 0x5c9e94
push str.CInstallAction::CopyInf
push 5
mov byte [ebp - 4], 3
call fcn.00423f75
add esp, 0xc
test esi, esi
jne 0x43cc29
push 0x5c9f18
push str.CInstallAction::CopyInf
push 5
call fcn.00423f75
mov edi, dword [ebp - 0xe08]
mov ebx, 0x2af9
jmp 0x43d627
push edi
push 0x5bef10
lea ecx, [ebp - 0xaac]
call fcn.00403cef
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsRelativeW]
test eax, eax
je 0x43cc71
push 0x2e
pop eax
cmp ax, word [esi]
je 0x43cc71
push 0x5c
pop eax
cmp ax, word [esi + 2]
je 0x43cc71
mov edi, 0x5c0d18
push edi
call fcn.00588144
pop ecx
push eax
push edi
lea ecx, [ebp - 0xaac]
call fcn.00403cef
xor edi, edi
cmp word [esi], di
jne 0x43cc7a
mov eax, edi
jmp 0x43cc81
push esi
call fcn.00588144
pop ecx
push eax
push esi
lea ecx, [ebp - 0xaac]
call fcn.00403b92
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push esi
call edi
cmp eax, 0xffffffff
je 0x43ccb6
push esi
call edi
test al, 0x10
je 0x43ccb6
lea eax, [ebp - 0xaac]
push 0x5c1a08
push eax
call fcn.0046f03c
pop ecx
pop ecx
cmp dword [ebp - 0xa98], 8
lea eax, [ebp - 0xaac]
cmovae eax, dword [ebp - 0xaac]
xor esi, esi
push esi
push eax
lea ecx, [ebp - 0xe48]
call fcn.00472f87
test eax, eax
je 0x43d610
call fcn.00472cf7
push eax
lea ecx, [ebp - 0xe14]
call fcn.00405b90
lea ecx, [ebp - 0xe04]
mov byte [ebp - 4], 4
call sym.SETUP.exe_public:_void___thiscall_CDeviceInfSection::constructor_void_
lea ecx, [ebp - 0xe48]
mov byte [ebp - 4], 5
call fcn.0047312d
test eax, eax
je 0x43cdba
lea eax, [ebp - 0xe0c]
push eax
lea ecx, [ebp - 0xe48]
call fcn.004734bc
push eax
lea ecx, [ebp - 0xe14]
mov byte [ebp - 4], 6
call fcn.0040726a
mov ecx, dword [ebp - 0xe0c]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041c730
lea eax, [ebp - 0xe14]
push eax
call fcn.004080e0
lea ecx, [ebp - 0xe14]
mov dword [esp], 0x5c9e78
call fcn.00408133
call fcn.00473832
mov esi, dword [eax + 4]
call fcn.00473832
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0xe14]
lea ecx, [esi + 0xcc]
mov ebx, dword [eax - 0xc]
mov dword [ebp - 0xe0c], eax
call fcn.00412fee
movzx eax, ax
push eax
lea eax, [ebp - 0xe04]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebx + 1]
push eax
push dword [ebp - 0xe0c]
call fcn.00411652
add esp, 0x14
xor esi, esi
lea ecx, [ebp - 0xe48]
call fcn.00472f3b
cmp dword [ebp - 0xa98], 8
lea eax, [ebp - 0xaac]
cmovae eax, dword [ebp - 0xaac]
push esi
push eax
lea ecx, [ebp - 0xe48]
call fcn.00472f87
mov edi, dword [ebp - 0xe08]
lea ecx, [ebp - 0xe48]
call fcn.0047312d
lea ecx, [ebp - 0xe48]
mov dword [ebp - 0xe68], eax
call fcn.004734e3
test eax, eax
jne 0x43d577
mov edx, dword [ebp - 0xe48]
push 0x10
lea ecx, [ebp - 0xe48]
call dword [edx + 0x38]
lea ecx, [ebp - 0xe48]
test eax, eax
je 0x43cf6a
lea eax, [ebp - 0xe10]
push eax
call fcn.00473244
lea eax, [ebp - 0xe10]
push eax
mov byte [ebp - 4], 7
call fcn.004080e0
lea ecx, [ebp - 0xe10]
mov dword [esp], 0x5c1a08
call fcn.00408133
lea ecx, [ebp - 0xe04]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x43cf2a
lea ecx, [ebp - 0xe04]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x43cf53
lea eax, [ebp - 0xe84]
push eax
lea ecx, [ebp - 0xe48]
call fcn.004731f7
push dword [eax]
lea ecx, [ebp - 0xe04]
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 - 0xe84]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
mov byte [ebp - 4], 7
call fcn.0041c730
test bl, bl
je 0x43cedc
lea ecx, [ebp - 0xe04]
inc esi
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp esi, eax
jb 0x43ce83
jmp 0x43cf53
lea eax, [ebp - 0xe78]
push eax
lea ecx, [ebp - 0xe48]
call fcn.004734bc
push dword [ebp - 0xe1c]
lea ecx, [ebp - 0xe04]
push ecx
push dword [eax]
mov ecx, dword [ebp - 0xe20]
push dword [ebp - 0xe10]
mov byte [ebp - 4], 9
call fcn.0043cb77
mov ecx, dword [ebp - 0xe78]
mov ebx, eax
lea ecx, [ecx - 0x10]
mov dword [ebp - 0xe24], ebx
call fcn.0041c730
jmp 0x43cf4b
push dword [ebp - 0xe1c]
mov ecx, dword [ebp - 0xe20]
push esi
push esi
push dword [ebp - 0xe10]
call fcn.0043cb77
mov ebx, eax
mov dword [ebp - 0xe24], ebx
test ebx, ebx
jne 0x43d587
mov ecx, dword [ebp - 0xe10]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041c730
jmp 0x43d577
lea eax, [ebp - 0xe50]
push eax
call fcn.004731f7
push 0x101
lea ecx, [ebp - 0x294]
push ecx
push esi
push esi
push esi
push esi
push esi
push esi
push dword [eax]
call fcn.0058bead
mov ecx, dword [ebp - 0xe50]
add esp, 0x24
lea ecx, [ecx - 0x10]
call fcn.0041c730
lea eax, [ebp - 0x294]
push str..inf
push eax
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
jne 0x43d577
lea eax, [ebp - 0xe64]
push eax
lea ecx, [ebp - 0xe48]
call fcn.004731f7
push eax
lea ecx, [ebp - 0xe08]
mov byte [ebp - 4], 0xa
call fcn.0040726a
mov ecx, dword [ebp - 0xe64]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041c730
lea ecx, [ebp - 0xe08]
call fcn.00441e73
lea eax, [ebp - 0xe6c]
push eax
lea ecx, [ebp - 0xe48]
call fcn.00473244
push dword [eax]
mov ebx, str.CInstallAction::CopyInf
push str.infFile____1_s___n
push ebx
push 4
mov byte [ebp - 4], 0xb
call fcn.00423f75
mov ecx, dword [ebp - 0xe6c]
add esp, 0x10
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 5
call fcn.0041c730
lea eax, [ebp - 0xe74]
push eax
lea ecx, [ebp - 0xe48]
call fcn.004734bc
push dword [eax]
mov byte [ebp - 4], 0xc
push str.infPath____1_s___n
push ebx
push 4
call fcn.00423f75
mov ecx, dword [ebp - 0xe74]
add esp, 0x10
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 5
call fcn.0041c730
mov edi, dword [ebp - 0xe08]
push edi
push str.FileName_LOWER_____1_s___n
push ebx
push 4
call fcn.00423f75
add esp, 0x10
call fcn.00473832
mov ecx, dword [eax + 4]
push edi
add ecx, 0xcc
call fcn.0041a5d3
test eax, eax
je 0x43d0b7
push str.The_specified_inf_is_registered_on_NotCopyInf._Dont_copy_it._n
push ebx
push 4
call fcn.00423f75
add esp, 0xc
jmp 0x43d577
call fcn.00473832
mov ebx, dword [eax + 4]
lea ecx, [ebp - 0xeb4]
mov dword [ebp - 0xe28], ebx
call fcn.0046c48f
mov edx, esi
lea ecx, [ebx + 0x3b4]
mov byte [ebp - 4], 0xd
mov dword [ebp - 0xe2c], edx
mov dword [ebp - 0xe0c], ecx
mov eax, dword [ecx]
mov esi, dword [eax]
mov dword [ebp - 0xe18], esi
cmp esi, eax
je 0x43d1c4
cmp dword [esi + 0x60], 0
je 0x43d19f
lea eax, [esi + 0x50]
cmp dword [eax + 0x14], 8
jb 0x43d10f
mov eax, dword [eax]
push eax
push str.Cached__inf_file___1_s_._n
mov ebx, str.CInstallAction::CopyInf
push ebx
push 4
call fcn.00423f75
add esp, 0x10
lea eax, [ebp - 0xe7c]
push eax
lea ecx, [ebp - 0xe48]
call fcn.00473244
push dword [eax]
mov byte [ebp - 4], 0xe
push str.Install_inf_file___1_s_._n
push ebx
push 4
call fcn.00423f75
mov ecx, dword [ebp - 0xe7c]
add esp, 0x10
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 0xd
call fcn.0041c730
lea eax, [ebp - 0xe4c]
push eax
lea ecx, [ebp - 0xe48]
call fcn.00473244
mov ecx, dword [eax]
lea eax, [esi + 0x50]
cmp dword [eax + 0x14], 8
jb 0x43d17e
mov eax, dword [eax]
push ecx
push eax
call fcn.0058b527
pop ecx
mov ebx, eax
pop ecx
mov ecx, dword [ebp - 0xe4c]
neg ebx
sbb bl, bl
add ecx, 0xfffffff0
call fcn.0041c730
inc bl
jne 0x43d1e2
lea ecx, [ebp - 0xe18]
call fcn.0042049a
mov ecx, dword [ebp - 0xe0c]
mov esi, dword [ebp - 0xe18]
cmp esi, dword [ecx]
jne 0x43d0fa
mov edx, dword [ebp - 0xe2c]
inc edx
add ecx, 8
mov dword [ebp - 0xe2c], edx
mov dword [ebp - 0xe0c], ecx
cmp edx, 5
jb 0x43d0e8
jmp 0x43d568
lea eax, [esi + 0x50]
mov dword [ebp - 0xe0c], eax
cmp dword [eax + 0x14], 8
jb 0x43d1f3
mov eax, dword [eax]
push eax
push str.driver_info_INF_1_s__n
push str.CInstallAction::CopyInf
push 4
call fcn.00423f75
add esp, 0x10
cmp dword [ebp - 0xe2c], 4
je 0x43d222
mov ecx, dword [ebp - 0xe20]
push 1
add esi, 0x28
push esi
call fcn.0043e282
lea eax, [ebp - 0xe58]
push eax
lea ecx, [ebp - 0xe48]
call fcn.00473244
push dword [eax]
lea eax, [ebp - 0x90]
push 0x40
push eax
push 0
push str.Class
push str.Version
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, dword [ebp - 0xe58]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
call fcn.0041c730
lea ecx, [ebp - 0xe48]
test bl, bl
je 0x43d534
lea eax, [ebp - 0xe54]
push eax
call fcn.00473244
push dword [eax]
mov esi, str.CInstallAction::CopyInf
push str.__1_s___has_Version_Class_key._n_n
push esi
push 4
mov byte [ebp - 4], 0xf
call fcn.00423f75
mov ecx, dword [ebp - 0xe54]
add esp, 0x10
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 0xd
call fcn.0041c730
mov ebx, dword [ebp - 0xe1c]
test ebx, ebx
je 0x43d34d
push str.Notify_inf_file_information_to_ExternalIF._n
push esi
push 4
call fcn.00423f75
add esp, 0xc
lea eax, [ebp - 0xe5c]
push eax
lea ecx, [ebp - 0xe48]
call fcn.00473244
push dword [eax]
lea eax, [ebp - 0xe08]
push str._log__Processing_inf_name___s_._n
push eax
mov byte [ebp - 4], 0x10
call fcn.0040a6b5
mov ecx, dword [ebp - 0xe5c]
add esp, 0xc
lea ecx, [ecx - 0x10]
mov byte [ebp - 4], 0xd
call fcn.0041c730
mov eax, dword [ebx]
push 0xb
mov ecx, ebx
call dword [eax + 0xc]
mov ebx, dword [ebp - 0xe28]
mov edi, dword [ebp - 0xe08]
push edi
lea esi, [ebx + 0xd0]
push str.__EXTIF_MSGBUF__
mov ecx, esi
call fcn.0046e541
test eax, eax
jne 0x43d340
push edi
push str.__EXTIF_MSGBUF__
mov ecx, esi
call fcn.0046c5e0
mov ecx, dword [ebp - 0xe1c]
mov eax, dword [ecx]
call dword [eax + 0x14]
jmp 0x43d353
mov ebx, dword [ebp - 0xe28]
push 0x800
lea eax, [ebp - 0xa94]
push 0
push eax
call fcn.00587a70
add esp, 0xc
lea eax, [ebp - 0xe60]
push eax
lea ecx, [ebp - 0xe48]
call fcn.004734bc
mov esi, eax
lea eax, [ebp - 0xe70]
push eax
lea ecx, [ebp - 0xe48]
mov byte [ebp - 4], 0x11
call fcn.00473244
xor edx, edx
push edx
push edx
push 0x400
lea ecx, [ebp - 0xa94]
push ecx
mov ecx, dword [ebp - 0xe20]
push edx
push 1
push dword [esi]
mov byte [ebp - 4], 0x12
push dword [eax]
call fcn.0044222e
mov ecx, dword [ebp - 0xe70]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0041c730
mov ecx, dword [ebp - 0xe60]
add ecx, 0xfffffff0
mov byte [ebp - 4], 0xd
call fcn.0041c730
test esi, esi
je 0x43d59b
lea eax, [ebp - 0xa94]
push eax
push str.__replace_to__1_s__n
push str.CInstallAction::CopyInf
push 4
call fcn.00423f75
add esp, 0x10
cmp word [ebp - 0xa94], 0
jne 0x43d40c
xor eax, eax
jmp 0x43d419
lea eax, [ebp - 0xa94]
push eax
call fcn.00588144
pop ecx
mov ecx, dword [ebp - 0xe0c]
push eax
lea eax, [ebp - 0xa94]
push eax
call fcn.00403cef
lea eax, [ebp - 0x90]
push str.image
push eax
call fcn.0058b527
pop ecx
pop ecx
test eax, eax
jne 0x43d568
mov eax, dword [ebx + 0x3c4]
mov esi, dword [eax]
mov dword [ebp - 0xe18], esi
cmp esi, eax
je 0x43d568
lea ecx, [ebp - 0xe9c]
call fcn.0046c48f
sub esi, 0xffffff80
mov byte [ebp - 4], 0x13
cmp dword [esi + 0x14], 8
jb 0x43d477
mov esi, dword [esi]
push 0x2c
push esi
lea ecx, [ebp - 0xe9c]
call fcn.0046d9ee
push 0x20
lea ecx, [ebp - 0xe9c]
call fcn.0046e2e7
lea ecx, [ebp - 0xe9c]
call fcn.0046c815
cmp eax, 2
jne 0x43d506
push 1
lea ecx, [ebp - 0xe9c]
call fcn.0046caa8
push eax
lea ecx, [ebp - 0xac4]
call fcn.004010bc
cmp dword [ebp - 0xab0], 8
mov esi, dword [ebp - 0xab4]
lea ebx, [ebp - 0xac4]
cmovae ebx, dword [ebp - 0xac4]
mov byte [ebp - 4], 0x14
call fcn.00473832
mov ecx, dword [eax + 4]
lea eax, [esi + 1]
push eax
push ebx
add ecx, 0xcc
call fcn.0041de78
push 0
push 1
lea ecx, [ebp - 0xac4]
call fcn.00403a7f
mov ebx, dword [ebp - 0xe28]
lea ecx, [ebp - 0xe9c]
mov byte [ebp - 4], 0xd
call fcn.0046c546
lea ecx, [ebp - 0xe18]
call fcn.0042049a
mov esi, dword [ebp - 0xe18]
cmp esi, dword [ebx + 0x3c4]
jne 0x43d45d
jmp 0x43d568
lea eax, [ebp - 0xe80]
push eax
call fcn.00473244
push dword [eax]
mov byte [ebp - 4], 0x15
push str.__1_s___does_not_have_Version_Class_key._n_n
push str.CInstallAction::CopyInf
push 4
call fcn.00423f75
mov ecx, dword [ebp - 0xe80]
add esp, 0x10
lea ecx, [ecx - 0x10]
call fcn.0041c730
lea ecx, [ebp - 0xeb4]
mov byte [ebp - 4], 5
call fcn.0046c546
cmp dword [ebp - 0xe68], 0
je 0x43d5dc
xor esi, esi
jmp 0x43cdec
mov ecx, dword [ebp - 0xe10]
mov byte [ebp - 4], 5
lea ecx, [ecx - 0x10]
call fcn.0041c730
jmp 0x43d5e2
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push eax
push str.SetupCopyOEMInf_failed._0x_x__n
push str.CInstallAction::CopyInf
push 4
call fcn.00423f75
add esp, 0x10
call esi
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xeb4]
cmp eax, 0x7a
jne 0x43d5d5
mov ebx, 0x2711
call fcn.0046c546
jmp 0x43d5e2
mov ebx, 0x2af9
jmp 0x43d5ce
mov ebx, dword [ebp - 0xe24]
lea ecx, [ebp - 0xe48]
call fcn.00472f3b
lea ecx, [ebp - 0xe04]
mov byte [ebp - 4], 4
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInfSection::destructor_void_
mov ecx, dword [ebp - 0xe14]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0041c730
jmp 0x43d616
mov edi, dword [ebp - 0xe08]
push 0x5c9efc
push str.CInstallAction::CopyInf
push 5
call fcn.00423f75
add esp, 0xc
lea ecx, [ebp - 0xadc]
push 0
push 1
call fcn.00403a7f
push 0
push 1
lea ecx, [ebp - 0xaac]
call fcn.00403a7f
lea ecx, [edi - 0x10]
call fcn.0041c730
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xe48]
call fcn.00472e9b
mov eax, ebx
call fcn.00588a9a
ret 0x10