Function at 0x410d60
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x593a60
mov eax, dword fs:[0]
push eax
sub esp, 0x1e4
mov eax, dword [0x601ffc]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x180], eax
mov dword [ebp - 4], 0
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x410e2b
xorps xmm0, xmm0
mov dword [ebp - 0x118], 0
xor ebx, ebx
movq qword [ebp - 0x120], xmm0
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x118], ebx
push dword [ebp - 0x180]
xor edx, edx
push ecx
xor ecx, ecx
call fcn.00403a30
add esp, 8
mov byte [ebp - 4], 2
xor esi, esi
lea eax, [ebp + 8]
cmp dword [ebp + 0x1c], 8
mov dword [ebp - 0x11c], esi
cmovae eax, dword [ebp + 8]
push esi
push 2
push esi
push eax
mov dword [ebp - 0x13c], esi
call dword [sym.imp.SETUPAPI.dll_SetupOpenInfFileW]
mov dword [ebp - 0x17c], eax
cmp eax, 0xffffffff
jne 0x410e49
lea ecx, [ebp - 0x120]
call fcn.00403650
mov eax, dword [ebp + 0x1c]
cmp eax, 8
jb 0x410f02
inc eax
lea ecx, [ebp + 8]
push eax
push dword [ebp + 8]
call fcn.004030d0
jmp 0x410f02
lea ecx, [ebp - 0x14c]
push ecx
push str.ClassGUID
push str.Version
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x410eef
push 0x100
call fcn.00425129
add esp, 4
mov edi, eax
lea eax, [ebp - 0x13c]
push eax
push 0x100
push edi
push 1
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
mov edx, edi
lea ecx, [ebp - 0x198]
call fcn.00406970
cmp dword [eax + 0x14], 8
jb 0x410ea9
mov eax, dword [eax]
lea ecx, [ebp - 0x15c]
push ecx
push eax
call dword [sym.imp.ole32.dll_CLSIDFromString]
movups xmm0, xmmword [ebp - 0x15c]
lea ecx, [ebp - 0x198]
movups xmmword [ebp - 0x1f0], xmm0
call fcn.00402f10
mov edi, dword [ebp - 0x17c]
lea eax, [ebp - 0x14c]
push eax
push 0
push str.Manufacturer
push edi
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
jne 0x410f2a
lea ecx, [ebp - 0x120]
call fcn.00403650
lea ecx, [ebp + 8]
call fcn.00402f10
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056a31e
mov esp, ebp
pop ebp
ret 0x1c
test eax, eax
je 0x4113be
push 0x100
call fcn.00425129
add esp, 4
mov dword [ebp - 0x178], 0
mov edi, eax
lea eax, [ebp - 0x178]
push eax
push 0x100
push edi
push 1
lea eax, [ebp - 0x14c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetMultiSzFieldA]
cmp dword [ebp - 0x178], 0x100
jbe 0x410f9b
push 1
push edi
call fcn.0056a32f
push dword [ebp - 0x178]
call fcn.00425129
add esp, 0xc
mov edi, eax
lea eax, [ebp - 0x14c]
push 0
push dword [ebp - 0x178]
push edi
push 1
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetMultiSzFieldA]
test eax, eax
je 0x4113ab
cmp byte [edi], 0
mov dword [ebp - 0x160], 0xf
mov dword [ebp - 0x164], 0
mov byte [ebp - 0x174], 0
jne 0x410fc7
xor ecx, ecx
jmp 0x410fd9
mov ecx, edi
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x410fd0
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x174]
call fcn.00401ee0
push 0xffffffffffffffff
mov byte [ebp - 4], 3
lea eax, [ebp - 0x174]
push 0
push eax
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
call fcn.00401fe0
mov byte [ebp - 4], 4
nop
cmp dword [ebp - 0x124], 0x10
lea ecx, [ebp - 0x15c]
push ecx
lea eax, [ebp - 0x138]
cmovae eax, dword [ebp - 0x138]
push 0
push eax
push dword [ebp - 0x17c]
call dword [sym.imp.SETUPAPI.dll_SetupFindFirstLineA]
test eax, eax
je 0x41115e
push 0x100
lea eax, [ebp - 0x114]
push 0
push eax
call fcn.0056e4a0
add esp, 0xc
lea eax, [ebp - 0x114]
push 0
push 0x100
push eax
push 2
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.SETUPAPI.dll_SetupGetStringFieldA]
test eax, eax
je 0x411143
lea edx, [ebp - 0x114]
lea ecx, [ebp - 0x198]
call fcn.004053b0
mov edi, eax
mov byte [ebp - 4], 5
cmp edi, esi
jae 0x4110ec
cmp ebx, edi
ja 0x4110ec
sub edi, ebx
mov eax, 0x2aaaaaab
imul edi
sar edx, 2
mov edi, edx
shr edi, 0x1f
add edi, edx
cmp esi, dword [ebp - 0x118]
jne 0x4110df
push ecx
lea ecx, [ebp - 0x120]
call fcn.004036b0
mov esi, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x120]
lea eax, [edi + edi*2]
lea eax, [ebx + eax*8]
test esi, esi
je 0x411118
push eax
jmp 0x411111
cmp esi, dword [ebp - 0x118]
jne 0x41110c
push ecx
lea ecx, [ebp - 0x120]
call fcn.004036b0
mov esi, dword [ebp - 0x11c]
mov ebx, dword [ebp - 0x120]
test esi, esi
je 0x411118
push edi
mov ecx, esi
call fcn.00401d80
add esi, 0x18
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x11c], esi
cmp eax, 0x10
jb 0x411143
inc eax
lea ecx, [ebp - 0x198]
push eax
push dword [ebp - 0x198]
call fcn.004023b0
lea eax, [ebp - 0x15c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
test eax, eax
jne 0x411052
jmp 0x41134a
mov dword [ebp - 0x19c], 0xf
mov dword [ebp - 0x1a0], 0
mov byte [ebp - 0x1b0], 0
cmp byte [edi], 0
jne 0x411182
xor ecx, ecx
jmp 0x411190
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x411187
sub ecx, edx
push ecx
push edi
lea ecx, [ebp - 0x1b0]
call fcn.00401ee0
mov eax, dword [ebp - 0x1a0]
inc eax
add edi, eax
mov eax, dword [ebp - 0x19c]
cmp eax, 0x10
jb 0x4111c4
inc eax
lea ecx, [ebp - 0x1b0]
push eax
push dword [ebp - 0x1b0]
call fcn.004023b0
mov dword [ebp - 0x19c], 0xf
mov dword [ebp - 0x1a0], 0
mov byte [ebp - 0x1b0], 0
cmp byte [edi], 0
mov dword [ebp - 0x1b4], 0xf
mov dword [ebp - 0x1b8], 0
mov byte [ebp - 0x1c8], 0
jne 0x411203
xor eax, eax
jmp 0x411211
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411208
sub eax, edx
push eax
push edi
lea ecx, [ebp - 0x1c8]
call fcn.00401ee0
push 0x5df108
lea edx, [ebp - 0x174]
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x198]
call fcn.00407b60
add esp, 4
lea ecx, [ebp - 0x1c8]
mov byte [ebp - 4], 7
push ecx
mov edx, eax
lea ecx, [ebp - 0x1e0]
call 0x407cf0
add esp, 4
mov ebx, eax
lea eax, [ebp - 0x138]
cmp eax, ebx
je 0x4112a7
mov eax, dword [ebp - 0x124]
cmp eax, 0x10
jb 0x411280
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.004023b0
push ebx
lea ecx, [ebp - 0x138]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
call fcn.00402340
mov eax, dword [ebp - 0x1cc]
cmp eax, 0x10
jb 0x4112c5
inc eax
lea ecx, [ebp - 0x1e0]
push eax
push dword [ebp - 0x1e0]
call fcn.004023b0
mov eax, dword [ebp - 0x184]
mov dword [ebp - 0x1cc], 0xf
mov dword [ebp - 0x1d0], 0
mov byte [ebp - 0x1e0], 0
cmp eax, 0x10
jb 0x4112fe
inc eax
lea ecx, [ebp - 0x198]
push eax
push dword [ebp - 0x198]
call fcn.004023b0
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x1b4]
mov dword [ebp - 0x184], 0xf
mov dword [ebp - 0x188], 0
mov byte [ebp - 0x198], 0
cmp eax, 0x10
jb 0x41133b
inc eax
lea ecx, [ebp - 0x1c8]
push eax
push dword [ebp - 0x1c8]
call fcn.004023b0
cmp byte [edi], 0
mov ebx, dword [ebp - 0x120]
jne 0x411020
mov eax, dword [ebp - 0x124]
cmp eax, 0x10
jb 0x411368
inc eax
lea ecx, [ebp - 0x138]
push eax
push dword [ebp - 0x138]
call fcn.004023b0
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x160]
mov dword [ebp - 0x124], 0xf
mov dword [ebp - 0x128], 0
mov byte [ebp - 0x138], 0
cmp eax, 0x10
jb 0x4113a5
inc eax
lea ecx, [ebp - 0x174]
push eax
push dword [ebp - 0x174]
call fcn.004023b0
mov ebx, dword [ebp - 0x120]
lea eax, [ebp - 0x14c]
push eax
push eax
call dword [sym.imp.SETUPAPI.dll_SetupFindNextLine]
jmp 0x410f22
push dword [ebp - 0x180]
lea eax, [ebp - 0x120]
sub esp, 0xc
mov ecx, esp
push eax
call fcn.00412570
movups xmm0, xmmword [ebp - 0x1f0]
sub esp, 0x10
mov eax, esp
movups xmmword [eax], xmm0
call fcn.00411440
test al, al
je 0x410eef
mov edi, dword [ebp - 0x17c]
test edi, edi
je 0x411402
push edi
call dword [sym.imp.SETUPAPI.dll_SetupCloseInfFile]
lea ecx, [ebp - 0x120]
call fcn.00403650
lea ecx, [ebp + 8]
call fcn.00402f10
mov eax, 1
jmp 0x410f04