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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x536255
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5a6a30]
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.00403750
add esp, 8
cmp dword [esi + 8], 0
je 0x41d098
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41d433
test ebx, ebx
jne 0x41d0ab
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x41d3ff
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d0b0
sub eax, edx
sar eax, 1
je 0x41d09c
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41d0da
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x41d433
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41d0e0
sub eax, edx
sar eax, 1
push eax
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
call fcn.00401dd0
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x41d109
mov eax, dword [edi]
jmp 0x41d10b
mov eax, edi
lea ecx, [esi + 0x30]
push eax
call fcn.00428f40
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0051eb70
add esp, 0xc
cmp dword [edi + 0x14], ebx
jb 0x41d12d
mov eax, dword [edi]
jmp 0x41d12f
mov eax, edi
push 0
push 0x20
lea ecx, [ebp - 0x50]
push ecx
lea ebx, [esi + 0x68]
push ebx
push eax
call dword [0x5a80a0]
test eax, eax
jne 0x41d163
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDeviceInf::Init_SetupDiGetINFClass_failed.__0x_1_lX___n
push 2
call fcn.00403750
add esp, 0xc
xor eax, eax
jmp 0x41d3ff
lea edx, [ebp - 0x50]
push edx
push str.CDeviceInf::Init_ClassName____1_s___n
push 5
call fcn.00403750
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x78]
call fcn.004036f0
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.00403750
add esp, 0x40
push 0x5ad9e8
push 0x74
call fcn.0052010f
add esp, 8
test eax, eax
je 0x41d1fb
mov ecx, eax
call sym.DelDrv.exe_public:_void___thiscall_CManufacturers::constructor_void_
jmp 0x41d1fd
xor eax, eax
mov dword [esi + 0x28], eax
test eax, eax
jne 0x41d20e
push str.CDeviceInf::Init_CManufacturers_object_creation_failed._n
jmp 0x41d429
cmp dword [edi + 0x14], 8
jb 0x41d216
mov edi, dword [edi]
push str.Manufacturer
lea ecx, [esi + 0x30]
push ecx
push edi
mov ecx, eax
call sym.DelDrv.exe_public:_int___thiscall_CManufacturers::Init_wchar_t_const___class_CInfStringTable___wchar_t_const__
test eax, eax
jne 0x41d235
push str.CDeviceInf::Init_CManufacturers::Init_failed._n
jmp 0x41d429
mov edx, dword [ebp + 0x10]
mov ecx, dword [esi + 0x28]
push edx
call sym.DelDrv.exe_public:_int___thiscall_CManufacturers::GetList_int_
test eax, eax
jne 0x41d24f
push str.CDeviceInf::Init_CManufacturers_cannot_GetList__._n
jmp 0x41d429
mov ecx, dword [esi + 0x28]
call sym.DelDrv.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
jne 0x41d265
push str.CDeviceInf::Init_no_Manufacturer_entries_found._n
jmp 0x41d429
mov ecx, dword [esi + 0x28]
call sym.DelDrv.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
mov edi, eax
xor ecx, ecx
mov edx, 0x98
mul edx
seto cl
push 0x5ad9e8
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.00520104
add esp, 8
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x41d2c9
push fcn.00416600
push 0x416580
push edi
lea ebx, [eax + 4]
push 0x98
push ebx
mov dword [eax], edi
call fcn.0051fb1a
mov eax, ebx
jmp 0x41d2cb
xor eax, eax
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], eax
cmp eax, edi
jne 0x41d2e5
push str.CDeviceInf::Init_CModels_object_create_failed._n
jmp 0x41d429
mov ecx, dword [esi + 0x28]
call sym.DelDrv.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x41d3d4
mov dword [ebp - 0xd8], edi
mov ecx, dword [esi + 0x28]
push edi
call sym.DelDrv.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.00403750
mov ecx, dword [esi + 0x28]
add esp, 0xc
push edi
call sym.DelDrv.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.00403750
mov ecx, dword [esi + 0x28]
add esp, 0x10
push edi
call sym.DelDrv.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.00403750
lea eax, [esi + 0xc]
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x41d35b
mov ecx, dword [eax]
mov dword [ebp - 0xdc], ecx
jmp 0x41d361
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.DelDrv.exe_public:_wchar_t_const____thiscall_CDeviceInfSection::GetKey_unsigned_long_int_
push eax
push edi
mov ecx, ebx
call sym.DelDrv.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.00413dc0
test eax, eax
je 0x41d41d
mov eax, dword [esi + 0x2c]
push 0
lea ecx, [ebx + eax]
call fcn.00419d70
test eax, eax
je 0x41d424
mov ecx, dword [esi + 0x28]
add ebx, 0x98
inc edi
mov dword [ebp - 0xd8], ebx
call sym.DelDrv.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp edi, eax
jb 0x41d2fb
mov ecx, esi
call sym.DelDrv.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.00403750
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.0051e701
mov esp, ebp
pop ebp
ret 0xc
push str.CDeviceInf::Init_CModels::Init_failed._n
jmp 0x41d429
push str.CDeviceInf::Init_CModels::GetList_failed._n
push 2
call fcn.00403750
add esp, 8
push str.CDeviceInf::Init________________________OUT_n
push 5
call fcn.00403750
mov ecx, dword [esi + 0x28]
xor edi, edi
add esp, 8
cmp ecx, edi
je 0x41d456
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 0x41d480
cmp dword [ecx - 4], edi
lea eax, [ecx - 4]
je 0x41d474
mov edx, dword [ecx]
mov eax, dword [edx]
push 3
call eax
mov dword [esi + 0x2c], edi
xor eax, eax
jmp 0x41d3ff
push eax
call fcn.00429e6f
add esp, 4
mov dword [esi + 0x2c], edi
xor eax, eax
jmp 0x41d3ff