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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x558c75
mov eax, dword fs:[0]
push eax
sub esp, 0xd0
mov eax, dword [0x5d7b20]
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.00403ab0
add esp, 8
cmp dword [esi + 8], 0
je 0x436ae8
push 0x3e8
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x436e83
test ebx, ebx
jne 0x436afb
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x436e4f
mov eax, ebx
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436b00
sub eax, edx
sar eax, 1
je 0x436aec
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x436b2a
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x436e83
mov eax, ebx
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x436b30
sub eax, edx
sar eax, 1
push eax
lea edi, [esi + 0xc]
push ebx
mov ecx, edi
call fcn.004021b0
mov ebx, 8
cmp dword [edi + 0x14], ebx
jb 0x436b59
mov eax, dword [edi]
jmp 0x436b5b
mov eax, edi
lea ecx, [esi + 0x30]
push eax
call fcn.004482f0
push 0x40
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.0053e550
add esp, 0xc
cmp dword [edi + 0x14], ebx
jb 0x436b7d
mov eax, dword [edi]
jmp 0x436b7f
mov eax, edi
push 0
push 0x20
lea ecx, [ebp - 0x50]
push ecx
lea ebx, [esi + 0x68]
push ebx
push eax
call dword [0x5d9198]
test eax, eax
jne 0x436bb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CDeviceInf::Init_SetupDiGetINFClass_failed.__0x_1_lX___n
push 2
call fcn.00403ab0
add esp, 0xc
xor eax, eax
jmp 0x436e4f
lea edx, [ebp - 0x50]
push edx
push str.CDeviceInf::Init_ClassName____1_s___n
push 5
call fcn.00403ab0
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea ecx, [esi + 0x78]
call fcn.00402490
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.00403ab0
add esp, 0x40
push 0x5dead8
push 0x74
call fcn.0054051a
add esp, 8
test eax, eax
je 0x436c4b
mov ecx, eax
call sym.DelDrv.exe_public:_void___thiscall_CManufacturers::constructor_void_
jmp 0x436c4d
xor eax, eax
mov dword [esi + 0x28], eax
test eax, eax
jne 0x436c5e
push str.CDeviceInf::Init_CManufacturers_object_creation_failed._n
jmp 0x436e79
cmp dword [edi + 0x14], 8
jb 0x436c66
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 0x436c85
push str.CDeviceInf::Init_CManufacturers::Init_failed._n
jmp 0x436e79
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 0x436c9f
push str.CDeviceInf::Init_CManufacturers_cannot_GetList__._n
jmp 0x436e79
mov ecx, dword [esi + 0x28]
call sym.DelDrv.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
jne 0x436cb5
push str.CDeviceInf::Init_no_Manufacturer_entries_found._n
jmp 0x436e79
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 0x5dead8
neg ecx
or ecx, eax
xor eax, eax
add ecx, 4
setb al
neg eax
or eax, ecx
push eax
call fcn.0054050f
add esp, 8
mov dword [ebp - 0xd4], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x436d19
push fcn.0042fd60
push 0x42fce0
push edi
lea ebx, [eax + 4]
push 0x98
push ebx
mov dword [eax], edi
call fcn.0053f788
mov eax, ebx
jmp 0x436d1b
xor eax, eax
xor edi, edi
mov dword [ebp - 4], 0xffffffff
mov dword [esi + 0x2c], eax
cmp eax, edi
jne 0x436d35
push str.CDeviceInf::Init_CModels_object_create_failed._n
jmp 0x436e79
mov ecx, dword [esi + 0x28]
call sym.DelDrv.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x436e24
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.00403ab0
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.00403ab0
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.00403ab0
lea eax, [esi + 0xc]
add esp, 0x10
cmp dword [eax + 0x14], 8
jb 0x436dab
mov ecx, dword [eax]
mov dword [ebp - 0xdc], ecx
jmp 0x436db1
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.0042dd90
test eax, eax
je 0x436e6d
mov eax, dword [esi + 0x2c]
push 0
lea ecx, [ebx + eax]
call fcn.00433170
test eax, eax
je 0x436e74
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 0x436d4b
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.00403ab0
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.0053e1ad
mov esp, ebp
pop ebp
ret 0xc
push str.CDeviceInf::Init_CModels::Init_failed._n
jmp 0x436e79
push str.CDeviceInf::Init_CModels::GetList_failed._n
push 2
call fcn.00403ab0
add esp, 8
push str.CDeviceInf::Init________________________OUT_n
push 5
call fcn.00403ab0
mov ecx, dword [esi + 0x28]
xor edi, edi
add esp, 8
cmp ecx, edi
je 0x436ea6
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 0x436ed0
cmp dword [ecx - 4], edi
lea eax, [ecx - 4]
je 0x436ec4
mov edx, dword [ecx]
mov eax, dword [edx]
push 3
call eax
mov dword [esi + 0x2c], edi
xor eax, eax
jmp 0x436e4f
push eax
call fcn.00449b7c
add esp, 4
mov dword [esi + 0x2c], edi
xor eax, eax
jmp 0x436e4f