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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x548e95
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5c5b9c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
push str.CDeviceInf::Init________________________IN_n
push 5
mov esi, ecx
call fcn.00411380
add esp, 8
cmp dword [esi + 8], 0
je 0x41d808
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41dba3
test ebx, ebx
jne 0x41d81b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41db6f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d820
sub eax, edx
sar eax, 1
je 0x41d80c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41d84a
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41dba3
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d850
sub eax, edx
sar eax, 1
push eax
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
call fcn.004026d0
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x41d879
mov eax, dword [edi]
jmp 0x41d87b
mov eax, edi
lea ecx, [esi + 0x30]
push eax
call fcn.0043a890
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00531b10
add esp, 0xc
cmp dword [edi + 0x14], ebx
jb 0x41d89d
mov eax, dword [edi]
jmp 0x41d89f
mov eax, edi
push 0
push 0x20
lea ecx, [ebp - 0x50]
push ecx
lea ebx, [esi + 0x68]
push ebx
push eax
call dword [0x5c70a8]
test eax, eax
jne 0x41d8d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDeviceInf::Init_SetupDiGetINFClass_failed.__0x_1_lX___n
push 2
call fcn.00411380
add esp, 0xc
xor eax, eax
jmp 0x41db6f
lea edx, [ebp - 0x50]
push edx
push str.CDeviceInf::Init_ClassName____1_s___n
push 5
call fcn.00411380
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x78]
call fcn.004066b0
movzx ecx, byte [esi + 0x77]
movzx edx, byte [esi + 0x76]
movzx eax, byte [esi + 0x75]
push ecx
movzx ecx, byte [esi + 0x74]
push edx
movzx edx, byte [esi + 0x73]
push eax
movzx eax, byte [esi + 0x72]
push ecx
movzx ecx, byte [esi + 0x71]
push edx
movzx edx, byte [esi + 0x70]
push eax
movzx eax, word [esi + 0x6e]
push ecx
movzx ecx, word [esi + 0x6c]
push edx
mov edx, dword [ebx]
push eax
push ecx
push edx
lea eax, [ebp - 0xd0]
push str.GUID___08lX__04lX__04lx__02X_02X__02X_02X_02X_02X_02X_02X_n
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
lea ecx, [ebp - 0xd0]
push ecx
push str.CDeviceInf::Init_GUID___1_s__n
push 5
call fcn.00411380
add esp, 0x40
push 0x5ccea8
push 0x74
call fcn.00532de1
add esp, 8
test eax, eax
je 0x41d96b
mov ecx, eax
call sym.Setup.exe_public:_void___thiscall_CManufacturers::constructor_void_
jmp 0x41d96d
xor eax, eax
mov dword [esi + 0x28], eax
test eax, eax
jne 0x41d97e
push str.CDeviceInf::Init_CManufacturers_object_creation_failed._n
jmp 0x41db99
cmp dword [edi + 0x14], 8
jb 0x41d986
mov edi, dword [edi]
push str.Manufacturer
lea ecx, [esi + 0x30]
push ecx
push edi
mov ecx, eax
call sym.Setup.exe_public:_int___thiscall_CManufacturers::Init_wchar_t_const___class_CInfStringTable___wchar_t_const__
test eax, eax
jne 0x41d9a5
push str.CDeviceInf::Init_CManufacturers::Init_failed._n
jmp 0x41db99
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x28]
push edx
call sym.Setup.exe_public:_int___thiscall_CManufacturers::GetList_int_
test eax, eax
jne 0x41d9bf
push str.CDeviceInf::Init_CManufacturers_cannot_GetList__._n
jmp 0x41db99
mov ecx, dword [esi + 0x28]
call sym.Setup.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
jne 0x41d9d5
push str.CDeviceInf::Init_no_Manufacturer_entries_found._n
jmp 0x41db99
mov ecx, dword [esi + 0x28]
call sym.Setup.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
mov edi, eax
xor ecx, ecx
mov edx, 0x98
mul edx
seto cl
push 0x5ccea8
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00532dd6
add esp, 8
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41da39
push fcn.00416e00
push 0x416d80
push edi
lea ebx, [eax + 4]
push 0x98
push ebx
mov dword [eax], edi
call fcn.005324f9
mov eax, ebx
jmp 0x41da3b
xor eax, eax
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], eax
cmp eax, edi
jne 0x41da55
push str.CDeviceInf::Init_CModels_object_create_failed._n
jmp 0x41db99
mov ecx, dword [esi + 0x28]
call sym.Setup.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x41db44
mov dword [ebp - 0xd8], edi
mov ecx, dword [esi + 0x28]
push edi
call sym.Setup.exe_public:_wchar_t_const____thiscall_CDeviceInfSection::GetKey_unsigned_long_int_
push eax
push str.CDeviceInf::Init_CModels_object_for__1_s__creation._n
push 5
call fcn.00411380
mov ecx, dword [esi + 0x28]
add esp, 0xc
push edi
call sym.Setup.exe_public:_wchar_t_const____thiscall_CManufacturers::GetModelsSeed_unsigned_long_int_
push eax
push edi
push str.CDeviceInf::Init_m_pManufactures__GetModelsSeed__1_lu______2_s__._n
push 5
call fcn.00411380
mov ecx, dword [esi + 0x28]
add esp, 0x10
push edi
call sym.Setup.exe_public:_wchar_t_const____thiscall_CDeviceInfSection::GetKey_unsigned_long_int_
push eax
push edi
push str.CDeviceInf::Init_m_pManufactures__GetKey__1_lu______2_s__._n
push 5
call fcn.00411380
lea eax, [esi + 0xc]
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41dacb
mov ecx, dword [eax]
mov dword [ebp - 0xdc], ecx
jmp 0x41dad1
mov dword [ebp - 0xdc], eax
mov ecx, dword [ebp + 0xc]
mov ebx, dword [esi + 0x28]
mov eax, dword [esi + 0x2c]
push ecx
push edi
mov ecx, ebx
mov dword [ebp - 0xd4], eax
call sym.Setup.exe_public:_wchar_t_const____thiscall_CDeviceInfSection::GetKey_unsigned_long_int_
push eax
push edi
mov ecx, ebx
call sym.Setup.exe_public:_wchar_t_const____thiscall_CManufacturers::GetModelsSeed_unsigned_long_int_
mov edx, dword [ebp - 0xdc]
mov ebx, dword [ebp - 0xd8]
push eax
lea eax, [esi + 0x30]
push eax
mov eax, dword [ebp - 0xd4]
push edx
lea ecx, [ebx + eax]
call fcn.00414620
test eax, eax
je 0x41db8d
mov eax, dword [esi + 0x2c]
push 0
lea ecx, [ebx + eax]
call fcn.0041a4e0
test eax, eax
je 0x41db94
mov ecx, dword [esi + 0x28]
add ebx, 0x98
inc edi
mov dword [ebp - 0xd8], ebx
call sym.Setup.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp edi, eax
jb 0x41da6b
mov ecx, esi
call sym.Setup.exe_protected:_int___thiscall_CDeviceInf::GetDeviceIdList_void_
mov ecx, dword [ebp + 0x10]
push str.CDeviceInf::Init________________________OUT_n
push 5
mov dword [esi + 8], 1
mov dword [esi + 0xd4], ecx
call fcn.00411380
add esp, 8
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00530f8d
mov esp, ebp
pop ebp
ret 0xc
push str.CDeviceInf::Init_CModels::Init_failed._n
jmp 0x41db99
push str.CDeviceInf::Init_CModels::GetList_failed._n
push 2
call fcn.00411380
add esp, 8
push str.CDeviceInf::Init________________________OUT_n
push 5
call fcn.00411380
mov ecx, dword [esi + 0x28]
xor edi, edi
add esp, 8
cmp ecx, edi
je 0x41dbc6
mov edx, dword [ecx]
mov eax, dword [edx]
push 1
call eax
mov dword [esi + 0x28], edi
mov ecx, dword [esi + 0x2c]
cmp ecx, edi
je 0x41dbf0
cmp dword [ecx - 4], edi
lea eax, [ecx - 4]
je 0x41dbe4
mov edx, dword [ecx]
mov eax, dword [edx]
push 3
call eax
mov dword [esi + 0x2c], edi
xor eax, eax
jmp 0x41db6f
push eax
call fcn.0043c798
add esp, 4
mov dword [esi + 0x2c], edi
xor eax, eax
jmp 0x41db6f