Function at 0x40a0f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416928
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x41c084]
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
test byte [0x41cf38], 0x10
mov esi, ecx
mov dword [ebp - 0x68], esi
je 0x40a171
xor eax, eax
cmp eax, str.DevInst.cpp
jne 0x40a139
mov eax, 0x41cfb4
jmp 0x40a154
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a153
mov eax, str.DevInst.cpp
jmp 0x40a154
inc eax
push str.UninstallOEMInf
push 0xa27
push eax
push 0x41926c
push str._T____s____s__d___s_:__n
call fcn.0040bbf0
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x40a18c
test al, 1
je 0x40a18c
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, 0xf
mov eax, esi
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x40a1a4
sub eax, edx
mov edi, eax
mov eax, esi
lea esi, [ebp - 0x2c]
call fcn.0040bb20
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x64], al
lea edi, [eax + 4]
mov eax, str..pnf
lea esi, [ebp - 0x64]
mov dword [ebp - 0x50], ebx
call fcn.0040bb20
mov byte [ebp - 4], 1
mov eax, str..inf
lea esi, [ebp - 0x48]
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
call fcn.0040bb20
lea ecx, [ebp - 0x64]
push ecx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.0040be40
mov esi, 0x10
add esp, 4
cmp dword [ebp - 0x34], esi
jb 0x40a21f
mov edx, dword [ebp - 0x48]
push edx
call fcn.0040c763
add esp, 4
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x38], 0
mov byte [ebp - 0x48], 0
cmp dword [ebp - 0x50], esi
jb 0x40a23e
mov eax, dword [ebp - 0x64]
push eax
call fcn.0040c763
add esp, 4
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40a249
lea eax, [ebp - 0x2c]
push 0x80
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x40a260
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40a2f0
test byte [0x41cf38], 8
je 0x40a36b
xor ecx, ecx
cmp ecx, str.DevInst.cpp
jne 0x40a28f
mov eax, 0x41cfb4
jmp 0x40a2aa
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a2a9
mov eax, str.DevInst.cpp
jmp 0x40a2aa
inc eax
push str.UninstallOEMInf
push 0xa36
push eax
push 0x41926c
push 8
call fcn.0040b6d0
movsx edx, al
add esp, 4
push edx
push str.__C____s____s__d___s_:
call fcn.0040bbf0
mov eax, dword [ebp - 0x2c]
add esp, 0x18
cmp dword [ebp - 0x18], esi
jae 0x40a2e0
lea eax, [ebp - 0x2c]
push eax
push str.DeleteFile__s__Success._n
call fcn.0040bbf0
add esp, 8
jmp 0x40a36b
test byte [0x41cf38], 1
je 0x40a36b
xor eax, eax
cmp eax, str.DevInst.cpp
jne 0x40a309
mov eax, 0x41cfb4
jmp 0x40a324
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a323
mov eax, str.DevInst.cpp
jmp 0x40a324
inc eax
push str.UninstallOEMInf
push 0xa3a
push eax
push 0x41926c
push 1
call fcn.0040b6d0
movsx ecx, al
add esp, 4
push ecx
push str.__C____s____s__d___s_:
call fcn.0040bbf0
add esp, 0x18
cmp dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x2c]
jae 0x40a35a
lea esi, [ebp - 0x2c]
call edi
push eax
push esi
push str.DeleteFile__s__Failed._n
call fcn.0040bbf0
add esp, 0xc
mov ebx, dword [ebp - 0x68]
push 0x5c
push ebx
call fcn.0040da8e
mov esi, eax
add esp, 8
test esi, esi
je 0x40a382
inc esi
jmp 0x40a384
mov esi, ebx
push 0
push 1
push esi
call dword [sym.imp.SETUPAPI.dll_SetupUninstallOEMInfA]
test eax, eax
jne 0x40a472
call edi
test byte [0x41cf38], 1
mov ebx, eax
je 0x40a407
xor edx, edx
cmp edx, str.DevInst.cpp
jne 0x40a3b5
mov eax, 0x41cfb4
jmp 0x40a3d0
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a3cf
mov eax, str.DevInst.cpp
jmp 0x40a3d0
inc eax
push str.UninstallOEMInf
push 0xa47
push eax
push 0x41926c
push 1
call fcn.0040b6d0
movsx eax, al
add esp, 4
push eax
push str.__C____s____s__d___s_:
call fcn.0040bbf0
push ebx
push esi
push str.SetupUninstallOEMInf__s__Failed__Error__d._n
call fcn.0040bbf0
add esp, 0x24
test byte [0x41cf38], 0x10
je 0x40a459
xor ecx, ecx
cmp ecx, str.DevInst.cpp
jne 0x40a421
mov eax, 0x41cfb4
jmp 0x40a43c
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a43b
mov eax, str.DevInst.cpp
jmp 0x40a43c
inc eax
push str.UninstallOEMInf
push 0xa48
push eax
push 0x41926c
push str._T____s____s__d___s_:__________n
call fcn.0040bbf0
add esp, 0x14
cmp dword [ebp - 0x18], 0x10
jb 0x40a46b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.0040c763
add esp, 4
xor eax, eax
jmp 0x40a545
test byte [0x41cf38], 8
je 0x40a4dc
xor eax, eax
cmp eax, str.DevInst.cpp
jne 0x40a48b
mov eax, 0x41cfb4
jmp 0x40a4a6
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a4a5
mov eax, str.DevInst.cpp
jmp 0x40a4a6
inc eax
push str.UninstallOEMInf
push 0xa4c
push eax
push 0x41926c
push 8
call fcn.0040b6d0
movsx ecx, al
add esp, 4
push ecx
push str.__C____s____s__d___s_:
call fcn.0040bbf0
push esi
push str.SetupUninstallOEMInf__s__Success._n
call fcn.0040bbf0
add esp, 0x20
test byte [0x41cf38], 0x10
je 0x40a52e
xor edx, edx
cmp edx, str.DevInst.cpp
jne 0x40a4f6
mov eax, 0x41cfb4
jmp 0x40a511
push 0x5c
push str.DevInst.cpp
call fcn.0040ce20
add esp, 8
test eax, eax
jne 0x40a510
mov eax, str.DevInst.cpp
jmp 0x40a511
inc eax
push str.UninstallOEMInf
push 0xa4d
push eax
push 0x41926c
push str._T____s____s__d___s_:__________n
call fcn.0040bbf0
add esp, 0x14
cmp dword [ebp - 0x18], 0x10
jb 0x40a540
mov eax, dword [ebp - 0x2c]
push eax
call fcn.0040c763
add esp, 4
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.0040c754
mov esp, ebp
pop ebp
ret