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

Disassembly:
push 0x374
mov eax, 0x5a7af9
call fcn.00588aeb
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x380]
mov dword [ebp - 0x350], ebx
mov dword [ebp - 0x34c], eax
call fcn.00472e6b
and dword [ebp - 4], 0
push ebx
lea ecx, [ebp - 0x344]
call fcn.00405c1a
push ebx
lea ecx, [ebp - 0x348]
mov byte [ebp - 4], 1
call fcn.00405c1a
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 2
call sym.SETUP.exe_public:_void___thiscall_CDeviceInfSection::constructor_void_
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xorps xmm0, xmm0
push ebx
mov byte [ebp - 4], 3
movlpd qword [ebp - 0x358], xmm0
call esi
cmp eax, 0xffffffff
je 0x40b57c
push ebx
call esi
cmp eax, 0xffffffff
je 0x40b57c
push ebx
call esi
test al, 0x10
je 0x40b57c
push 0x5c
lea ecx, [ebp - 0x344]
call fcn.0041e001
push 0x5bfe70
lea ecx, [ebp - 0x344]
call fcn.00408133
lea eax, [ebp - 0x348]
push eax
call fcn.004080e0
lea ecx, [ebp - 0x348]
mov dword [esp], 0x5bf920
call fcn.00408133
call fcn.00473832
mov esi, dword [eax + 4]
call fcn.00473832
mov edi, dword [eax + 4]
mov eax, dword [ebp - 0x348]
lea ecx, [esi + 0xcc]
mov ebx, dword [eax - 0xc]
mov dword [ebp - 0x340], eax
call fcn.00412fee
movzx eax, ax
push eax
lea eax, [ebp - 0x338]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebx + 1]
push eax
push dword [ebp - 0x340]
call fcn.00411652
mov ebx, dword [ebp - 0x350]
add esp, 0x14
push 0
push dword [ebp - 0x344]
lea ecx, [ebp - 0x380]
call fcn.00472f87
mov esi, dword [ebp - 0x354]
mov edi, dword [ebp - 0x358]
test eax, eax
je 0x40b772
push ebx
lea ecx, [ebp - 0x33c]
call fcn.00405c1a
lea ecx, [ebp - 0x380]
mov byte [ebp - 4], 4
call fcn.0047312d
lea ecx, [ebp - 0x380]
mov dword [ebp - 0x354], eax
call fcn.004734e3
test eax, eax
jne 0x40b748
push 0x5c
lea ecx, [ebp - 0x33c]
call fcn.0041e001
lea eax, [ebp - 0x364]
push eax
lea ecx, [ebp - 0x380]
call fcn.004731f7
push eax
lea eax, [ebp - 0x360]
push 0x5bef0c
push eax
mov byte [ebp - 4], 5
call fcn.00407a5b
add esp, 0xc
mov eax, dword [eax]
lea ecx, [ebp - 0x33c]
push dword [eax - 0xc]
mov byte [ebp - 4], 6
push eax
call fcn.0040815c
mov ecx, dword [ebp - 0x360]
lea ecx, [ecx - 0x10]
call fcn.0041c730
mov ecx, dword [ebp - 0x364]
mov byte [ebp - 4], 4
lea ecx, [ecx - 0x10]
call fcn.0041c730
mov eax, dword [ebp - 0x380]
push 0x10
lea ecx, [ebp - 0x380]
call dword [eax + 0x38]
test eax, eax
je 0x40b72d
lea ecx, [ebp - 0x338]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x40b714
and dword [ebp - 0x340], 0
lea ecx, [ebp - 0x338]
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
test eax, eax
je 0x40b748
mov ebx, dword [ebp - 0x340]
lea eax, [ebp - 0x35c]
push eax
lea ecx, [ebp - 0x380]
call fcn.004731f7
push dword [eax]
lea ecx, [ebp - 0x338]
push ebx
mov byte [ebp - 4], 7
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 - 0x35c]
test eax, eax
lea ecx, [ecx - 0x10]
setne bl
mov byte [ebp - 4], 4
call fcn.0041c730
test bl, bl
je 0x40b6f5
mov ebx, dword [ebp - 0x340]
inc ebx
lea ecx, [ebp - 0x338]
mov dword [ebp - 0x340], ebx
call sym.SETUP.exe_public:_unsigned_long_int___thiscall_CDeviceInfSection::Count_void_
cmp ebx, eax
jb 0x40b690
jmp 0x40b70c
push dword [ebp - 0x34c]
push dword [ebp - 0x33c]
call fcn.0040b45a
pop ecx
add edi, eax
pop ecx
adc esi, edx
mov ebx, dword [ebp - 0x350]
jmp 0x40b748
push dword [ebp - 0x34c]
push dword [ebp - 0x33c]
call fcn.0040b45a
pop ecx
add edi, eax
pop ecx
adc esi, edx
jmp 0x40b748
lea ecx, [ebp - 0x380]
call fcn.004734a6
add edi, eax
mov eax, dword [ebp - 0x34c]
adc esi, edx
test eax, eax
je 0x40b748
inc dword [eax]
mov ecx, dword [ebp - 0x33c]
mov byte [ebp - 4], 3
lea ecx, [ecx - 0x10]
call fcn.0041c730
cmp dword [ebp - 0x354], 0
jne 0x40b5a3
lea ecx, [ebp - 0x380]
call fcn.00472f3b
lea ecx, [ebp - 0x338]
mov byte [ebp - 4], 2
call sym.SETUP.exe_public_virtual:_void___thiscall_CDeviceInfSection::destructor_void_
mov ecx, dword [ebp - 0x348]
lea ecx, [ecx - 0x10]
call fcn.0041c730
mov ecx, dword [ebp - 0x344]
add ecx, 0xfffffff0
call fcn.0041c730
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x380]
call fcn.00472e9b
mov eax, edi
mov edx, esi
call fcn.00588a9a
ret